hue_exporter/metric/metric.go

28 lines
535 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
2020-12-28 08:49:18 +01:00
Help string
2020-12-22 18:24:23 +01:00
PromType prometheus.ValueType
PromDesc *prometheus.Desc
PromResult []*PrometheusResult
}