@alicloud/cms20190101 4.0.8 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/client.d.ts +8 -4
  2. package/dist/client.js +11 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateGroupMetricRulesRequest.d.ts +132 -0
  5. package/dist/models/CreateGroupMetricRulesRequest.js.map +1 -1
  6. package/dist/models/CreateGroupMetricRulesResponseBody.d.ts +0 -44
  7. package/dist/models/CreateGroupMetricRulesResponseBody.js.map +1 -1
  8. package/dist/models/CreateMetricRuleTemplateRequest.d.ts +174 -0
  9. package/dist/models/CreateMetricRuleTemplateRequest.js.map +1 -1
  10. package/dist/models/CreateSiteMonitorResponseBody.d.ts +0 -64
  11. package/dist/models/CreateSiteMonitorResponseBody.js.map +1 -1
  12. package/dist/models/DeleteMetricRuleTargetsResponseBody.d.ts +0 -4
  13. package/dist/models/DeleteMetricRuleTargetsResponseBody.js.map +1 -1
  14. package/dist/models/DeleteMonitorGroupResponseBody.d.ts +0 -11
  15. package/dist/models/DeleteMonitorGroupResponseBody.js.map +1 -1
  16. package/dist/models/DescribeActiveMetricRuleListResponseBody.d.ts +0 -394
  17. package/dist/models/DescribeActiveMetricRuleListResponseBody.js.map +1 -1
  18. package/dist/models/DescribeAlertHistoryListResponseBody.d.ts +0 -150
  19. package/dist/models/DescribeAlertHistoryListResponseBody.js.map +1 -1
  20. package/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.d.ts +0 -290
  21. package/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js.map +1 -1
  22. package/dist/models/DescribeContactGroupListResponseBody.d.ts +0 -58
  23. package/dist/models/DescribeContactGroupListResponseBody.js.map +1 -1
  24. package/dist/models/DescribeContactListByContactGroupResponseBody.d.ts +0 -72
  25. package/dist/models/DescribeContactListByContactGroupResponseBody.js.map +1 -1
  26. package/dist/models/DescribeContactListResponseBody.d.ts +0 -127
  27. package/dist/models/DescribeContactListResponseBody.js.map +1 -1
  28. package/dist/models/DescribeCustomEventAttributeResponseBody.d.ts +0 -41
  29. package/dist/models/DescribeCustomEventAttributeResponseBody.js.map +1 -1
  30. package/dist/models/DescribeCustomEventCountResponseBody.d.ts +0 -27
  31. package/dist/models/DescribeCustomEventCountResponseBody.js.map +1 -1
  32. package/dist/models/DescribeCustomEventHistogramResponseBody.d.ts +0 -29
  33. package/dist/models/DescribeCustomEventHistogramResponseBody.js.map +1 -1
  34. package/dist/models/DescribeDynamicTagRuleListResponseBody.d.ts +0 -89
  35. package/dist/models/DescribeDynamicTagRuleListResponseBody.js.map +1 -1
  36. package/dist/models/DescribeEventRuleAttributeResponseBody.d.ts +0 -8
  37. package/dist/models/DescribeEventRuleAttributeResponseBody.js.map +1 -1
  38. package/dist/models/DescribeEventRuleListResponseBody.d.ts +0 -107
  39. package/dist/models/DescribeEventRuleListResponseBody.js.map +1 -1
  40. package/dist/models/DescribeEventRuleTargetListResponseBody.d.ts +0 -253
  41. package/dist/models/DescribeEventRuleTargetListResponseBody.js.map +1 -1
  42. package/dist/models/DescribeExporterOutputListResponseBody.d.ts +0 -59
  43. package/dist/models/DescribeExporterOutputListResponseBody.js.map +1 -1
  44. package/dist/models/DescribeExporterRuleListResponseBody.d.ts +0 -67
  45. package/dist/models/DescribeExporterRuleListResponseBody.js.map +1 -1
  46. package/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.d.ts +0 -213
  47. package/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js.map +1 -1
  48. package/dist/models/DescribeHostAvailabilityListResponseBody.d.ts +0 -288
  49. package/dist/models/DescribeHostAvailabilityListResponseBody.js.map +1 -1
  50. package/dist/models/DescribeMetricMetaListResponseBody.d.ts +0 -71
  51. package/dist/models/DescribeMetricMetaListResponseBody.js.map +1 -1
  52. package/dist/models/DescribeMetricRuleListResponseBody.d.ts +0 -497
  53. package/dist/models/DescribeMetricRuleListResponseBody.js.map +1 -1
  54. package/dist/models/DescribeMetricRuleTargetsResponseBody.d.ts +0 -41
  55. package/dist/models/DescribeMetricRuleTargetsResponseBody.js.map +1 -1
  56. package/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.d.ts +0 -217
  57. package/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js.map +1 -1
  58. package/dist/models/DescribeMetricRuleTemplateListResponseBody.d.ts +0 -76
  59. package/dist/models/DescribeMetricRuleTemplateListResponseBody.js.map +1 -1
  60. package/dist/models/DescribeMonitorGroupCategoriesResponseBody.d.ts +0 -20
  61. package/dist/models/DescribeMonitorGroupCategoriesResponseBody.js.map +1 -1
  62. package/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.d.ts +0 -54
  63. package/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js.map +1 -1
  64. package/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.d.ts +0 -100
  65. package/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js.map +1 -1
  66. package/dist/models/DescribeMonitorGroupInstancesResponseBody.d.ts +0 -39
  67. package/dist/models/DescribeMonitorGroupInstancesResponseBody.js.map +1 -1
  68. package/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.d.ts +0 -43
  69. package/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js.map +1 -1
  70. package/dist/models/DescribeMonitorGroupsResponseBody.d.ts +0 -118
  71. package/dist/models/DescribeMonitorGroupsResponseBody.js.map +1 -1
  72. package/dist/models/DescribeMonitoringAgentHostsResponseBody.d.ts +0 -109
  73. package/dist/models/DescribeMonitoringAgentHostsResponseBody.js.map +1 -1
  74. package/dist/models/DescribeMonitoringAgentProcessesResponseBody.d.ts +0 -48
  75. package/dist/models/DescribeMonitoringAgentProcessesResponseBody.js.map +1 -1
  76. package/dist/models/DescribeMonitoringAgentStatusesResponseBody.d.ts +0 -102
  77. package/dist/models/DescribeMonitoringAgentStatusesResponseBody.js.map +1 -1
  78. package/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.d.ts +0 -121
  79. package/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js.map +1 -1
  80. package/dist/models/DescribeProjectMetaResponseBody.d.ts +0 -32
  81. package/dist/models/DescribeProjectMetaResponseBody.js.map +1 -1
  82. package/dist/models/DescribeSiteMonitorAttributeResponseBody.d.ts +0 -284
  83. package/dist/models/DescribeSiteMonitorAttributeResponseBody.js.map +1 -1
  84. package/dist/models/DescribeSiteMonitorIspcityListResponseBody.d.ts +0 -52
  85. package/dist/models/DescribeSiteMonitorIspcityListResponseBody.js.map +1 -1
  86. package/dist/models/DescribeSiteMonitorListResponseBody.d.ts +0 -391
  87. package/dist/models/DescribeSiteMonitorListResponseBody.js.map +1 -1
  88. package/dist/models/DescribeSystemEventAttributeResponseBody.d.ts +0 -87
  89. package/dist/models/DescribeSystemEventAttributeResponseBody.js.map +1 -1
  90. package/dist/models/DescribeSystemEventCountResponseBody.d.ts +0 -82
  91. package/dist/models/DescribeSystemEventCountResponseBody.js.map +1 -1
  92. package/dist/models/DescribeSystemEventHistogramResponseBody.d.ts +0 -29
  93. package/dist/models/DescribeSystemEventHistogramResponseBody.js.map +1 -1
  94. package/dist/models/DescribeSystemEventMetaListResponseBody.d.ts +0 -61
  95. package/dist/models/DescribeSystemEventMetaListResponseBody.js.map +1 -1
  96. package/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.d.ts +0 -11
  97. package/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js.map +1 -1
  98. package/dist/models/Dimension.d.ts +14 -0
  99. package/dist/models/Dimension.js.map +1 -1
  100. package/dist/models/Matcher.d.ts +21 -0
  101. package/dist/models/Matcher.js.map +1 -1
  102. package/dist/models/MetricStat.d.ts +49 -0
  103. package/dist/models/MetricStat.js.map +1 -1
  104. package/dist/models/ModifyMetricRuleTemplateRequest.d.ts +174 -0
  105. package/dist/models/ModifyMetricRuleTemplateRequest.js.map +1 -1
  106. package/dist/models/PutEventRuleTargetsResponseBody.d.ts +0 -81
  107. package/dist/models/PutEventRuleTargetsResponseBody.js.map +1 -1
  108. package/dist/models/PutMetricRuleTargetsResponseBody.d.ts +0 -45
  109. package/dist/models/PutMetricRuleTargetsResponseBody.js.map +1 -1
  110. package/dist/models/PutResourceMetricRuleRequest.d.ts +1 -0
  111. package/dist/models/PutResourceMetricRuleRequest.js +2 -0
  112. package/dist/models/PutResourceMetricRuleRequest.js.map +1 -1
  113. package/dist/models/PutResourceMetricRuleShrinkRequest.d.ts +1 -0
  114. package/dist/models/PutResourceMetricRuleShrinkRequest.js +2 -0
  115. package/dist/models/PutResourceMetricRuleShrinkRequest.js.map +1 -1
  116. package/dist/models/PutResourceMetricRulesRequest.d.ts +176 -0
  117. package/dist/models/PutResourceMetricRulesRequest.js +2 -0
  118. package/dist/models/PutResourceMetricRulesRequest.js.map +1 -1
  119. package/dist/models/PutResourceMetricRulesResponseBody.d.ts +0 -39
  120. package/dist/models/PutResourceMetricRulesResponseBody.js.map +1 -1
  121. package/dist/models/RemoveTagsResponseBody.d.ts +0 -4
  122. package/dist/models/RemoveTagsResponseBody.js.map +1 -1
  123. package/package.json +1 -1
  124. package/src/client.ts +12 -4
  125. package/src/models/CreateGroupMetricRulesRequest.ts +132 -0
  126. package/src/models/CreateGroupMetricRulesResponseBody.ts +0 -44
  127. package/src/models/CreateMetricRuleTemplateRequest.ts +174 -0
  128. package/src/models/CreateSiteMonitorResponseBody.ts +0 -64
  129. package/src/models/DeleteMetricRuleTargetsResponseBody.ts +0 -4
  130. package/src/models/DeleteMonitorGroupResponseBody.ts +0 -11
  131. package/src/models/DescribeActiveMetricRuleListResponseBody.ts +0 -394
  132. package/src/models/DescribeAlertHistoryListResponseBody.ts +0 -150
  133. package/src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts +0 -290
  134. package/src/models/DescribeContactGroupListResponseBody.ts +0 -58
  135. package/src/models/DescribeContactListByContactGroupResponseBody.ts +0 -72
  136. package/src/models/DescribeContactListResponseBody.ts +0 -127
  137. package/src/models/DescribeCustomEventAttributeResponseBody.ts +0 -41
  138. package/src/models/DescribeCustomEventCountResponseBody.ts +0 -27
  139. package/src/models/DescribeCustomEventHistogramResponseBody.ts +0 -29
  140. package/src/models/DescribeDynamicTagRuleListResponseBody.ts +0 -89
  141. package/src/models/DescribeEventRuleAttributeResponseBody.ts +0 -8
  142. package/src/models/DescribeEventRuleListResponseBody.ts +0 -107
  143. package/src/models/DescribeEventRuleTargetListResponseBody.ts +0 -253
  144. package/src/models/DescribeExporterOutputListResponseBody.ts +0 -59
  145. package/src/models/DescribeExporterRuleListResponseBody.ts +0 -67
  146. package/src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts +0 -213
  147. package/src/models/DescribeHostAvailabilityListResponseBody.ts +0 -288
  148. package/src/models/DescribeMetricMetaListResponseBody.ts +0 -71
  149. package/src/models/DescribeMetricRuleListResponseBody.ts +0 -497
  150. package/src/models/DescribeMetricRuleTargetsResponseBody.ts +0 -41
  151. package/src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts +0 -217
  152. package/src/models/DescribeMetricRuleTemplateListResponseBody.ts +0 -76
  153. package/src/models/DescribeMonitorGroupCategoriesResponseBody.ts +0 -20
  154. package/src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts +0 -54
  155. package/src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts +0 -100
  156. package/src/models/DescribeMonitorGroupInstancesResponseBody.ts +0 -39
  157. package/src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts +0 -43
  158. package/src/models/DescribeMonitorGroupsResponseBody.ts +0 -118
  159. package/src/models/DescribeMonitoringAgentHostsResponseBody.ts +0 -109
  160. package/src/models/DescribeMonitoringAgentProcessesResponseBody.ts +0 -48
  161. package/src/models/DescribeMonitoringAgentStatusesResponseBody.ts +0 -102
  162. package/src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts +0 -121
  163. package/src/models/DescribeProjectMetaResponseBody.ts +0 -32
  164. package/src/models/DescribeSiteMonitorAttributeResponseBody.ts +0 -284
  165. package/src/models/DescribeSiteMonitorIspcityListResponseBody.ts +0 -52
  166. package/src/models/DescribeSiteMonitorListResponseBody.ts +0 -391
  167. package/src/models/DescribeSystemEventAttributeResponseBody.ts +0 -87
  168. package/src/models/DescribeSystemEventCountResponseBody.ts +0 -82
  169. package/src/models/DescribeSystemEventHistogramResponseBody.ts +0 -29
  170. package/src/models/DescribeSystemEventMetaListResponseBody.ts +0 -61
  171. package/src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts +0 -11
  172. package/src/models/Dimension.ts +14 -0
  173. package/src/models/Matcher.ts +21 -0
  174. package/src/models/MetricStat.ts +49 -0
  175. package/src/models/ModifyMetricRuleTemplateRequest.ts +174 -0
  176. package/src/models/PutEventRuleTargetsResponseBody.ts +0 -81
  177. package/src/models/PutMetricRuleTargetsResponseBody.ts +0 -45
  178. package/src/models/PutResourceMetricRuleRequest.ts +3 -0
  179. package/src/models/PutResourceMetricRuleShrinkRequest.ts +3 -0
  180. package/src/models/PutResourceMetricRulesRequest.ts +178 -0
  181. package/src/models/PutResourceMetricRulesResponseBody.ts +0 -39
  182. package/src/models/RemoveTagsResponseBody.ts +0 -4
