hue_exporter/metric/metric.go
2020-12-28 08:49:18 +01:00

27 lines
535 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
Help string
PromType prometheus.ValueType
PromDesc *prometheus.Desc
PromResult []*PrometheusResult
}