@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.
- package/dist/client.d.ts +8 -4
- package/dist/client.js +11 -4
- package/dist/client.js.map +1 -1
- package/dist/models/CreateGroupMetricRulesRequest.d.ts +132 -0
- package/dist/models/CreateGroupMetricRulesRequest.js.map +1 -1
- package/dist/models/CreateGroupMetricRulesResponseBody.d.ts +0 -44
- package/dist/models/CreateGroupMetricRulesResponseBody.js.map +1 -1
- package/dist/models/CreateMetricRuleTemplateRequest.d.ts +174 -0
- package/dist/models/CreateMetricRuleTemplateRequest.js.map +1 -1
- package/dist/models/CreateSiteMonitorResponseBody.d.ts +0 -64
- package/dist/models/CreateSiteMonitorResponseBody.js.map +1 -1
- package/dist/models/DeleteMetricRuleTargetsResponseBody.d.ts +0 -4
- package/dist/models/DeleteMetricRuleTargetsResponseBody.js.map +1 -1
- package/dist/models/DeleteMonitorGroupResponseBody.d.ts +0 -11
- package/dist/models/DeleteMonitorGroupResponseBody.js.map +1 -1
- package/dist/models/DescribeActiveMetricRuleListResponseBody.d.ts +0 -394
- package/dist/models/DescribeActiveMetricRuleListResponseBody.js.map +1 -1
- package/dist/models/DescribeAlertHistoryListResponseBody.d.ts +0 -150
- package/dist/models/DescribeAlertHistoryListResponseBody.js.map +1 -1
- package/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.d.ts +0 -290
- package/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js.map +1 -1
- package/dist/models/DescribeContactGroupListResponseBody.d.ts +0 -58
- package/dist/models/DescribeContactGroupListResponseBody.js.map +1 -1
- package/dist/models/DescribeContactListByContactGroupResponseBody.d.ts +0 -72
- package/dist/models/DescribeContactListByContactGroupResponseBody.js.map +1 -1
- package/dist/models/DescribeContactListResponseBody.d.ts +0 -127
- package/dist/models/DescribeContactListResponseBody.js.map +1 -1
- package/dist/models/DescribeCustomEventAttributeResponseBody.d.ts +0 -41
- package/dist/models/DescribeCustomEventAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeCustomEventCountResponseBody.d.ts +0 -27
- package/dist/models/DescribeCustomEventCountResponseBody.js.map +1 -1
- package/dist/models/DescribeCustomEventHistogramResponseBody.d.ts +0 -29
- package/dist/models/DescribeCustomEventHistogramResponseBody.js.map +1 -1
- package/dist/models/DescribeDynamicTagRuleListResponseBody.d.ts +0 -89
- package/dist/models/DescribeDynamicTagRuleListResponseBody.js.map +1 -1
- package/dist/models/DescribeEventRuleAttributeResponseBody.d.ts +0 -8
- package/dist/models/DescribeEventRuleAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeEventRuleListResponseBody.d.ts +0 -107
- package/dist/models/DescribeEventRuleListResponseBody.js.map +1 -1
- package/dist/models/DescribeEventRuleTargetListResponseBody.d.ts +0 -253
- package/dist/models/DescribeEventRuleTargetListResponseBody.js.map +1 -1
- package/dist/models/DescribeExporterOutputListResponseBody.d.ts +0 -59
- package/dist/models/DescribeExporterOutputListResponseBody.js.map +1 -1
- package/dist/models/DescribeExporterRuleListResponseBody.d.ts +0 -67
- package/dist/models/DescribeExporterRuleListResponseBody.js.map +1 -1
- package/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.d.ts +0 -213
- package/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js.map +1 -1
- package/dist/models/DescribeHostAvailabilityListResponseBody.d.ts +0 -288
- package/dist/models/DescribeHostAvailabilityListResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricMetaListResponseBody.d.ts +0 -71
- package/dist/models/DescribeMetricMetaListResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricRuleListResponseBody.d.ts +0 -497
- package/dist/models/DescribeMetricRuleListResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricRuleTargetsResponseBody.d.ts +0 -41
- package/dist/models/DescribeMetricRuleTargetsResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.d.ts +0 -217
- package/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricRuleTemplateListResponseBody.d.ts +0 -76
- package/dist/models/DescribeMetricRuleTemplateListResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitorGroupCategoriesResponseBody.d.ts +0 -20
- package/dist/models/DescribeMonitorGroupCategoriesResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.d.ts +0 -54
- package/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.d.ts +0 -100
- package/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitorGroupInstancesResponseBody.d.ts +0 -39
- package/dist/models/DescribeMonitorGroupInstancesResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.d.ts +0 -43
- package/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitorGroupsResponseBody.d.ts +0 -118
- package/dist/models/DescribeMonitorGroupsResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitoringAgentHostsResponseBody.d.ts +0 -109
- package/dist/models/DescribeMonitoringAgentHostsResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitoringAgentProcessesResponseBody.d.ts +0 -48
- package/dist/models/DescribeMonitoringAgentProcessesResponseBody.js.map +1 -1
- package/dist/models/DescribeMonitoringAgentStatusesResponseBody.d.ts +0 -102
- package/dist/models/DescribeMonitoringAgentStatusesResponseBody.js.map +1 -1
- package/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.d.ts +0 -121
- package/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js.map +1 -1
- package/dist/models/DescribeProjectMetaResponseBody.d.ts +0 -32
- package/dist/models/DescribeProjectMetaResponseBody.js.map +1 -1
- package/dist/models/DescribeSiteMonitorAttributeResponseBody.d.ts +0 -284
- package/dist/models/DescribeSiteMonitorAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeSiteMonitorIspcityListResponseBody.d.ts +0 -52
- package/dist/models/DescribeSiteMonitorIspcityListResponseBody.js.map +1 -1
- package/dist/models/DescribeSiteMonitorListResponseBody.d.ts +0 -391
- package/dist/models/DescribeSiteMonitorListResponseBody.js.map +1 -1
- package/dist/models/DescribeSystemEventAttributeResponseBody.d.ts +0 -87
- package/dist/models/DescribeSystemEventAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeSystemEventCountResponseBody.d.ts +0 -82
- package/dist/models/DescribeSystemEventCountResponseBody.js.map +1 -1
- package/dist/models/DescribeSystemEventHistogramResponseBody.d.ts +0 -29
- package/dist/models/DescribeSystemEventHistogramResponseBody.js.map +1 -1
- package/dist/models/DescribeSystemEventMetaListResponseBody.d.ts +0 -61
- package/dist/models/DescribeSystemEventMetaListResponseBody.js.map +1 -1
- package/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.d.ts +0 -11
- package/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js.map +1 -1
- package/dist/models/Dimension.d.ts +14 -0
- package/dist/models/Dimension.js.map +1 -1
- package/dist/models/Matcher.d.ts +21 -0
- package/dist/models/Matcher.js.map +1 -1
- package/dist/models/MetricStat.d.ts +49 -0
- package/dist/models/MetricStat.js.map +1 -1
- package/dist/models/ModifyMetricRuleTemplateRequest.d.ts +174 -0
- package/dist/models/ModifyMetricRuleTemplateRequest.js.map +1 -1
- package/dist/models/PutEventRuleTargetsResponseBody.d.ts +0 -81
- package/dist/models/PutEventRuleTargetsResponseBody.js.map +1 -1
- package/dist/models/PutMetricRuleTargetsResponseBody.d.ts +0 -45
- package/dist/models/PutMetricRuleTargetsResponseBody.js.map +1 -1
- package/dist/models/PutResourceMetricRuleRequest.d.ts +1 -0
- package/dist/models/PutResourceMetricRuleRequest.js +2 -0
- package/dist/models/PutResourceMetricRuleRequest.js.map +1 -1
- package/dist/models/PutResourceMetricRuleShrinkRequest.d.ts +1 -0
- package/dist/models/PutResourceMetricRuleShrinkRequest.js +2 -0
- package/dist/models/PutResourceMetricRuleShrinkRequest.js.map +1 -1
- package/dist/models/PutResourceMetricRulesRequest.d.ts +176 -0
- package/dist/models/PutResourceMetricRulesRequest.js +2 -0
- package/dist/models/PutResourceMetricRulesRequest.js.map +1 -1
- package/dist/models/PutResourceMetricRulesResponseBody.d.ts +0 -39
- package/dist/models/PutResourceMetricRulesResponseBody.js.map +1 -1
- package/dist/models/RemoveTagsResponseBody.d.ts +0 -4
- package/dist/models/RemoveTagsResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +12 -4
- package/src/models/CreateGroupMetricRulesRequest.ts +132 -0
- package/src/models/CreateGroupMetricRulesResponseBody.ts +0 -44
- package/src/models/CreateMetricRuleTemplateRequest.ts +174 -0
- package/src/models/CreateSiteMonitorResponseBody.ts +0 -64
- package/src/models/DeleteMetricRuleTargetsResponseBody.ts +0 -4
- package/src/models/DeleteMonitorGroupResponseBody.ts +0 -11
- package/src/models/DescribeActiveMetricRuleListResponseBody.ts +0 -394
- package/src/models/DescribeAlertHistoryListResponseBody.ts +0 -150
- package/src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts +0 -290
- package/src/models/DescribeContactGroupListResponseBody.ts +0 -58
- package/src/models/DescribeContactListByContactGroupResponseBody.ts +0 -72
- package/src/models/DescribeContactListResponseBody.ts +0 -127
- package/src/models/DescribeCustomEventAttributeResponseBody.ts +0 -41
- package/src/models/DescribeCustomEventCountResponseBody.ts +0 -27
- package/src/models/DescribeCustomEventHistogramResponseBody.ts +0 -29
- package/src/models/DescribeDynamicTagRuleListResponseBody.ts +0 -89
- package/src/models/DescribeEventRuleAttributeResponseBody.ts +0 -8
- package/src/models/DescribeEventRuleListResponseBody.ts +0 -107
- package/src/models/DescribeEventRuleTargetListResponseBody.ts +0 -253
- package/src/models/DescribeExporterOutputListResponseBody.ts +0 -59
- package/src/models/DescribeExporterRuleListResponseBody.ts +0 -67
- package/src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts +0 -213
- package/src/models/DescribeHostAvailabilityListResponseBody.ts +0 -288
- package/src/models/DescribeMetricMetaListResponseBody.ts +0 -71
- package/src/models/DescribeMetricRuleListResponseBody.ts +0 -497
- package/src/models/DescribeMetricRuleTargetsResponseBody.ts +0 -41
- package/src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts +0 -217
- package/src/models/DescribeMetricRuleTemplateListResponseBody.ts +0 -76
- package/src/models/DescribeMonitorGroupCategoriesResponseBody.ts +0 -20
- package/src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts +0 -54
- package/src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts +0 -100
- package/src/models/DescribeMonitorGroupInstancesResponseBody.ts +0 -39
- package/src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts +0 -43
- package/src/models/DescribeMonitorGroupsResponseBody.ts +0 -118
- package/src/models/DescribeMonitoringAgentHostsResponseBody.ts +0 -109
- package/src/models/DescribeMonitoringAgentProcessesResponseBody.ts +0 -48
- package/src/models/DescribeMonitoringAgentStatusesResponseBody.ts +0 -102
- package/src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts +0 -121
- package/src/models/DescribeProjectMetaResponseBody.ts +0 -32
- package/src/models/DescribeSiteMonitorAttributeResponseBody.ts +0 -284
- package/src/models/DescribeSiteMonitorIspcityListResponseBody.ts +0 -52
- package/src/models/DescribeSiteMonitorListResponseBody.ts +0 -391
- package/src/models/DescribeSystemEventAttributeResponseBody.ts +0 -87
- package/src/models/DescribeSystemEventCountResponseBody.ts +0 -82
- package/src/models/DescribeSystemEventHistogramResponseBody.ts +0 -29
- package/src/models/DescribeSystemEventMetaListResponseBody.ts +0 -61
- package/src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts +0 -11
- package/src/models/Dimension.ts +14 -0
- package/src/models/Matcher.ts +21 -0
- package/src/models/MetricStat.ts +49 -0
- package/src/models/ModifyMetricRuleTemplateRequest.ts +174 -0
- package/src/models/PutEventRuleTargetsResponseBody.ts +0 -81
- package/src/models/PutMetricRuleTargetsResponseBody.ts +0 -45
- package/src/models/PutResourceMetricRuleRequest.ts +3 -0
- package/src/models/PutResourceMetricRuleShrinkRequest.ts +3 -0
- package/src/models/PutResourceMetricRulesRequest.ts +178 -0
- package/src/models/PutResourceMetricRulesResponseBody.ts +0 -39
- package/src/models/RemoveTagsResponseBody.ts +0 -4
|
@@ -3,11 +3,70 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class PutResourceMetricRulesRequestRulesEscalationsCritical extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The operator that is used to compare the metric value with the threshold for Critical-level alerts. 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
|
+
* * EqualToThreshold: equal to the threshold
|
|
16
|
+
* * GreaterThanYesterday: greater than the metric value at the same time yesterday
|
|
17
|
+
* * LessThanYesterday: less than the metric value at the same time yesterday
|
|
18
|
+
* * GreaterThanLastWeek: greater than the metric value at the same time last week
|
|
19
|
+
* * LessThanLastWeek: less than the metric value at the same time last week
|
|
20
|
+
* * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
|
|
21
|
+
* * LessThanLastPeriod: less than the metric value in the last monitoring cycle
|
|
22
|
+
*
|
|
23
|
+
* Valid values of N: 1 to 500.
|
|
24
|
+
*
|
|
25
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* GreaterThanOrEqualToThreshold
|
|
29
|
+
*/
|
|
6
30
|
comparisonOperator?: string;
|
|
7
31
|
n?: number;
|
|
8
32
|
preCondition?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The statistical methods for Critical-level alerts.
|
|
36
|
+
*
|
|
37
|
+
* Valid values of N: 1 to 500.
|
|
38
|
+
*
|
|
39
|
+
* The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
|
|
40
|
+
*
|
|
41
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* Average
|
|
45
|
+
*/
|
|
9
46
|
statistics?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The threshold for Critical-level alerts.
|
|
50
|
+
*
|
|
51
|
+
* Valid values of N: 1 to 500.
|
|
52
|
+
*
|
|
53
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* 90
|
|
57
|
+
*/
|
|
10
58
|
threshold?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered.
|
|
62
|
+
*
|
|
63
|
+
* Valid values of N: 1 to 500.
|
|
64
|
+
*
|
|
65
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* 3
|
|
69
|
+
*/
|
|
11
70
|
times?: number;
|
|
12
71
|
static names(): { [key: string]: string } {
|
|
13
72
|
return {
|
|
@@ -41,11 +100,68 @@ export class PutResourceMetricRulesRequestRulesEscalationsCritical extends $dara
|
|
|
41
100
|
}
|
|
42
101
|
|
|
43
102
|
export class PutResourceMetricRulesRequestRulesEscalationsInfo extends $dara.Model {
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values:
|
|
106
|
+
*
|
|
107
|
+
* * GreaterThanOrEqualToThreshold: greater than or equal to the threshold
|
|
108
|
+
* * GreaterThanThreshold: greater than the threshold
|
|
109
|
+
* * LessThanOrEqualToThreshold: less than or equal to the threshold
|
|
110
|
+
* * LessThanThreshold: less than the threshold
|
|
111
|
+
* * NotEqualToThreshold: not equal to the threshold
|
|
112
|
+
* * EqualToThreshold: equal to the threshold
|
|
113
|
+
* * GreaterThanYesterday: greater than the metric value at the same time yesterday
|
|
114
|
+
* * LessThanYesterday: less than the metric value at the same time yesterday
|
|
115
|
+
* * GreaterThanLastWeek: greater than the metric value at the same time last week
|
|
116
|
+
* * LessThanLastWeek: less than the metric value at the same time last week
|
|
117
|
+
* * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
|
|
118
|
+
* * LessThanLastPeriod: less than the metric value in the last monitoring cycle
|
|
119
|
+
*
|
|
120
|
+
* Valid values of N: 1 to 500.
|
|
121
|
+
*
|
|
122
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* GreaterThanOrEqualToThreshold
|
|
126
|
+
*/
|
|
44
127
|
comparisonOperator?: string;
|
|
45
128
|
n?: number;
|
|
46
129
|
preCondition?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The statistical methods for Info-level alerts.
|
|
133
|
+
*
|
|
134
|
+
* Valid values of N: 1 to 500.
|
|
135
|
+
*
|
|
136
|
+
* The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
|
|
137
|
+
*
|
|
138
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* Average
|
|
142
|
+
*/
|
|
47
143
|
statistics?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The threshold for Info-level alerts.
|
|
147
|
+
*
|
|
148
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* 90
|
|
152
|
+
*/
|
|
48
153
|
threshold?: string;
|
|
154
|
+
/**
|
|
155
|
+
* @remarks
|
|
156
|
+
* The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.
|
|
157
|
+
*
|
|
158
|
+
* Valid values of N: 1 to 500.
|
|
159
|
+
*
|
|
160
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* 3
|
|
164
|
+
*/
|
|
49
165
|
times?: number;
|
|
50
166
|
static names(): { [key: string]: string } {
|
|
51
167
|
return {
|
|
@@ -79,11 +195,70 @@ export class PutResourceMetricRulesRequestRulesEscalationsInfo extends $dara.Mod
|
|
|
79
195
|
}
|
|
80
196
|
|
|
81
197
|
export class PutResourceMetricRulesRequestRulesEscalationsWarn extends $dara.Model {
|
|
198
|
+
/**
|
|
199
|
+
* @remarks
|
|
200
|
+
* The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values:
|
|
201
|
+
*
|
|
202
|
+
* * GreaterThanOrEqualToThreshold: greater than or equal to the threshold
|
|
203
|
+
* * GreaterThanThreshold: greater than the threshold
|
|
204
|
+
* * LessThanOrEqualToThreshold: less than or equal to the threshold
|
|
205
|
+
* * LessThanThreshold: less than the threshold
|
|
206
|
+
* * NotEqualToThreshold: not equal to the threshold
|
|
207
|
+
* * EqualToThreshold: equal to the threshold
|
|
208
|
+
* * GreaterThanYesterday: greater than the metric value at the same time yesterday
|
|
209
|
+
* * LessThanYesterday: less than the metric value at the same time yesterday
|
|
210
|
+
* * GreaterThanLastWeek: greater than the metric value at the same time last week
|
|
211
|
+
* * LessThanLastWeek: less than the metric value at the same time last week
|
|
212
|
+
* * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
|
|
213
|
+
* * LessThanLastPeriod: less than the metric value in the last monitoring cycle
|
|
214
|
+
*
|
|
215
|
+
* Valid values of N: 1 to 500.
|
|
216
|
+
*
|
|
217
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* GreaterThanOrEqualToThreshold
|
|
221
|
+
*/
|
|
82
222
|
comparisonOperator?: string;
|
|
83
223
|
n?: number;
|
|
84
224
|
preCondition?: string;
|
|
225
|
+
/**
|
|
226
|
+
* @remarks
|
|
227
|
+
* The statistical methods for Warn-level alerts.
|
|
228
|
+
*
|
|
229
|
+
* Valid values of N: 1 to 500.
|
|
230
|
+
*
|
|
231
|
+
* The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
|
|
232
|
+
*
|
|
233
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* Average
|
|
237
|
+
*/
|
|
85
238
|
statistics?: string;
|
|
239
|
+
/**
|
|
240
|
+
* @remarks
|
|
241
|
+
* The threshold for Warn-level alerts.
|
|
242
|
+
*
|
|
243
|
+
* Valid values of N: 1 to 500.
|
|
244
|
+
*
|
|
245
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* 90
|
|
249
|
+
*/
|
|
86
250
|
threshold?: string;
|
|
251
|
+
/**
|
|
252
|
+
* @remarks
|
|
253
|
+
* The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered.
|
|
254
|
+
*
|
|
255
|
+
* Valid values of N: 1 to 500.
|
|
256
|
+
*
|
|
257
|
+
* > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* 3
|
|
261
|
+
*/
|
|
87
262
|
times?: number;
|
|
88
263
|
static names(): { [key: string]: string } {
|
|
89
264
|
return {
|
|
@@ -358,6 +533,7 @@ export class PutResourceMetricRulesRequestRules extends $dara.Model {
|
|
|
358
533
|
* test123
|
|
359
534
|
*/
|
|
360
535
|
ruleName?: string;
|
|
536
|
+
sendOK?: boolean;
|
|
361
537
|
/**
|
|
362
538
|
* @remarks
|
|
363
539
|
* The mute period during which new alert notifications are not sent even if the trigger conditions are met.
|
|
@@ -398,6 +574,7 @@ export class PutResourceMetricRulesRequestRules extends $dara.Model {
|
|
|
398
574
|
resources: 'Resources',
|
|
399
575
|
ruleId: 'RuleId',
|
|
400
576
|
ruleName: 'RuleName',
|
|
577
|
+
sendOK: 'SendOK',
|
|
401
578
|
silenceTime: 'SilenceTime',
|
|
402
579
|
webhook: 'Webhook',
|
|
403
580
|
};
|
|
@@ -419,6 +596,7 @@ export class PutResourceMetricRulesRequestRules extends $dara.Model {
|
|
|
419
596
|
resources: 'string',
|
|
420
597
|
ruleId: 'string',
|
|
421
598
|
ruleName: 'string',
|
|
599
|
+
sendOK: 'boolean',
|
|
422
600
|
silenceTime: 'number',
|
|
423
601
|
webhook: 'string',
|
|
424
602
|
};
|
|
@@ -3,32 +3,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class PutResourceMetricRulesResponseBodyFailedListResultTargetResult extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The response code.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* 404
|
|
12
|
-
*/
|
|
13
6
|
code?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @remarks
|
|
16
|
-
* The error message returned.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* The request processing has failed due to some unknown error.
|
|
20
|
-
*/
|
|
21
7
|
message?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @remarks
|
|
24
|
-
* Indicates whether the request was successful. Valid values:
|
|
25
|
-
*
|
|
26
|
-
* * true
|
|
27
|
-
* * false
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* false
|
|
31
|
-
*/
|
|
32
8
|
success?: boolean;
|
|
33
9
|
static names(): { [key: string]: string } {
|
|
34
10
|
return {
|
|
@@ -56,18 +32,7 @@ export class PutResourceMetricRulesResponseBodyFailedListResultTargetResult exte
|
|
|
56
32
|
}
|
|
57
33
|
|
|
58
34
|
export class PutResourceMetricRulesResponseBodyFailedListResultTarget extends $dara.Model {
|
|
59
|
-
/**
|
|
60
|
-
* @remarks
|
|
61
|
-
* The alert rule that failed to be created.
|
|
62
|
-
*/
|
|
63
35
|
result?: PutResourceMetricRulesResponseBodyFailedListResultTargetResult;
|
|
64
|
-
/**
|
|
65
|
-
* @remarks
|
|
66
|
-
* The ID of the alert rule.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* a151cd6023eacee2f0978e03863cc1697c89508****
|
|
70
|
-
*/
|
|
71
36
|
ruleId?: string;
|
|
72
37
|
static names(): { [key: string]: string } {
|
|
73
38
|
return {
|
|
@@ -132,10 +97,6 @@ export class PutResourceMetricRulesResponseBody extends $dara.Model {
|
|
|
132
97
|
* 200
|
|
133
98
|
*/
|
|
134
99
|
code?: string;
|
|
135
|
-
/**
|
|
136
|
-
* @remarks
|
|
137
|
-
* The alert rules that failed to be created for the resource.
|
|
138
|
-
*/
|
|
139
100
|
failedListResult?: PutResourceMetricRulesResponseBodyFailedListResult;
|
|
140
101
|
/**
|
|
141
102
|
* @remarks
|