...
1 package monitorlegacy
2
3
4
5
6
7
8
9
10 type ConditionOperator string
11
12 const (
13
14 GreaterThan ConditionOperator = "GreaterThan"
15
16 GreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual"
17
18 LessThan ConditionOperator = "LessThan"
19
20 LessThanOrEqual ConditionOperator = "LessThanOrEqual"
21 )
22
23
24 func PossibleConditionOperatorValues() []ConditionOperator {
25 return []ConditionOperator{GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual}
26 }
27
28
29 type DataStatus string
30
31 const (
32
33 NotPresent DataStatus = "notPresent"
34
35 Present DataStatus = "present"
36 )
37
38
39 func PossibleDataStatusValues() []DataStatus {
40 return []DataStatus{NotPresent, Present}
41 }
42
43
44 type OdataType string
45
46 const (
47
48 OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
49
50 OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
51
52 OdataTypeRuleDataSource OdataType = "RuleDataSource"
53 )
54
55
56 func PossibleOdataTypeValues() []OdataType {
57 return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource}
58 }
59
60
61 type OdataTypeBasicRuleAction string
62
63 const (
64
65 OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
66
67 OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
68
69 OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction"
70 )
71
72
73 func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction {
74 return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction}
75 }
76
77
78 type OdataTypeBasicRuleCondition string
79
80 const (
81
82 OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
83
84 OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
85
86 OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"
87
88 OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition"
89 )
90
91
92 func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition {
93 return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition}
94 }
95
96
97 type OnboardingStatus string
98
99 const (
100
101 NotOnboarded OnboardingStatus = "notOnboarded"
102
103 Onboarded OnboardingStatus = "onboarded"
104
105 Unknown OnboardingStatus = "unknown"
106 )
107
108
109 func PossibleOnboardingStatusValues() []OnboardingStatus {
110 return []OnboardingStatus{NotOnboarded, Onboarded, Unknown}
111 }
112
113
114 type TimeAggregationOperator string
115
116 const (
117
118 Average TimeAggregationOperator = "Average"
119
120 Last TimeAggregationOperator = "Last"
121
122 Maximum TimeAggregationOperator = "Maximum"
123
124 Minimum TimeAggregationOperator = "Minimum"
125
126 Total TimeAggregationOperator = "Total"
127 )
128
129
130 func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator {
131 return []TimeAggregationOperator{Average, Last, Maximum, Minimum, Total}
132 }
133
View as plain text