-
Notifications
You must be signed in to change notification settings - Fork 0
/
sci_common.go
123 lines (90 loc) · 2.83 KB
/
sci_common.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
package bigdog
// API Version: 1.0.0
// SCICommonQueryBody
//
// Definition: common_queryBody
type SCICommonQueryBody struct {
// End
// Format: 2016-04-06T16:04:46+00:00
// Constraints:
// - required
End *string `json:"end"`
Filter *SCICommonQueryFilter `json:"filter,omitempty"`
// Granularity
// Constraints:
// - oneof:[all,fifteen_minute,thirty_minute,hour,day,week,month]
Granularity *string `json:"granularity,omitempty"`
Limit *float64 `json:"limit,omitempty"`
Metric *string `json:"metric,omitempty"`
// PagingIdentifiers
// Query results will return a pagingIdentifiers JSON object that can be reused in the next query for pagination.
PagingIdentifiers interface{} `json:"pagingIdentifiers,omitempty"`
// Start
// Format: 2016-04-06T16:04:46+00:00
// Constraints:
// - required
Start *string `json:"start"`
}
func NewSCICommonQueryBody() *SCICommonQueryBody {
m := new(SCICommonQueryBody)
return m
}
// SCICommonQueryFilter
//
// Definition: common_queryFilter
//
// Data query filter body
type SCICommonQueryFilter struct {
AlphaNumeric *bool `json:"alphaNumeric,omitempty"`
Datasource *string `json:"datasource,omitempty"`
Dimension *string `json:"dimension,omitempty"`
Fields []*SCICommonQueryFilter `json:"fields,omitempty"`
GroupBy *string `json:"groupBy,omitempty"`
Lower *string `json:"lower,omitempty"`
LowerStrict *bool `json:"lowerStrict,omitempty"`
Pattern *string `json:"pattern,omitempty"`
Sorting *string `json:"sorting,omitempty"`
// Type
// Type of filter
// Constraints:
// - required
Type *string `json:"type"`
Upper *string `json:"upper,omitempty"`
UpperStrict *bool `json:"upperStrict,omitempty"`
Value *string `json:"value,omitempty"`
Values []string `json:"values,omitempty"`
}
func NewSCICommonQueryFilter() *SCICommonQueryFilter {
m := new(SCICommonQueryFilter)
return m
}
// SCICommonReportQueryBody
//
// Definition: common_reportQueryBody
type SCICommonReportQueryBody struct {
// End
// Format: 2016-04-06T16:04:46+00:00
// Constraints:
// - required
End *string `json:"end"`
Filter *SCICommonQueryFilter `json:"filter,omitempty"`
// Granularity
// Constraints:
// - oneof:[all,fifteen_minute,thirty_minute,hour,day,week,month]
Granularity *string `json:"granularity,omitempty"`
Limit *float64 `json:"limit,omitempty"`
Metric *string `json:"metric,omitempty"`
// PagingIdentifiers
// Query results will return a pagingIdentifiers JSON object that can be reused in the next query for pagination.
PagingIdentifiers interface{} `json:"pagingIdentifiers,omitempty"`
// Start
// Format: 2016-04-06T16:04:46+00:00
// Constraints:
// - required
Start *string `json:"start"`
SwitchFilter *SCICommonQueryFilter `json:"switchFilter,omitempty"`
}
func NewSCICommonReportQueryBody() *SCICommonReportQueryBody {
m := new(SCICommonReportQueryBody)
return m
}