@@ -3,66 +3,10 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The operator that is used to compare the metric value with the threshold. Valid values:
9
- *
10
- * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold
11
- * * GreaterThanThreshold: greater than the threshold
12
- * * LessThanOrEqualToThreshold: less than or equal to the threshold
13
- * * LessThanThreshold: less than the threshold
14
- * * NotEqualToThreshold: not equal to the threshold
15
- * * GreaterThanYesterday: greater than the metric value at the same time yesterday
16
- * * LessThanYesterday: less than the metric value at the same time yesterday
17
- * * GreaterThanLastWeek: greater than the metric value at the same time last week
18
- * * LessThanLastWeek: less than the metric value at the same time last week
19
- * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
20
- * * LessThanLastPeriod: less than the metric value in the last monitoring cycle
21
- *
22
- * @example
23
- * GreaterThanOrEqualToThreshold
24
- */
25
6
  comparisonOperator?: string;
26
- /**
27
- * @remarks
28
- * The metric that is used to monitor the cloud service.
29
- *
30
- * @example
31
- * cpu_total
32
- */
33
7
  metricName?: string;
34
- /**
35
- * @remarks
36
- * The aggregation period of the metric.
37
- *
38
- * Unit: seconds.
39
- *
40
- * @example
41
- * 60
42
- */
43
8
  period?: number;
