@@ -26,16 +26,16 @@ type AlertRuleSummary struct {
26
26
27
27
// ACTUAL means the alert will trigger based on actual usage.
28
28
// FORECAST means the alert will trigger based on predicted usage.
29
- Type AlertRuleSummaryTypeEnum `mandatory:"true" json:"type"`
29
+ Type AlertTypeEnum `mandatory:"true" json:"type"`
30
30
31
31
// The threshold for triggering the alert. If thresholdType is PERCENTAGE, the maximum value is 10000.
32
32
Threshold * float32 `mandatory:"true" json:"threshold"`
33
33
34
34
// The type of threshold.
35
- ThresholdType AlertRuleSummaryThresholdTypeEnum `mandatory:"true" json:"thresholdType"`
35
+ ThresholdType ThresholdTypeEnum `mandatory:"true" json:"thresholdType"`
36
36
37
37
// The current state of the alert rule.
38
- LifecycleState AlertRuleSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
38
+ LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
39
39
40
40
// The audience that will received the alert when it triggers.
41
41
Recipients * string `mandatory:"true" json:"recipients"`
@@ -70,71 +70,53 @@ func (m AlertRuleSummary) String() string {
70
70
return common .PointerString (m )
71
71
}
72
72
73
- // AlertRuleSummaryTypeEnum Enum with underlying type: string
74
- type AlertRuleSummaryTypeEnum string
73
+ // AlertRuleSummaryTypeEnum is an alias to type: AlertTypeEnum
74
+ // Consider using AlertTypeEnum instead
75
+ // Deprecated
76
+ type AlertRuleSummaryTypeEnum = AlertTypeEnum
75
77
76
- // Set of constants representing the allowable values for AlertRuleSummaryTypeEnum
78
+ // Set of constants representing the allowable values for AlertTypeEnum
79
+ // Deprecated
77
80
const (
78
- AlertRuleSummaryTypeActual AlertRuleSummaryTypeEnum = "ACTUAL"
79
- AlertRuleSummaryTypeForecast AlertRuleSummaryTypeEnum = "FORECAST"
81
+ AlertRuleSummaryTypeActual AlertTypeEnum = "ACTUAL"
82
+ AlertRuleSummaryTypeForecast AlertTypeEnum = "FORECAST"
80
83
)
81
84
82
- var mappingAlertRuleSummaryType = map [string ]AlertRuleSummaryTypeEnum {
83
- "ACTUAL" : AlertRuleSummaryTypeActual ,
84
- "FORECAST" : AlertRuleSummaryTypeForecast ,
85
- }
86
-
87
- // GetAlertRuleSummaryTypeEnumValues Enumerates the set of values for AlertRuleSummaryTypeEnum
88
- func GetAlertRuleSummaryTypeEnumValues () []AlertRuleSummaryTypeEnum {
89
- values := make ([]AlertRuleSummaryTypeEnum , 0 )
90
- for _ , v := range mappingAlertRuleSummaryType {
91
- values = append (values , v )
92
- }
93
- return values
94
- }
85
+ // GetAlertRuleSummaryTypeEnumValues Enumerates the set of values for AlertTypeEnum
86
+ // Consider using GetAlertTypeEnumValue
87
+ // Deprecated
88
+ var GetAlertRuleSummaryTypeEnumValues = GetAlertTypeEnumValues
95
89
96
- // AlertRuleSummaryThresholdTypeEnum Enum with underlying type: string
97
- type AlertRuleSummaryThresholdTypeEnum string
90
+ // AlertRuleSummaryThresholdTypeEnum is an alias to type: ThresholdTypeEnum
91
+ // Consider using ThresholdTypeEnum instead
92
+ // Deprecated
93
+ type AlertRuleSummaryThresholdTypeEnum = ThresholdTypeEnum
98
94
99
- // Set of constants representing the allowable values for AlertRuleSummaryThresholdTypeEnum
95
+ // Set of constants representing the allowable values for ThresholdTypeEnum
96
+ // Deprecated
100
97
const (
101
- AlertRuleSummaryThresholdTypePercentage AlertRuleSummaryThresholdTypeEnum = "PERCENTAGE"
102
- AlertRuleSummaryThresholdTypeAbsolute AlertRuleSummaryThresholdTypeEnum = "ABSOLUTE"
98
+ AlertRuleSummaryThresholdTypePercentage ThresholdTypeEnum = "PERCENTAGE"
99
+ AlertRuleSummaryThresholdTypeAbsolute ThresholdTypeEnum = "ABSOLUTE"
103
100
)
104
101
105
- var mappingAlertRuleSummaryThresholdType = map [ string ] AlertRuleSummaryThresholdTypeEnum {
106
- "PERCENTAGE" : AlertRuleSummaryThresholdTypePercentage ,
107
- "ABSOLUTE" : AlertRuleSummaryThresholdTypeAbsolute ,
108
- }
102
+ // GetAlertRuleSummaryThresholdTypeEnumValues Enumerates the set of values for ThresholdTypeEnum
103
+ // Consider using GetThresholdTypeEnumValue
104
+ // Deprecated
105
+ var GetAlertRuleSummaryThresholdTypeEnumValues = GetThresholdTypeEnumValues
109
106
110
- // GetAlertRuleSummaryThresholdTypeEnumValues Enumerates the set of values for AlertRuleSummaryThresholdTypeEnum
111
- func GetAlertRuleSummaryThresholdTypeEnumValues () []AlertRuleSummaryThresholdTypeEnum {
112
- values := make ([]AlertRuleSummaryThresholdTypeEnum , 0 )
113
- for _ , v := range mappingAlertRuleSummaryThresholdType {
114
- values = append (values , v )
115
- }
116
- return values
117
- }
107
+ // AlertRuleSummaryLifecycleStateEnum is an alias to type: LifecycleStateEnum
108
+ // Consider using LifecycleStateEnum instead
109
+ // Deprecated
110
+ type AlertRuleSummaryLifecycleStateEnum = LifecycleStateEnum
118
111
119
- // AlertRuleSummaryLifecycleStateEnum Enum with underlying type: string
120
- type AlertRuleSummaryLifecycleStateEnum string
121
-
122
- // Set of constants representing the allowable values for AlertRuleSummaryLifecycleStateEnum
112
+ // Set of constants representing the allowable values for LifecycleStateEnum
113
+ // Deprecated
123
114
const (
124
- AlertRuleSummaryLifecycleStateActive AlertRuleSummaryLifecycleStateEnum = "ACTIVE"
125
- AlertRuleSummaryLifecycleStateInactive AlertRuleSummaryLifecycleStateEnum = "INACTIVE"
115
+ AlertRuleSummaryLifecycleStateActive LifecycleStateEnum = "ACTIVE"
116
+ AlertRuleSummaryLifecycleStateInactive LifecycleStateEnum = "INACTIVE"
126
117
)
127
118
128
- var mappingAlertRuleSummaryLifecycleState = map [string ]AlertRuleSummaryLifecycleStateEnum {
129
- "ACTIVE" : AlertRuleSummaryLifecycleStateActive ,
130
- "INACTIVE" : AlertRuleSummaryLifecycleStateInactive ,
131
- }
132
-
133
- // GetAlertRuleSummaryLifecycleStateEnumValues Enumerates the set of values for AlertRuleSummaryLifecycleStateEnum
134
- func GetAlertRuleSummaryLifecycleStateEnumValues () []AlertRuleSummaryLifecycleStateEnum {
135
- values := make ([]AlertRuleSummaryLifecycleStateEnum , 0 )
136
- for _ , v := range mappingAlertRuleSummaryLifecycleState {
137
- values = append (values , v )
138
- }
139
- return values
140
- }
119
+ // GetAlertRuleSummaryLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum
120
+ // Consider using GetLifecycleStateEnumValue
121
+ // Deprecated
122
+ var GetAlertRuleSummaryLifecycleStateEnumValues = GetLifecycleStateEnumValues
0 commit comments