27 lines
535 B
Go
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
|
|
}
|