hue_exporter/metric/metric.go
2020-12-27 14:58:21 +01:00

26 lines
514 B
Go

package metric
import (
"github.com/prometheus/client_golang/prometheus"
)
// PrometheusResult struct
type PrometheusResult struct {
PromDesc *prometheus.Desc
PromValueType prometheus.ValueType
Value float64
LabelValues []string
}
// Metric struct
type Metric struct {
HueType string
Labels []string
MetricResult []map[string]interface{}
ResultKey string
FqName string
PromType prometheus.ValueType
PromDesc *prometheus.Desc
PromResult []*PrometheusResult
}