-
Notifications
You must be signed in to change notification settings - Fork 655
/
types.go
59 lines (54 loc) · 1.61 KB
/
types.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
package analytics
type STATE string
type PromDSDetails struct {
URL string
Start string
End string
}
type PromQuery struct {
QueryID string
Query string
Legend *string
Resolution *string
Minstep int
DSdetails *PromDSDetails
}
type PromSeries struct {
Series string
DSdetails *PromDSDetails
}
// Portal Dashboard Types
type PortalDashboard struct {
DashboardID string `json:"dashboardID"`
Name string `json:"name"`
Information string `json:"information"`
ChaosEventQueryTemplate string `json:"chaosEventQueryTemplate"`
ChaosVerdictQueryTemplate string `json:"chaosVerdictQueryTemplate"`
PanelGroupMap []struct {
GroupName string `json:"groupName"`
Panels []string `json:"panels"`
} `json:"panelGroupMap"`
PanelGroups []struct {
PanelGroupName string `json:"panel_group_name"`
Panels []struct {
PanelName string `json:"panel_name"`
PanelOptions struct {
Points bool `json:"points"`
Grids bool `json:"grids"`
LeftAxis bool `json:"left_axis"`
} `json:"panel_options"`
YAxisLeft string `json:"y_axis_left"`
YAxisRight string `json:"y_axis_right"`
XAxisDown string `json:"x_axis_down"`
Unit string `json:"unit"`
PromQueries []struct {
PromQueryName string `json:"prom_query_name"`
Legend string `json:"legend"`
Resolution string `json:"resolution"`
Minstep string `json:"minstep"`
Line bool `json:"line"`
CloseArea bool `json:"close_area"`
} `json:"prom_queries"`
} `json:"panels"`
} `json:"panelGroups"`
}