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