hue_exporter/metric/metric.go

27 lines
514 B
Go
Raw Normal View History

2020-12-22 18:24:23 +01:00
package metric
import (
"github.com/prometheus/client_golang/prometheus"
)
2020-12-27 14:58:21 +01:00
// PrometheusResult struct
2020-12-22 18:24:23 +01:00
type PrometheusResult struct {
PromDesc *prometheus.Desc
PromValueType prometheus.ValueType
Value float64
LabelValues []string
}
// Metric struct
type Metric struct {
HueType string
Labels []string
2020-12-27 14:58:21 +01:00
MetricResult []map[string]interface{}
2020-12-22 18:24:23 +01:00
ResultKey string
FqName string
PromType prometheus.ValueType
PromDesc *prometheus.Desc
PromResult []*PrometheusResult
}