44
- /**
45
- * @remarks
46
- * The statistical method of the metric. Valid values:
47
- *
48
- * * $Maximum: the maximum value
49
- * * $Minimum: the minimum value
50
- * * $Average: the average value
51
- * * $Availability: the availability rate (usually used for site monitoring)
52
- *
53
- * > `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
54
- *
55
- * @example
56
- * $Maximum
57
- */
58
9
  statistics?: string;
59
- /**
60
- * @remarks
61
- * The alert threshold.
62
- *
63
- * @example
64
- * 90
65
- */
66
10
  threshold?: string;
67
11
  static names(): { [key: string]: string } {
68
12
  return {
@@ -120,53 +64,10 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExp
120
64
  }
121
65
 
122
66
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression extends $dara.Model {
123
- /**
124
- * @remarks
125
- * The trigger conditions that are created in standard mode.
126
- */
127
67
  expressionList?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList;
128
- /**
129
- * @remarks
130
- * The relationship between the trigger conditions for multiple metrics. Valid values:
131
- *
132
- * * `&&`: An alert is triggered only if all metrics meet the trigger conditions. An alert is triggered only if the results of all expressions specified in the ExpressionList parameter are `true`.
133
- * * `||`: An alert is triggered if one of the metrics meets the trigger conditions.
134
- *
135
- * @example
136
- * ||
137
- */
138
68
  expressionListJoin?: string;
139
- /**
140
- * @remarks
141
- * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios:
142
- *
143
- * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50.
144
- * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50.
145
- * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the number of instances whose `average metric value` exceeds 20 exceeds three.
146
- *
147
- * @example
148
- * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)
149
- */
150
69
  expressionRaw?: string;
151
- /**
152
- * @remarks
153
- * The alert level. Valid values:
154
- *
155
- * * CRITICAL
156
- * * WARN
157
- * * INFO
158
- *
159
- * @example
160
- * Critical
161
- */
162
70
  level?: string;
163
- /**
164
- * @remarks
165
- * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications.
166
- *
167
- * @example
168
- * 3
169
- */
170
71
  times?: number;
171
72
  static names(): { [key: string]: string } {
172
73
  return {
@@ -201,61 +102,10 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression ex
201
102
  }
202
103
 
203
104
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical extends $dara.Model {
204
- /**
205
- * @remarks
206
- * The comparison operator that is used to compare the metric value with the threshold. Valid values:
207
- *
208
- * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold
209
- * * GreaterThanThreshold: greater than the threshold
210
- * * LessThanOrEqualToThreshold: less than or equal to the threshold
211
- * * LessThanThreshold: less than the threshold
212
- * * NotEqualToThreshold: not equal to the threshold
213
- * * GreaterThanYesterday: greater than the metric value at the same time yesterday
214
- * * LessThanYesterday: less than the metric value at the same time yesterday
215
- * * GreaterThanLastWeek: greater than the metric value at the same time last week
216
- * * LessThanLastWeek: less than the metric value at the same time last week
217
- * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
218
- * * LessThanLastPeriod: less than the metric value in the last monitoring cycle
219
- *
220
- * @example
221
- * GreaterThanOrEqualToThreshold
222
- */
223
105
  comparisonOperator?: string;
224
- /**
225
- * @remarks
226
- * The additional conditions for triggering Critical-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod.
227
- *
228
- * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday.
229
- *
230
- * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison.
231
- *
232
- * @example
233
- * $Average>80
234
- */
235
106
  preCondition?: string;
236
- /**
237
- * @remarks
238
- * The statistical methods for Critical-level alerts.
239
- *
240
- * @example
241
- * Average
242
- */
243
107
  statistics?: string;
244
- /**
245
- * @remarks
246
- * The threshold for Critical-level alerts.
247
- *
248
- * @example
249
- * 90
250
- */
251
108
  threshold?: string;
252
- /**
253
- * @remarks
254
- * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered.
255
- *
256
- * @example
257
- * 3
258
- */
259
109
  times?: number;
260
110
  static names(): { [key: string]: string } {
261
111
  return {
@@ -287,61 +137,10 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical ex
287
137
  }
288
138
 
289
139
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo extends $dara.Model {
290
- /**
291
- * @remarks
292
- * The comparison operator that is used to compare the metric value with the threshold. Valid values:
293
- *
294
- * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold
295
- * * GreaterThanThreshold: greater than the threshold
296
- * * LessThanOrEqualToThreshold: less than or equal to the threshold
297
- * * LessThanThreshold: less than the threshold
298
- * * NotEqualToThreshold: not equal to the threshold
299
- * * GreaterThanYesterday: greater than the metric value at the same time yesterday
300
- * * LessThanYesterday: less than the metric value at the same time yesterday
301
- * * GreaterThanLastWeek: greater than the metric value at the same time last week
302
- * * LessThanLastWeek: less than the metric value at the same time last week
303
- * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
304
- * * LessThanLastPeriod: less than the metric value in the last monitoring cycle
305
- *
306
- * @example
307
- * GreaterThanOrEqualToThreshold
308
- */
309
140
  comparisonOperator?: string;
310
- /**
311
- * @remarks
312
- * The additional conditions for triggering Info-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod.
313
- *
314
- * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday.
315
- *
316
- * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison.
317
- *
318
- * @example
319
- * $Average>80
320
- */
321
141
  preCondition?: string;
322
- /**
323
- * @remarks
324
- * The statistical methods for Info-level alerts.
325
- *
326
- * @example
327
- * Average
328
- */
329
142
  statistics?: string;
330
- /**
331
- * @remarks
332
- * The threshold for Info-level alerts.
333
- *
334
- * @example
335
- * 90
336
- */
337
143
  threshold?: string;
338
- /**
339
- * @remarks
340
- * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.
341
- *
342
- * @example
343
- * 3
344
- */
345
144
  times?: number;
346
145
  static names(): { [key: string]: string } {
347
146
  return {
@@ -373,61 +172,10 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo extend
373
172
  }
374
173
 
375
174
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn extends $dara.Model {
376
- /**
377
- * @remarks
378
- * The comparison operator that is used to compare the metric value with the threshold. Valid values:
379
- *
380
- * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold
381
- * * GreaterThanThreshold: greater than the threshold
382
- * * LessThanOrEqualToThreshold: less than or equal to the threshold
383
- * * LessThanThreshold: less than the threshold
384
- * * NotEqualToThreshold: not equal to the threshold
385
- * * GreaterThanYesterday: greater than the metric value at the same time yesterday
386
- * * LessThanYesterday: less than the metric value at the same time yesterday
387
- * * GreaterThanLastWeek: greater than the metric value at the same time last week
388
- * * LessThanLastWeek: less than the metric value at the same time last week
389
- * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
390
- * * LessThanLastPeriod: less than the metric value in the last monitoring cycle
391
- *
392
- * @example
393
- * GreaterThanOrEqualToThreshold
394
- */
395
175
  comparisonOperator?: string;
396
- /**
397
- * @remarks
398
- * The additional conditions for triggering Warn-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod.
399
- *
400
- * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday.
401
- *
402
- * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison.
403
- *
404
- * @example
405
- * $Average>80
406
- */
407
176
  preCondition?: string;
408
- /**
409
- * @remarks
410
- * The statistical methods for Warn-level alerts.
411
- *
412
- * @example
413
- * Average
414
- */
415
177
  statistics?: string;
416
- /**
417
- * @remarks
418
- * The threshold for Warn-level alerts.
419
- *
420
- * @example
421
- * 90
422
- */
423
178
  threshold?: string;
424
- /**
425
- * @remarks
426
- * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered.
427
- *
428
- * @example
429
- * 3
430
- */
431
179
  times?: number;
432
180
  static names(): { [key: string]: string } {
433
181
  return {
@@ -459,20 +207,8 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn extend
459
207
  }
460
208
 
461
209
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations extends $dara.Model {
462
- /**
463
- * @remarks
464
- * The conditions for triggering Critical-level alerts.
465
- */
466
210
  critical?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical;
467
- /**
468
- * @remarks
469
- * The conditions for triggering Info-level alerts.
470
- */
471
211
  info?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo;
472
- /**
473
- * @remarks
474
- * The conditions for triggering Warn-level alerts.
475
- */
476
212
  warn?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn;
477
213
  static names(): { [key: string]: string } {
478
214
  return {
@@ -509,21 +245,7 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations extends $d
509
245
  }
510
246
 
511
247
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels extends $dara.Model {
512
- /**
513
- * @remarks
514
- * The tag key of the alert rule.
515
- *
516
- * @example
517
- * cmsRuleKey
518
- */
519
248
  key?: string;
520
- /**
521
- * @remarks
522
- * The tag value of the alert rule.
523
- *
524
- * @example
525
- * cmsRuleValue
526
- */
527
249
  value?: string;
528
250
  static names(): { [key: string]: string } {
529
251
  return {
@@ -575,21 +297,7 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmLabels extends $dara.M
575
297
  }
576
298
 
577
299
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations extends $dara.Model {
578
- /**
579
- * @remarks
580
- * The key of the annotation.
581
- *
582
- * @example
583
- * summary
584
- */
585
300
  key?: string;
586
- /**
587
- * @remarks
588
- * The value of the annotation.
589
- *
590
- * @example
591
- * {{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} }
592
- */
593
301
  value?: string;
594
302
  static names(): { [key: string]: string } {
595
303
  return {
@@ -641,42 +349,9 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations
641
349
  }
642
350
 
643
351
  export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus extends $dara.Model {
644
- /**
645
- * @remarks
646
- * The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
647
- *
648
- * > This parameter is equivalent to the annotations parameter of open source Prometheus.
649
- */
650
352
  annotations?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations;
651
- /**
652
- * @remarks
653
- * The alert level. Valid values:
654
- *
655
- * * CRITICAL
656
- * * WARN
657
- * * INFO
658
- *
659
- * @example
660
- * Critical
661
- */
662
353
  level?: string;
663
- /**
664
- * @remarks
665
- * The PromQL query statement.
666
- *
667
- * > The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
668
- *
669
- * @example
670
- * CpuUsage{instanceId="xxxx"}[1m]>90
671
- */
672
354
  promQL?: string;
673
- /**
674
- * @remarks
675
- * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications.
676
- *
677
- * @example
678
- * 3
679
- */
680
355
  times?: number;
681
356
  static names(): { [key: string]: string } {
682
357
  return {
@@ -709,199 +384,31 @@ export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus extends $da
709
384
  }
710
385
 
711
386
  export class DescribeMetricRuleListResponseBodyAlarmsAlarm extends $dara.Model {
712
- /**
713
- * @remarks
714
- * The status of the alert rule. Valid values:
715
- *
716
- * * OK: The alert rule has no active alerts.
717
- * * ALARM: The alert rule has active alerts.
718
- * * INSUFFICIENT_DATA: No data is available.
719
- *
720
- * @example
721
- * OK
722
- */
723
387
  alertState?: string;
724
- /**
725
- * @remarks
726
- * The trigger conditions for multiple metrics.
727
- *
728
- * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time.
729
- */
730
388
  compositeExpression?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression;
731
- /**
732
- * @remarks
733
- * The alert contact group.
734
- *
735
- * @example
736
- * ECS_Alarm
737
- */
738
389
  contactGroups?: string;
739
- /**
740
- * @remarks
741
- * The dimensions of the alert rule.
742
- *
743
- * @example
744
- * [{"instanceId":"i-2ze2d6j5uhg20x47****"}]
745
- */
746
390
  dimensions?: string;
747
- /**
748
- * @remarks
749
- * The time period during which the alert rule is effective.
750
- *
751
- * @example
752
- * 05:31-23:59
753
- */
754
391
  effectiveInterval?: string;
755
- /**
756
- * @remarks
757
- * Indicates whether the alert rule is enabled. Valid values:
758
- *
759
- * * true: The alert rule is enabled.
760
- * * false: The alert rule is disabled.
761
- *
762
- * @example
763
- * true
764
- */
765
392
  enableState?: boolean;
766
- /**
767
- * @remarks
768
- * The conditions for triggering different levels of alerts.
769
- */
770
393
  escalations?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations;
771
394
  gmtCreate?: number;
772
395
  gmtUpdate?: string;
773
- /**
774
- * @remarks
775
- * The ID of the application group.
776
- *
777
- * @example
778
- * 7301****
779
- */
780
396
  groupId?: string;
781
- /**
782
- * @remarks
783
- * The name of the application group.
784
- *
785
- * > If the alert rule is associated with an application group, the name of the application group is returned in this parameter.
786
- *
787
- * @example
788
- * ECS_Group
789
- */
790
397
  groupName?: string;
791
- /**
792
- * @remarks
793
- * The tags of the alert rule.
794
- */
795
398
  labels?: DescribeMetricRuleListResponseBodyAlarmsAlarmLabels;
796
- /**
797
- * @remarks
798
- * The subject of the alert notification email.
799
- *
800
- * @example
801
- * "${serviceType}-${metricName}-${levelDescription}Notification(${dimensions})"
802
- */
803
399
  mailSubject?: string;
804
- /**
805
- * @remarks
806
- * The name of the metric.
807
- *
808
- * @example
809
- * cpu_total
810
- */
811
400
  metricName?: string;
812
- /**
813
- * @remarks
814
- * The namespace of the cloud service.
815
- *
816
- * @example
817
- * acs_ecs_dashboard
818
- */
819
401
  namespace?: string;
820
- /**
821
- * @remarks
822
- * The method that is used to handle alerts when no monitoring data is found. Valid values:
823
- *
824
- * * KEEP_LAST_STATE (default value): No operation is performed.
825
- * * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered.
826
- * * OK: The status is considered normal.
827
- *
828
- * @example
829
- * KEEP_LAST_STATE
830
- */
831
402
  noDataPolicy?: string;
832
- /**
833
- * @remarks
834
- * The time period during which the alert rule is ineffective.
835
- *
836
- * @example
837
- * 00:00-05:30
838
- */
839
403
  noEffectiveInterval?: string;
840
- /**
841
- * @remarks
842
- * The statistical period.
843
- *
844
- * @example
845
- * 60
846
- */
847
404
  period?: string;
848
405
  productCategory?: string;
849
- /**
850
- * @remarks
851
- * The Prometheus alerts.
852
- *
853
- * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring.
854
- */
855
406
  prometheus?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus;
856
- /**
857
- * @remarks
858
- * The resources that are associated with the alert rule.
859
- *
860
- * @example
861
- * [{\\"instanceId\\":\\"i-2ze2d6j5uhg20x47****\\"}]
862
- */
863
407
  resources?: string;
864
- /**
865
- * @remarks
866
- * The ID of the alert rule.
867
- *
868
- * @example
869
- * applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****
870
- */
871
408
  ruleId?: string;
872
- /**
873
- * @remarks
874
- * The name of the alert rule.
875
- *
876
- * @example
877
- * Rule_01
878
- */
879
409
  ruleName?: string;
880
- /**
881
- * @remarks
882
- * The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. Minimum value: 3600.
883
- *
884
- * Only one alert is reported during each mute period even if the metric value consecutively exceeds the alert rule threshold several times.
885
- *
886
- * @example
887
- * 86400
888
- */
889
410
  silenceTime?: number;
890
- /**
891
- * @remarks
892
- * The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics.
893
- *
894
- * @example
895
- * METRIC
896
- */
897
411
  sourceType?: string;
898
- /**
899
- * @remarks
900
- * The callback URL. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.
901
- *
902
- * @example
903
- * https://www.aliyun.com
904
- */
905
412
  webhook?: string;
906
413
  static names(): { [key: string]: string } {
907
414
  return {
@@ -1013,10 +520,6 @@ export class DescribeMetricRuleListResponseBodyAlarms extends $dara.Model {
1013
520
  }
1014
521
 
1015
522
  export class DescribeMetricRuleListResponseBody extends $dara.Model {
1016
- /**
1017
- * @remarks
1018
- * The queried alert rules.
1019
- */
1020
523
  alarms?: DescribeMetricRuleListResponseBodyAlarms;
1021
524
  /**
1022
525
  * @remarks
@@ -3,46 +3,9 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class DescribeMetricRuleTargetsResponseBodyTargetsTarget extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The Alibaba Cloud Resource Name (ARN) of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields:
9
- *
10
- * * {Service name abbreviation}: the abbreviation of the service name. Valid value: mns.
11
- * * {userId}: the ID of the Alibaba Cloud account.
12
- * * {regionId}: the region ID of the message queue or topic.
13
- * * {Resource type}`: the type of the resource for which alerts are triggered. Valid values: - **queues** - **topics** {Resource name}: the name of the resource. - If the resource type is set to **queues**, the resource name is the name of the message queue. - If the resource type is set to **topics**, the resource name is the name of the topic.`
14
- *
15
- * @example
16
- * acs:mns:cn-hangzhou:120886317861****:/queues/test/message
17
- */
18
6
  arn?: string;
19
- /**
20
- * @remarks
21
- * The ID of the resource for which alerts are triggered.
22
- *
23
- * @example
24
- * 1
25
- */
26
7
  id?: string;
27
- /**
28
- * @remarks
29
- * The parameters of the alert callback. The parameters are in the JSON format.
30
- *
31
- * @example
32
- * {"customField1":"value1","customField2":"$.name"}
33
- */
34
8
  jsonParams?: string;
35
- /**
36
- * @remarks
37
- * The level of the alert. Valid values:
38
- *
39
- * * INFO: information
40
- * * WARN: warning
41
- * * CRITICAL: critical
42
- *
43
- * @example
44
- * ["INFO", "WARN", "CRITICAL"]
45
- */
46
9
  level?: string;
47
10
  static names(): { [key: string]: string } {
48
11
  return {
@@ -135,10 +98,6 @@ export class DescribeMetricRuleTargetsResponseBody extends $dara.Model {
135
98
  * true
136
99
  */
137
100
  success?: boolean;
138
- /**
139
- * @remarks
140
- * The information about the resource for which alerts are triggered.
141
- */
142
101
  targets?: DescribeMetricRuleTargetsResponseBodyTargets;
143
102
  static names(): { [key: string]: string } {
144
103
  return {