VictoriaMetrics/app/vmalert/datasource/datasource.go
kreedom a746cb62b6
vmalert add vm datasource, change alertmanager (#364)
* vmalert add vm datasource, change alertmanager

* make linter be happy

* make linter be happy.2

* PR comments

* PR comments.1
2020-03-13 12:19:31 +02:00

15 lines
312 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
}
// Labels represents metric's label
type Label struct {
Name string
Value string
}