grafana/pkg/tsdb/influxdb/models.go
2016-10-05 10:56:34 +02:00

28 lines
376 B
Go

package influxdb
type Query struct {
Measurement string
Policy string
ResultFormat string
Tags []*Tag
GroupBy []*QueryPart
Selects []*Select
}
type Tag struct {
Key string
Operator string
Value string
}
type QueryPart struct {
Type string
Params []string
}
type Select []QueryPart
type InfluxDbSelect struct {
Type string
}