forked from grafana-cold-storage/metrictank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode.go
More file actions
37 lines (29 loc) · 882 Bytes
/
Copy pathnode.go
File metadata and controls
37 lines (29 loc) · 882 Bytes
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
package models
import (
"github.com/raintank/metrictank/cluster"
)
type NodeStatus struct {
Primary string `json:"primary" form:"primary" binding:"Required"`
}
type ClusterStatus struct {
NodeName string `json:"nodeName"`
Members []cluster.Node `json:"members"`
}
type IndexList struct {
OrgId int `json:"orgId" form:"orgId" binding:"Required"`
}
type IndexGet struct {
Id string `json:"id" form:"id" binding:"Required"`
}
type IndexFind struct {
Patterns []string `json:"patterns" form:"patterns" binding:"Required"`
OrgId int `json:"orgId" form:"orgId" binding:"Required"`
From int64 `json:"from" form:"from"`
}
type GetData struct {
Requests []Req `json:"requests" binding:"Required"`
}
type IndexDelete struct {
Query string `json:"query" form:"query" binding:"Required"`
OrgId int `json:"orgId" form:"orgId" binding:"Required"`
}