forked from grafana/metrictank
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcluster.go
60 lines (48 loc) · 952 Bytes
/
cluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package models
import (
"github.com/grafana/metrictank/idx"
)
//go:generate msgp
type StringList []string
//go:generate msgp
type IndexFindResp struct {
Nodes map[string][]idx.Node
}
//go:generate msgp
func NewIndexFindResp() *IndexFindResp {
return &IndexFindResp{
Nodes: make(map[string][]idx.Node),
}
}
//go:generate msgp
type GetDataRespV0 struct {
Series []Series
}
//go:generate msgp
type GetDataRespV1 struct {
Stats StorageStats
Series []Series
}
type MetricsDeleteResp struct {
DeletedDefs int `json:"deletedDefs"`
}
//go:generate msgp
type IndexTagsResp struct {
Tags []string `json:"tags"`
}
//go:generate msgp
type IndexTagDetailsResp struct {
Values map[string]uint64 `json:"values"`
}
//go:generate msgp
type IndexFindByTagResp struct {
Metrics []idx.Node `json:"metrics"`
}
//go:generate msgp
type IndexTagDelSeriesResp struct {
Count int
}
//go:generate msgp
type IndexTagDelByQueryResp struct {
Count int
}