1 package insights
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 AlertSeverity string
34
35 const (
36
37 Four AlertSeverity = "4"
38
39 One AlertSeverity = "1"
40
41 Three AlertSeverity = "3"
42
43 Two AlertSeverity = "2"
44
45 Zero AlertSeverity = "0"
46 )
47
48
49 func PossibleAlertSeverityValues() []AlertSeverity {
50 return []AlertSeverity{Four, One, Three, Two, Zero}
51 }
52
53
54 type CategoryType string
55
56 const (
57
58 Logs CategoryType = "Logs"
59
60 Metrics CategoryType = "Metrics"
61 )
62
63
64 func PossibleCategoryTypeValues() []CategoryType {
65 return []CategoryType{Logs, Metrics}
66 }
67
68
69 type ComparisonOperationType string
70
71 const (
72
73 Equals ComparisonOperationType = "Equals"
74
75 GreaterThan ComparisonOperationType = "GreaterThan"
76
77 GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual"
78
79 LessThan ComparisonOperationType = "LessThan"
80
81 LessThanOrEqual ComparisonOperationType = "LessThanOrEqual"
82
83 NotEquals ComparisonOperationType = "NotEquals"
84 )
85
86
87 func PossibleComparisonOperationTypeValues() []ComparisonOperationType {
88 return []ComparisonOperationType{Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, NotEquals}
89 }
90
91
92 type ConditionalOperator string
93
94 const (
95
96 ConditionalOperatorEqual ConditionalOperator = "Equal"
97
98 ConditionalOperatorGreaterThan ConditionalOperator = "GreaterThan"
99
100 ConditionalOperatorLessThan ConditionalOperator = "LessThan"
101 )
102
103
104 func PossibleConditionalOperatorValues() []ConditionalOperator {
105 return []ConditionalOperator{ConditionalOperatorEqual, ConditionalOperatorGreaterThan, ConditionalOperatorLessThan}
106 }
107
108
109 type ConditionOperator string
110
111 const (
112
113 ConditionOperatorGreaterThan ConditionOperator = "GreaterThan"
114
115 ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual"
116
117 ConditionOperatorLessThan ConditionOperator = "LessThan"
118
119 ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual"
120 )
121
122
123 func PossibleConditionOperatorValues() []ConditionOperator {
124 return []ConditionOperator{ConditionOperatorGreaterThan, ConditionOperatorGreaterThanOrEqual, ConditionOperatorLessThan, ConditionOperatorLessThanOrEqual}
125 }
126
127
128 type CriterionType string
129
130 const (
131
132 CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion"
133
134 CriterionTypeMultiMetricCriteria CriterionType = "MultiMetricCriteria"
135
136 CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion"
137 )
138
139
140 func PossibleCriterionTypeValues() []CriterionType {
141 return []CriterionType{CriterionTypeDynamicThresholdCriterion, CriterionTypeMultiMetricCriteria, CriterionTypeStaticThresholdCriterion}
142 }
143
144
145 type DynamicThresholdOperator string
146
147 const (
148
149 DynamicThresholdOperatorGreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan"
150
151 DynamicThresholdOperatorGreaterThan DynamicThresholdOperator = "GreaterThan"
152
153 DynamicThresholdOperatorLessThan DynamicThresholdOperator = "LessThan"
154 )
155
156
157 func PossibleDynamicThresholdOperatorValues() []DynamicThresholdOperator {
158 return []DynamicThresholdOperator{DynamicThresholdOperatorGreaterOrLessThan, DynamicThresholdOperatorGreaterThan, DynamicThresholdOperatorLessThan}
159 }
160
161
162 type DynamicThresholdSensitivity string
163
164 const (
165
166 High DynamicThresholdSensitivity = "High"
167
168 Low DynamicThresholdSensitivity = "Low"
169
170 Medium DynamicThresholdSensitivity = "Medium"
171 )
172
173
174 func PossibleDynamicThresholdSensitivityValues() []DynamicThresholdSensitivity {
175 return []DynamicThresholdSensitivity{High, Low, Medium}
176 }
177
178
179 type Enabled string
180
181 const (
182
183 False Enabled = "false"
184
185 True Enabled = "true"
186 )
187
188
189 func PossibleEnabledValues() []Enabled {
190 return []Enabled{False, True}
191 }
192
193
194 type EventLevel string
195
196 const (
197
198 Critical EventLevel = "Critical"
199
200 Error EventLevel = "Error"
201
202 Informational EventLevel = "Informational"
203
204 Verbose EventLevel = "Verbose"
205
206 Warning EventLevel = "Warning"
207 )
208
209
210 func PossibleEventLevelValues() []EventLevel {
211 return []EventLevel{Critical, Error, Informational, Verbose, Warning}
212 }
213
214
215 type MetricStatisticType string
216
217 const (
218
219 MetricStatisticTypeAverage MetricStatisticType = "Average"
220
221 MetricStatisticTypeMax MetricStatisticType = "Max"
222
223 MetricStatisticTypeMin MetricStatisticType = "Min"
224
225 MetricStatisticTypeSum MetricStatisticType = "Sum"
226 )
227
228
229 func PossibleMetricStatisticTypeValues() []MetricStatisticType {
230 return []MetricStatisticType{MetricStatisticTypeAverage, MetricStatisticTypeMax, MetricStatisticTypeMin, MetricStatisticTypeSum}
231 }
232
233
234 type MetricTriggerType string
235
236 const (
237
238 MetricTriggerTypeConsecutive MetricTriggerType = "Consecutive"
239
240 MetricTriggerTypeTotal MetricTriggerType = "Total"
241 )
242
243
244 func PossibleMetricTriggerTypeValues() []MetricTriggerType {
245 return []MetricTriggerType{MetricTriggerTypeConsecutive, MetricTriggerTypeTotal}
246 }
247
248
249 type OdataType string
250
251 const (
252
253 OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
254
255 OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
256
257 OdataTypeRuleDataSource OdataType = "RuleDataSource"
258 )
259
260
261 func PossibleOdataTypeValues() []OdataType {
262 return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource}
263 }
264
265
266 type OdataTypeBasicAction string
267
268 const (
269
270 OdataTypeAction OdataTypeBasicAction = "Action"
271
272 OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction OdataTypeBasicAction = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction"
273
274 OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction OdataTypeBasicAction = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction"
275 )
276
277
278 func PossibleOdataTypeBasicActionValues() []OdataTypeBasicAction {
279 return []OdataTypeBasicAction{OdataTypeAction, OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction, OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction}
280 }
281
282
283 type OdataTypeBasicMetricAlertCriteria string
284
285 const (
286
287 OdataTypeMetricAlertCriteria OdataTypeBasicMetricAlertCriteria = "MetricAlertCriteria"
288
289 OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
290
291 OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
292
293 OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"
294 )
295
296
297 func PossibleOdataTypeBasicMetricAlertCriteriaValues() []OdataTypeBasicMetricAlertCriteria {
298 return []OdataTypeBasicMetricAlertCriteria{OdataTypeMetricAlertCriteria, OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria}
299 }
300
301
302 type OdataTypeBasicRuleAction string
303
304 const (
305
306 OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
307
308 OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
309
310 OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction"
311 )
312
313
314 func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction {
315 return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction}
316 }
317
318
319 type OdataTypeBasicRuleCondition string
320
321 const (
322
323 OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
324
325 OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
326
327 OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"
328
329 OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition"
330 )
331
332
333 func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition {
334 return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition}
335 }
336
337
338 type Operator string
339
340 const (
341
342 OperatorEquals Operator = "Equals"
343
344 OperatorGreaterThan Operator = "GreaterThan"
345
346 OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual"
347
348 OperatorLessThan Operator = "LessThan"
349
350 OperatorLessThanOrEqual Operator = "LessThanOrEqual"
351
352 OperatorNotEquals Operator = "NotEquals"
353 )
354
355
356 func PossibleOperatorValues() []Operator {
357 return []Operator{OperatorEquals, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorLessThan, OperatorLessThanOrEqual, OperatorNotEquals}
358 }
359
360
361 type ProvisioningState string
362
363 const (
364
365 Canceled ProvisioningState = "Canceled"
366
367 Deploying ProvisioningState = "Deploying"
368
369 Failed ProvisioningState = "Failed"
370
371 Succeeded ProvisioningState = "Succeeded"
372 )
373
374
375 func PossibleProvisioningStateValues() []ProvisioningState {
376 return []ProvisioningState{Canceled, Deploying, Failed, Succeeded}
377 }
378
379
380 type QueryType string
381
382 const (
383
384 ResultCount QueryType = "ResultCount"
385 )
386
387
388 func PossibleQueryTypeValues() []QueryType {
389 return []QueryType{ResultCount}
390 }
391
392
393 type ReceiverStatus string
394
395 const (
396
397 ReceiverStatusDisabled ReceiverStatus = "Disabled"
398
399 ReceiverStatusEnabled ReceiverStatus = "Enabled"
400
401 ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified"
402 )
403
404
405 func PossibleReceiverStatusValues() []ReceiverStatus {
406 return []ReceiverStatus{ReceiverStatusDisabled, ReceiverStatusEnabled, ReceiverStatusNotSpecified}
407 }
408
409
410 type RecurrenceFrequency string
411
412 const (
413
414 RecurrenceFrequencyDay RecurrenceFrequency = "Day"
415
416 RecurrenceFrequencyHour RecurrenceFrequency = "Hour"
417
418 RecurrenceFrequencyMinute RecurrenceFrequency = "Minute"
419
420 RecurrenceFrequencyMonth RecurrenceFrequency = "Month"
421
422 RecurrenceFrequencyNone RecurrenceFrequency = "None"
423
424 RecurrenceFrequencySecond RecurrenceFrequency = "Second"
425
426 RecurrenceFrequencyWeek RecurrenceFrequency = "Week"
427
428 RecurrenceFrequencyYear RecurrenceFrequency = "Year"
429 )
430
431
432 func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
433 return []RecurrenceFrequency{RecurrenceFrequencyDay, RecurrenceFrequencyHour, RecurrenceFrequencyMinute, RecurrenceFrequencyMonth, RecurrenceFrequencyNone, RecurrenceFrequencySecond, RecurrenceFrequencyWeek, RecurrenceFrequencyYear}
434 }
435
436
437 type ResultType string
438
439 const (
440
441 Data ResultType = "Data"
442
443 Metadata ResultType = "Metadata"
444 )
445
446
447 func PossibleResultTypeValues() []ResultType {
448 return []ResultType{Data, Metadata}
449 }
450
451
452 type ScaleDirection string
453
454 const (
455
456 ScaleDirectionDecrease ScaleDirection = "Decrease"
457
458 ScaleDirectionIncrease ScaleDirection = "Increase"
459
460 ScaleDirectionNone ScaleDirection = "None"
461 )
462
463
464 func PossibleScaleDirectionValues() []ScaleDirection {
465 return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone}
466 }
467
468
469 type ScaleRuleMetricDimensionOperationType string
470
471 const (
472
473 ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals"
474
475 ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals"
476 )
477
478
479 func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType {
480 return []ScaleRuleMetricDimensionOperationType{ScaleRuleMetricDimensionOperationTypeEquals, ScaleRuleMetricDimensionOperationTypeNotEquals}
481 }
482
483
484 type ScaleType string
485
486 const (
487
488 ChangeCount ScaleType = "ChangeCount"
489
490 ExactCount ScaleType = "ExactCount"
491
492 PercentChangeCount ScaleType = "PercentChangeCount"
493 )
494
495
496 func PossibleScaleTypeValues() []ScaleType {
497 return []ScaleType{ChangeCount, ExactCount, PercentChangeCount}
498 }
499
500
501 type Sensitivity string
502
503 const (
504
505 SensitivityHigh Sensitivity = "High"
506
507 SensitivityLow Sensitivity = "Low"
508
509 SensitivityMedium Sensitivity = "Medium"
510 )
511
512
513 func PossibleSensitivityValues() []Sensitivity {
514 return []Sensitivity{SensitivityHigh, SensitivityLow, SensitivityMedium}
515 }
516
517
518 type TimeAggregationOperator string
519
520 const (
521
522 TimeAggregationOperatorAverage TimeAggregationOperator = "Average"
523
524 TimeAggregationOperatorLast TimeAggregationOperator = "Last"
525
526 TimeAggregationOperatorMaximum TimeAggregationOperator = "Maximum"
527
528 TimeAggregationOperatorMinimum TimeAggregationOperator = "Minimum"
529
530 TimeAggregationOperatorTotal TimeAggregationOperator = "Total"
531 )
532
533
534 func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator {
535 return []TimeAggregationOperator{TimeAggregationOperatorAverage, TimeAggregationOperatorLast, TimeAggregationOperatorMaximum, TimeAggregationOperatorMinimum, TimeAggregationOperatorTotal}
536 }
537
538
539 type TimeAggregationType string
540
541 const (
542
543 TimeAggregationTypeAverage TimeAggregationType = "Average"
544
545 TimeAggregationTypeCount TimeAggregationType = "Count"
546
547 TimeAggregationTypeLast TimeAggregationType = "Last"
548
549 TimeAggregationTypeMaximum TimeAggregationType = "Maximum"
550
551 TimeAggregationTypeMinimum TimeAggregationType = "Minimum"
552
553 TimeAggregationTypeTotal TimeAggregationType = "Total"
554 )
555
556
557 func PossibleTimeAggregationTypeValues() []TimeAggregationType {
558 return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal}
559 }
560
561
562 type Unit string
563
564 const (
565
566 UnitBitsPerSecond Unit = "BitsPerSecond"
567
568 UnitBytes Unit = "Bytes"
569
570 UnitByteSeconds Unit = "ByteSeconds"
571
572 UnitBytesPerSecond Unit = "BytesPerSecond"
573
574 UnitCores Unit = "Cores"
575
576 UnitCount Unit = "Count"
577
578 UnitCountPerSecond Unit = "CountPerSecond"
579
580 UnitMilliCores Unit = "MilliCores"
581
582 UnitMilliSeconds Unit = "MilliSeconds"
583
584 UnitNanoCores Unit = "NanoCores"
585
586 UnitPercent Unit = "Percent"
587
588 UnitSeconds Unit = "Seconds"
589
590 UnitUnspecified Unit = "Unspecified"
591 )
592
593
594 func PossibleUnitValues() []Unit {
595 return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified}
596 }
597
View as plain text