1 package metrics
2
3
4
5
6
7
8
9
10 type AggregationType string
11
12 const (
13
14 Average AggregationType = "Average"
15
16 Count AggregationType = "Count"
17
18 Maximum AggregationType = "Maximum"
19
20 Minimum AggregationType = "Minimum"
21
22 None AggregationType = "None"
23
24 Total AggregationType = "Total"
25 )
26
27
28 func PossibleAggregationTypeValues() []AggregationType {
29 return []AggregationType{Average, Count, Maximum, Minimum, None, Total}
30 }
31
32
33 type AggregationTypeEnum string
34
35 const (
36
37 AggregationTypeEnumAverage AggregationTypeEnum = "Average"
38
39 AggregationTypeEnumCount AggregationTypeEnum = "Count"
40
41 AggregationTypeEnumMaximum AggregationTypeEnum = "Maximum"
42
43 AggregationTypeEnumMinimum AggregationTypeEnum = "Minimum"
44
45 AggregationTypeEnumTotal AggregationTypeEnum = "Total"
46 )
47
48
49 func PossibleAggregationTypeEnumValues() []AggregationTypeEnum {
50 return []AggregationTypeEnum{AggregationTypeEnumAverage, AggregationTypeEnumCount, AggregationTypeEnumMaximum, AggregationTypeEnumMinimum, AggregationTypeEnumTotal}
51 }
52
53
54 type BaselineSensitivity string
55
56 const (
57
58 High BaselineSensitivity = "High"
59
60 Low BaselineSensitivity = "Low"
61
62 Medium BaselineSensitivity = "Medium"
63 )
64
65
66 func PossibleBaselineSensitivityValues() []BaselineSensitivity {
67 return []BaselineSensitivity{High, Low, Medium}
68 }
69
70
71 type CriterionType string
72
73 const (
74
75 CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion"
76
77 CriterionTypeMultiMetricCriteria CriterionType = "MultiMetricCriteria"
78
79 CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion"
80 )
81
82
83 func PossibleCriterionTypeValues() []CriterionType {
84 return []CriterionType{CriterionTypeDynamicThresholdCriterion, CriterionTypeMultiMetricCriteria, CriterionTypeStaticThresholdCriterion}
85 }
86
87
88 type DynamicThresholdOperator string
89
90 const (
91
92 GreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan"
93
94 GreaterThan DynamicThresholdOperator = "GreaterThan"
95
96 LessThan DynamicThresholdOperator = "LessThan"
97 )
98
99
100 func PossibleDynamicThresholdOperatorValues() []DynamicThresholdOperator {
101 return []DynamicThresholdOperator{GreaterOrLessThan, GreaterThan, LessThan}
102 }
103
104
105 type DynamicThresholdSensitivity string
106
107 const (
108
109 DynamicThresholdSensitivityHigh DynamicThresholdSensitivity = "High"
110
111 DynamicThresholdSensitivityLow DynamicThresholdSensitivity = "Low"
112
113 DynamicThresholdSensitivityMedium DynamicThresholdSensitivity = "Medium"
114 )
115
116
117 func PossibleDynamicThresholdSensitivityValues() []DynamicThresholdSensitivity {
118 return []DynamicThresholdSensitivity{DynamicThresholdSensitivityHigh, DynamicThresholdSensitivityLow, DynamicThresholdSensitivityMedium}
119 }
120
121
122 type MetricAggregationType string
123
124 const (
125
126 MetricAggregationTypeAverage MetricAggregationType = "Average"
127
128 MetricAggregationTypeCount MetricAggregationType = "Count"
129
130 MetricAggregationTypeMaximum MetricAggregationType = "Maximum"
131
132 MetricAggregationTypeMinimum MetricAggregationType = "Minimum"
133
134 MetricAggregationTypeNone MetricAggregationType = "None"
135
136 MetricAggregationTypeTotal MetricAggregationType = "Total"
137 )
138
139
140 func PossibleMetricAggregationTypeValues() []MetricAggregationType {
141 return []MetricAggregationType{MetricAggregationTypeAverage, MetricAggregationTypeCount, MetricAggregationTypeMaximum, MetricAggregationTypeMinimum, MetricAggregationTypeNone, MetricAggregationTypeTotal}
142 }
143
144
145 type MetricClass string
146
147 const (
148
149 MetricClassAvailability MetricClass = "Availability"
150
151 MetricClassErrors MetricClass = "Errors"
152
153 MetricClassLatency MetricClass = "Latency"
154
155 MetricClassSaturation MetricClass = "Saturation"
156
157 MetricClassTransactions MetricClass = "Transactions"
158 )
159
160
161 func PossibleMetricClassValues() []MetricClass {
162 return []MetricClass{MetricClassAvailability, MetricClassErrors, MetricClassLatency, MetricClassSaturation, MetricClassTransactions}
163 }
164
165
166 type MetricResultType string
167
168 const (
169
170 Data MetricResultType = "Data"
171
172 Metadata MetricResultType = "Metadata"
173 )
174
175
176 func PossibleMetricResultTypeValues() []MetricResultType {
177 return []MetricResultType{Data, Metadata}
178 }
179
180
181 type MetricUnit string
182
183 const (
184
185 MetricUnitBitsPerSecond MetricUnit = "BitsPerSecond"
186
187 MetricUnitBytes MetricUnit = "Bytes"
188
189 MetricUnitByteSeconds MetricUnit = "ByteSeconds"
190
191 MetricUnitBytesPerSecond MetricUnit = "BytesPerSecond"
192
193 MetricUnitCores MetricUnit = "Cores"
194
195 MetricUnitCount MetricUnit = "Count"
196
197 MetricUnitCountPerSecond MetricUnit = "CountPerSecond"
198
199 MetricUnitMilliCores MetricUnit = "MilliCores"
200
201 MetricUnitMilliSeconds MetricUnit = "MilliSeconds"
202
203 MetricUnitNanoCores MetricUnit = "NanoCores"
204
205 MetricUnitPercent MetricUnit = "Percent"
206
207 MetricUnitSeconds MetricUnit = "Seconds"
208
209 MetricUnitUnspecified MetricUnit = "Unspecified"
210 )
211
212
213 func PossibleMetricUnitValues() []MetricUnit {
214 return []MetricUnit{MetricUnitBitsPerSecond, MetricUnitBytes, MetricUnitByteSeconds, MetricUnitBytesPerSecond, MetricUnitCores, MetricUnitCount, MetricUnitCountPerSecond, MetricUnitMilliCores, MetricUnitMilliSeconds, MetricUnitNanoCores, MetricUnitPercent, MetricUnitSeconds, MetricUnitUnspecified}
215 }
216
217
218 type NamespaceClassification string
219
220 const (
221
222 Custom NamespaceClassification = "Custom"
223
224 Platform NamespaceClassification = "Platform"
225
226 Qos NamespaceClassification = "Qos"
227 )
228
229
230 func PossibleNamespaceClassificationValues() []NamespaceClassification {
231 return []NamespaceClassification{Custom, Platform, Qos}
232 }
233
234
235 type OdataType string
236
237 const (
238
239 OdataTypeMetricAlertCriteria OdataType = "MetricAlertCriteria"
240
241 OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
242
243 OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria OdataType = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
244
245 OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria OdataType = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"
246 )
247
248
249 func PossibleOdataTypeValues() []OdataType {
250 return []OdataType{OdataTypeMetricAlertCriteria, OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria}
251 }
252
253
254 type Operator string
255
256 const (
257
258 OperatorEquals Operator = "Equals"
259
260 OperatorGreaterThan Operator = "GreaterThan"
261
262 OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual"
263
264 OperatorLessThan Operator = "LessThan"
265
266 OperatorLessThanOrEqual Operator = "LessThanOrEqual"
267 )
268
269
270 func PossibleOperatorValues() []Operator {
271 return []Operator{OperatorEquals, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorLessThan, OperatorLessThanOrEqual}
272 }
273
274
275 type ResultType string
276
277 const (
278
279 ResultTypeData ResultType = "Data"
280
281 ResultTypeMetadata ResultType = "Metadata"
282 )
283
284
285 func PossibleResultTypeValues() []ResultType {
286 return []ResultType{ResultTypeData, ResultTypeMetadata}
287 }
288
289
290 type Unit string
291
292 const (
293
294 UnitBitsPerSecond Unit = "BitsPerSecond"
295
296 UnitBytes Unit = "Bytes"
297
298 UnitByteSeconds Unit = "ByteSeconds"
299
300 UnitBytesPerSecond Unit = "BytesPerSecond"
301
302 UnitCores Unit = "Cores"
303
304 UnitCount Unit = "Count"
305
306 UnitCountPerSecond Unit = "CountPerSecond"
307
308 UnitMilliCores Unit = "MilliCores"
309
310 UnitMilliSeconds Unit = "MilliSeconds"
311
312 UnitNanoCores Unit = "NanoCores"
313
314 UnitPercent Unit = "Percent"
315
316 UnitSeconds Unit = "Seconds"
317
318 UnitUnspecified Unit = "Unspecified"
319 )
320
321
322 func PossibleUnitValues() []Unit {
323 return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified}
324 }
325
View as plain text