VictoriaMetrics/app/vmalert/datasource/datasource.go
2020-03-13 12:22:33 +02:00

15 lines
311 B
Go

package datasource
// Metric is the basic entity which should be return by datasource
// It represents single data point with full list of labels
type Metric struct {
Labels []Label
Timestamp int64
Value float64
}
// Label represents metric's label
type Label struct {
Name string
Value string
}