@alicloud/cms20240330 10.0.0 → 10.0.1
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 +114 -60
- package/dist/client.js +163 -61
- package/dist/client.js.map +1 -1
- package/dist/models/AlertRuleCondition.d.ts +120 -158
- package/dist/models/AlertRuleCondition.js +45 -1
- package/dist/models/AlertRuleCondition.js.map +1 -1
- package/dist/models/AlertRuleQuery.d.ts +78 -75
- package/dist/models/AlertRuleQuery.js +41 -1
- package/dist/models/AlertRuleQuery.js.map +1 -1
- package/dist/models/AlertRuleTemplate.d.ts +5 -56
- package/dist/models/AlertRuleTemplate.js +10 -0
- package/dist/models/AlertRuleTemplate.js.map +1 -1
- package/dist/models/AlertRuleV2.d.ts +16 -2
- package/dist/models/AlertRuleV2.js +10 -3
- package/dist/models/AlertRuleV2.js.map +1 -1
- package/dist/models/ApmCompositeCompareConfig.d.ts +10 -0
- package/dist/models/ApmCompositeCompareConfig.js +4 -0
- package/dist/models/ApmCompositeCompareConfig.js.map +1 -1
- package/dist/models/ApmThresholdConfig.d.ts +2 -8
- package/dist/models/ApmThresholdConfig.js +4 -0
- package/dist/models/ApmThresholdConfig.js.map +1 -1
- package/dist/models/CloudMonitoringCompositeEscalation.d.ts +34 -0
- package/dist/models/CloudMonitoringCompositeEscalation.js +68 -0
- package/dist/models/CloudMonitoringCompositeEscalation.js.map +1 -0
- package/dist/models/CloudMonitoringCompositeEscalationEntry.d.ts +19 -0
- package/dist/models/CloudMonitoringCompositeEscalationEntry.js +68 -0
- package/dist/models/CloudMonitoringCompositeEscalationEntry.js.map +1 -0
- package/dist/models/CloudMonitoringExpressEscalation.d.ts +28 -0
- package/dist/models/CloudMonitoringExpressEscalation.js +62 -0
- package/dist/models/CloudMonitoringExpressEscalation.js.map +1 -0
- package/dist/models/CloudMonitoringPrometheusEscalation.d.ts +28 -0
- package/dist/models/CloudMonitoringPrometheusEscalation.js +62 -0
- package/dist/models/CloudMonitoringPrometheusEscalation.js.map +1 -0
- package/dist/models/CloudMonitoringSimpleEscalation.d.ts +29 -0
- package/dist/models/CloudMonitoringSimpleEscalation.js +66 -0
- package/dist/models/CloudMonitoringSimpleEscalation.js.map +1 -0
- package/dist/models/CloudMonitoringSimpleEscalationEntry.d.ts +19 -0
- package/dist/models/CloudMonitoringSimpleEscalationEntry.js +68 -0
- package/dist/models/CloudMonitoringSimpleEscalationEntry.js.map +1 -0
- package/dist/models/ConditionConfigUnified.d.ts +24 -34
- package/dist/models/ConditionConfigUnified.js +58 -0
- package/dist/models/ConditionConfigUnified.js.map +1 -1
- package/dist/models/CreateAggTaskGroupRequest.d.ts +20 -20
- package/dist/models/CreateAggTaskGroupResponseBody.d.ts +6 -6
- package/dist/models/CreatePrometheusInstanceRequest.d.ts +25 -22
- package/dist/models/CreatePrometheusInstanceRequest.js +2 -0
- package/dist/models/CreatePrometheusInstanceRequest.js.map +1 -1
- package/dist/models/CreatePrometheusInstanceResponseBody.d.ts +1 -1
- package/dist/models/CreatePrometheusViewRequest.d.ts +12 -12
- package/dist/models/CreatePrometheusViewResponseBody.d.ts +2 -2
- package/dist/models/DatasourceConfigUnified.d.ts +15 -0
- package/dist/models/DatasourceConfigUnified.js +6 -0
- package/dist/models/DatasourceConfigUnified.js.map +1 -1
- package/dist/models/DatasourceTypeFilter.d.ts +18 -0
- package/dist/models/DatasourceTypeFilter.js +58 -0
- package/dist/models/DatasourceTypeFilter.js.map +1 -0
- package/dist/models/DescribeMetricMetaListRequest.d.ts +23 -20
- package/dist/models/DescribeMetricMetaListRequest.js.map +1 -1
- package/dist/models/DescribeMetricMetaListResponseBody.d.ts +25 -17
- package/dist/models/DescribeMetricMetaListResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricMetaListShrinkRequest.d.ts +21 -18
- package/dist/models/DescribeMetricMetaListShrinkRequest.js.map +1 -1
- package/dist/models/GetCloudResourceDataRequest.d.ts +5 -5
- package/dist/models/GetCloudResourceDataResponseBody.d.ts +66 -2
- package/dist/models/GetCloudResourceDataResponseBody.js.map +1 -1
- package/dist/models/GetDeliveryTaskResponseBody.d.ts +15 -15
- package/dist/models/GetIntegrationPolicyResponseBody.d.ts +49 -49
- package/dist/models/GetMemoryStoreResponseBody.d.ts +15 -15
- package/dist/models/GetPrometheusInstanceRequest.d.ts +2 -2
- package/dist/models/GetPrometheusInstanceResponseBody.d.ts +36 -31
- package/dist/models/GetPrometheusInstanceResponseBody.js.map +1 -1
- package/dist/models/GetPrometheusViewRequest.d.ts +2 -2
- package/dist/models/GetPrometheusViewResponseBody.d.ts +35 -21
- package/dist/models/GetPrometheusViewResponseBody.js.map +1 -1
- package/dist/models/ListAggTaskGroupsRequest.d.ts +13 -8
- package/dist/models/ListAggTaskGroupsRequest.js.map +1 -1
- package/dist/models/ListAggTaskGroupsResponseBody.d.ts +15 -15
- package/dist/models/ListAggTaskGroupsShrinkRequest.d.ts +13 -8
- package/dist/models/ListAggTaskGroupsShrinkRequest.js.map +1 -1
- package/dist/models/ListAlertRobotsRequest.d.ts +5 -5
- package/dist/models/ListAlertRobotsResponseBody.d.ts +7 -6
- package/dist/models/ListAlertRobotsResponseBody.js +2 -0
- package/dist/models/ListAlertRobotsResponseBody.js.map +1 -1
- package/dist/models/ListAlertRobotsShrinkRequest.d.ts +5 -5
- package/dist/models/ListDeliveryTasksRequest.d.ts +4 -4
- package/dist/models/ListDeliveryTasksResponseBody.d.ts +22 -22
- package/dist/models/ListDeliveryTasksShrinkRequest.d.ts +4 -4
- package/dist/models/ListEventMetaCacheAllKeysDataResult.d.ts +37 -0
- package/dist/models/ListEventMetaCacheAllKeysDataResult.js +71 -0
- package/dist/models/ListEventMetaCacheAllKeysDataResult.js.map +1 -0
- package/dist/models/ListIntegrationPoliciesRequest.d.ts +9 -9
- package/dist/models/ListIntegrationPoliciesResponseBody.d.ts +24 -20
- package/dist/models/ListIntegrationPoliciesResponseBody.js.map +1 -1
- package/dist/models/ListIntegrationPoliciesShrinkRequest.d.ts +9 -9
- package/dist/models/ListPipelinesRequest.d.ts +3 -3
- package/dist/models/ListPipelinesResponseBody.d.ts +6 -6
- package/dist/models/ListPrometheusInstancesRequest.d.ts +13 -5
- package/dist/models/ListPrometheusInstancesRequest.js.map +1 -1
- package/dist/models/ListPrometheusInstancesResponseBody.d.ts +21 -9
- package/dist/models/ListPrometheusInstancesResponseBody.js +2 -0
- package/dist/models/ListPrometheusInstancesResponseBody.js.map +1 -1
- package/dist/models/ListPrometheusInstancesShrinkRequest.d.ts +13 -5
- package/dist/models/ListPrometheusInstancesShrinkRequest.js.map +1 -1
- package/dist/models/ListPrometheusViewsRequest.d.ts +5 -5
- package/dist/models/ListPrometheusViewsResponseBody.d.ts +20 -10
- package/dist/models/ListPrometheusViewsResponseBody.js +2 -0
- package/dist/models/ListPrometheusViewsResponseBody.js.map +1 -1
- package/dist/models/ListPrometheusViewsShrinkRequest.d.ts +5 -5
- package/dist/models/ManageAlertRulesRequest.d.ts +1 -1
- package/dist/models/ManageAlertRulesResult.d.ts +10 -0
- package/dist/models/ManageAlertRulesResult.js +7 -0
- package/dist/models/ManageAlertRulesResult.js.map +1 -1
- package/dist/models/ManageAlertRulesShrinkRequest.d.ts +1 -1
- package/dist/models/ManageAlertRulesUnifiedActionInput.d.ts +2 -62
- package/dist/models/ManageAlertRulesUnifiedActionInput.js +4 -0
- package/dist/models/ManageAlertRulesUnifiedActionInput.js.map +1 -1
- package/dist/models/MetricSetMultiTrigger.d.ts +24 -0
- package/dist/models/MetricSetMultiTrigger.js +80 -0
- package/dist/models/MetricSetMultiTrigger.js.map +1 -0
- package/dist/models/MetricSetNamedQueryEntry.d.ts +18 -0
- package/dist/models/MetricSetNamedQueryEntry.js +68 -0
- package/dist/models/MetricSetNamedQueryEntry.js.map +1 -0
- package/dist/models/MetricSetTriggerCompositeExpression.d.ts +17 -0
- package/dist/models/MetricSetTriggerCompositeExpression.js +66 -0
- package/dist/models/MetricSetTriggerCompositeExpression.js.map +1 -0
- package/dist/models/MetricSetTriggerSimpleExpression.d.ts +19 -0
- package/dist/models/MetricSetTriggerSimpleExpression.js +68 -0
- package/dist/models/MetricSetTriggerSimpleExpression.js.map +1 -0
- package/dist/models/NotifyConfigUnified.d.ts +1 -28
- package/dist/models/NotifyConfigUnified.js +5 -0
- package/dist/models/NotifyConfigUnified.js.map +1 -1
- package/dist/models/NotifyStrategyIdFilter.d.ts +18 -0
- package/dist/models/NotifyStrategyIdFilter.js +58 -0
- package/dist/models/NotifyStrategyIdFilter.js.map +1 -0
- package/dist/models/ObserveGroup.d.ts +132 -0
- package/dist/models/ObserveGroup.js +119 -0
- package/dist/models/ObserveGroup.js.map +1 -0
- package/dist/models/ObserveGroupDetail.d.ts +123 -0
- package/dist/models/ObserveGroupDetail.js +116 -0
- package/dist/models/ObserveGroupDetail.js.map +1 -0
- package/dist/models/ObserveGroupDiscoverRule.d.ts +176 -0
- package/dist/models/ObserveGroupDiscoverRule.js +197 -0
- package/dist/models/ObserveGroupDiscoverRule.js.map +1 -0
- package/dist/models/ObserveGroupInstance.d.ts +72 -0
- package/dist/models/ObserveGroupInstance.js +84 -0
- package/dist/models/ObserveGroupInstance.js.map +1 -0
- package/dist/models/ObserveResourceGlobalScopeFilter.d.ts +18 -0
- package/dist/models/ObserveResourceGlobalScopeFilter.js +58 -0
- package/dist/models/ObserveResourceGlobalScopeFilter.js.map +1 -0
- package/dist/models/ObserveResourceListFilter.d.ts +18 -0
- package/dist/models/ObserveResourceListFilter.js +61 -0
- package/dist/models/ObserveResourceListFilter.js.map +1 -0
- package/dist/models/ObserveResourceTypeFilter.d.ts +18 -0
- package/dist/models/ObserveResourceTypeFilter.js +58 -0
- package/dist/models/ObserveResourceTypeFilter.js.map +1 -0
- package/dist/models/OpenCmsServiceResponseBody.d.ts +2 -2
- package/dist/models/PartitionKeyFilter.d.ts +18 -0
- package/dist/models/PartitionKeyFilter.js +58 -0
- package/dist/models/PartitionKeyFilter.js.map +1 -0
- package/dist/models/QueryAlertRulesFilter.d.ts +16 -4
- package/dist/models/QueryAlertRulesFilter.js +38 -4
- package/dist/models/QueryAlertRulesFilter.js.map +1 -1
- package/dist/models/QueryAlertRulesRequest.d.ts +4 -4
- package/dist/models/QueryAlertRulesShrinkRequest.d.ts +4 -4
- package/dist/models/QueryConfigUnified.d.ts +15 -52
- package/dist/models/QueryConfigUnified.js +29 -0
- package/dist/models/QueryConfigUnified.js.map +1 -1
- package/dist/models/SearchMemoriesRequest.d.ts +7 -4
- package/dist/models/SearchMemoriesRequest.js.map +1 -1
- package/dist/models/SearchMemoriesResponseBody.d.ts +4 -4
- package/dist/models/SeverityLevelsFilter.d.ts +18 -0
- package/dist/models/SeverityLevelsFilter.js +61 -0
- package/dist/models/SeverityLevelsFilter.js.map +1 -0
- package/dist/models/SubscriptionForModify.d.ts +16 -9
- package/dist/models/SubscriptionForModify.js +2 -0
- package/dist/models/SubscriptionForModify.js.map +1 -1
- package/dist/models/SubscriptionForView.d.ts +12 -5
- package/dist/models/SubscriptionForView.js +2 -0
- package/dist/models/SubscriptionForView.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +6 -6
- package/dist/models/UpdateDeliveryTaskRequest.d.ts +8 -8
- package/dist/models/UpdateDeliveryTaskResponseBody.d.ts +1 -1
- package/dist/models/UpdatePrometheusInstanceRequest.d.ts +16 -10
- package/dist/models/UpdatePrometheusInstanceRequest.js.map +1 -1
- package/dist/models/UpdatePrometheusInstanceResponseBody.d.ts +2 -2
- package/dist/models/UpdateSubscriptionRequest.d.ts +1 -1
- package/dist/models/UpdateSubscriptionResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +30 -0
- package/dist/models/model.js +86 -25
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +164 -61
- package/src/models/AlertRuleCondition.ts +155 -158
- package/src/models/AlertRuleQuery.ts +111 -77
- package/src/models/AlertRuleTemplate.ts +15 -56
- package/src/models/AlertRuleV2.ts +26 -5
- package/src/models/ApmCompositeCompareConfig.ts +14 -0
- package/src/models/ApmThresholdConfig.ts +6 -8
- package/src/models/CloudMonitoringCompositeEscalation.ts +56 -0
- package/src/models/CloudMonitoringCompositeEscalationEntry.ts +42 -0
- package/src/models/CloudMonitoringExpressEscalation.ts +45 -0
- package/src/models/CloudMonitoringPrometheusEscalation.ts +45 -0
- package/src/models/CloudMonitoringSimpleEscalation.ts +49 -0
- package/src/models/CloudMonitoringSimpleEscalationEntry.ts +42 -0
- package/src/models/ConditionConfigUnified.ts +77 -34
- package/src/models/CreateAggTaskGroupRequest.ts +20 -20
- package/src/models/CreateAggTaskGroupResponseBody.ts +6 -6
- package/src/models/CreatePrometheusInstanceRequest.ts +27 -22
- package/src/models/CreatePrometheusInstanceResponseBody.ts +1 -1
- package/src/models/CreatePrometheusViewRequest.ts +12 -12
- package/src/models/CreatePrometheusViewResponseBody.ts +2 -2
- package/src/models/DatasourceConfigUnified.ts +21 -0
- package/src/models/DatasourceTypeFilter.ts +31 -0
- package/src/models/DescribeMetricMetaListRequest.ts +23 -20
- package/src/models/DescribeMetricMetaListResponseBody.ts +25 -17
- package/src/models/DescribeMetricMetaListShrinkRequest.ts +21 -18
- package/src/models/GetCloudResourceDataRequest.ts +5 -5
- package/src/models/GetCloudResourceDataResponseBody.ts +66 -2
- package/src/models/GetDeliveryTaskResponseBody.ts +15 -15
- package/src/models/GetIntegrationPolicyResponseBody.ts +49 -49
- package/src/models/GetMemoryStoreResponseBody.ts +15 -15
- package/src/models/GetPrometheusInstanceRequest.ts +2 -2
- package/src/models/GetPrometheusInstanceResponseBody.ts +36 -31
- package/src/models/GetPrometheusViewRequest.ts +2 -2
- package/src/models/GetPrometheusViewResponseBody.ts +35 -21
- package/src/models/ListAggTaskGroupsRequest.ts +13 -8
- package/src/models/ListAggTaskGroupsResponseBody.ts +15 -15
- package/src/models/ListAggTaskGroupsShrinkRequest.ts +13 -8
- package/src/models/ListAlertRobotsRequest.ts +5 -5
- package/src/models/ListAlertRobotsResponseBody.ts +9 -6
- package/src/models/ListAlertRobotsShrinkRequest.ts +5 -5
- package/src/models/ListDeliveryTasksRequest.ts +4 -4
- package/src/models/ListDeliveryTasksResponseBody.ts +22 -22
- package/src/models/ListDeliveryTasksShrinkRequest.ts +4 -4
- package/src/models/ListEventMetaCacheAllKeysDataResult.ts +63 -0
- package/src/models/ListIntegrationPoliciesRequest.ts +9 -9
- package/src/models/ListIntegrationPoliciesResponseBody.ts +24 -20
- package/src/models/ListIntegrationPoliciesShrinkRequest.ts +9 -9
- package/src/models/ListPipelinesRequest.ts +3 -3
- package/src/models/ListPipelinesResponseBody.ts +6 -6
- package/src/models/ListPrometheusInstancesRequest.ts +13 -5
- package/src/models/ListPrometheusInstancesResponseBody.ts +23 -9
- package/src/models/ListPrometheusInstancesShrinkRequest.ts +13 -5
- package/src/models/ListPrometheusViewsRequest.ts +5 -5
- package/src/models/ListPrometheusViewsResponseBody.ts +22 -10
- package/src/models/ListPrometheusViewsShrinkRequest.ts +5 -5
- package/src/models/ManageAlertRulesRequest.ts +1 -1
- package/src/models/ManageAlertRulesResult.ts +17 -0
- package/src/models/ManageAlertRulesShrinkRequest.ts +1 -1
- package/src/models/ManageAlertRulesUnifiedActionInput.ts +6 -62
- package/src/models/MetricSetMultiTrigger.ts +58 -0
- package/src/models/MetricSetNamedQueryEntry.ts +40 -0
- package/src/models/MetricSetTriggerCompositeExpression.ts +37 -0
- package/src/models/MetricSetTriggerSimpleExpression.ts +42 -0
- package/src/models/NotifyConfigUnified.ts +6 -28
- package/src/models/NotifyStrategyIdFilter.ts +31 -0
- package/src/models/ObserveGroup.ts +195 -0
- package/src/models/ObserveGroupDetail.ts +185 -0
- package/src/models/ObserveGroupDiscoverRule.ts +292 -0
- package/src/models/ObserveGroupInstance.ts +107 -0
- package/src/models/ObserveResourceGlobalScopeFilter.ts +31 -0
- package/src/models/ObserveResourceListFilter.ts +34 -0
- package/src/models/ObserveResourceTypeFilter.ts +31 -0
- package/src/models/OpenCmsServiceResponseBody.ts +2 -2
- package/src/models/PartitionKeyFilter.ts +31 -0
- package/src/models/QueryAlertRulesFilter.ts +47 -8
- package/src/models/QueryAlertRulesRequest.ts +4 -4
- package/src/models/QueryAlertRulesShrinkRequest.ts +4 -4
- package/src/models/QueryConfigUnified.ts +41 -52
- package/src/models/SearchMemoriesRequest.ts +7 -4
- package/src/models/SearchMemoriesResponseBody.ts +4 -4
- package/src/models/SeverityLevelsFilter.ts +34 -0
- package/src/models/SubscriptionForModify.ts +18 -9
- package/src/models/SubscriptionForView.ts +14 -5
- package/src/models/UpdateContextStoreRequest.ts +6 -6
- package/src/models/UpdateDeliveryTaskRequest.ts +8 -8
- package/src/models/UpdateDeliveryTaskResponseBody.ts +1 -1
- package/src/models/UpdatePrometheusInstanceRequest.ts +16 -10
- package/src/models/UpdatePrometheusInstanceResponseBody.ts +2 -2
- package/src/models/UpdateSubscriptionRequest.ts +1 -1
- package/src/models/UpdateSubscriptionResponseBody.ts +1 -1
- package/src/models/model.ts +30 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AlertRuleConditionCaseList extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The match expression. Example: logLevel: error.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* logLevel: error
|
|
@@ -13,9 +13,9 @@ export class AlertRuleConditionCaseList extends $dara.Model {
|
|
|
13
13
|
condition?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
17
|
-
*
|
|
18
|
-
* Single range:
|
|
16
|
+
* The count match expression. Examples:
|
|
17
|
+
* Range combination: __count__ >= 3 && __count__ <= 10
|
|
18
|
+
* Single range: __count__ >= 3
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* count >= 3
|
|
@@ -31,17 +31,13 @@ export class AlertRuleConditionCaseList extends $dara.Model {
|
|
|
31
31
|
level?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The match type
|
|
34
|
+
* The match type: has data, has a specific number of data entries, has data match, or has a specific number of data matches.
|
|
35
35
|
*
|
|
36
36
|
* Valid values:
|
|
37
|
-
*
|
|
38
|
-
* -
|
|
39
|
-
*
|
|
40
|
-
* -
|
|
41
|
-
*
|
|
42
|
-
* - HasDataMatch: Data matches the condition.
|
|
43
|
-
*
|
|
44
|
-
* - HasDataMatchCount: A specific number of data entries match the condition.
|
|
37
|
+
* - HasData: has data
|
|
38
|
+
* - HasDataCount: has a specific number of data entries
|
|
39
|
+
* - HasDataMatch: has data match
|
|
40
|
+
* - HasDataMatchCount: has a specific number of data matches
|
|
45
41
|
*
|
|
46
42
|
* @example
|
|
47
43
|
* HasData
|
|
@@ -85,7 +81,7 @@ export class AlertRuleConditionCompareListValueLevelList extends $dara.Model {
|
|
|
85
81
|
level?: string;
|
|
86
82
|
/**
|
|
87
83
|
* @remarks
|
|
88
|
-
* The threshold
|
|
84
|
+
* The comparison threshold.
|
|
89
85
|
*
|
|
90
86
|
* @example
|
|
91
87
|
* 120
|
|
@@ -117,22 +113,15 @@ export class AlertRuleConditionCompareListValueLevelList extends $dara.Model {
|
|
|
117
113
|
export class AlertRuleConditionCompareList extends $dara.Model {
|
|
118
114
|
/**
|
|
119
115
|
* @remarks
|
|
120
|
-
* The aggregate
|
|
116
|
+
* The aggregate functions applied after time series aggregation.
|
|
121
117
|
*
|
|
122
118
|
* - count
|
|
123
|
-
*
|
|
124
119
|
* - sum
|
|
125
|
-
*
|
|
126
120
|
* - avg
|
|
127
|
-
*
|
|
128
121
|
* - min
|
|
129
|
-
*
|
|
130
122
|
* - max
|
|
131
|
-
*
|
|
132
123
|
* - p90
|
|
133
|
-
*
|
|
134
124
|
* - p95
|
|
135
|
-
*
|
|
136
125
|
* - p99
|
|
137
126
|
*
|
|
138
127
|
* @example
|
|
@@ -141,7 +130,7 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
141
130
|
aggregate?: string;
|
|
142
131
|
/**
|
|
143
132
|
* @remarks
|
|
144
|
-
* The unit
|
|
133
|
+
* The data unit.
|
|
145
134
|
*
|
|
146
135
|
* @example
|
|
147
136
|
* %
|
|
@@ -149,7 +138,7 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
149
138
|
baseUnit?: string;
|
|
150
139
|
/**
|
|
151
140
|
* @remarks
|
|
152
|
-
* The unit
|
|
141
|
+
* The display unit.
|
|
153
142
|
*
|
|
154
143
|
* @example
|
|
155
144
|
* %
|
|
@@ -157,23 +146,16 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
157
146
|
displayUnit?: string;
|
|
158
147
|
/**
|
|
159
148
|
* @remarks
|
|
160
|
-
* The comparison
|
|
161
|
-
*
|
|
162
|
-
* - GT: Greater than.
|
|
149
|
+
* The comparison operator. Determines whether year-over-year or period-over-period comparison is used.
|
|
163
150
|
*
|
|
164
|
-
* -
|
|
165
|
-
*
|
|
166
|
-
* -
|
|
167
|
-
*
|
|
168
|
-
* -
|
|
169
|
-
*
|
|
170
|
-
* -
|
|
171
|
-
*
|
|
172
|
-
* - NE: Not equal to.
|
|
173
|
-
*
|
|
174
|
-
* - YOY_UP: Year-over-year increase.
|
|
175
|
-
*
|
|
176
|
-
* - YOY_DOWN: Year-over-year decrease.
|
|
151
|
+
* - Greater than: GT
|
|
152
|
+
* - Greater than or equal to: GTE
|
|
153
|
+
* - Less than: LT
|
|
154
|
+
* - Less than or equal to: LTE
|
|
155
|
+
* - Equal to: EQ
|
|
156
|
+
* - Not equal to: NE
|
|
157
|
+
* - Year-over-year increase: YOY_UP
|
|
158
|
+
* - Year-over-year decrease: YOY_DOWN
|
|
177
159
|
*
|
|
178
160
|
* @example
|
|
179
161
|
* GT
|
|
@@ -181,7 +163,7 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
181
163
|
oper?: string;
|
|
182
164
|
/**
|
|
183
165
|
* @remarks
|
|
184
|
-
* The threshold
|
|
166
|
+
* The comparison threshold.
|
|
185
167
|
*
|
|
186
168
|
* @example
|
|
187
169
|
* 50
|
|
@@ -189,12 +171,13 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
189
171
|
value?: number;
|
|
190
172
|
/**
|
|
191
173
|
* @remarks
|
|
192
|
-
*
|
|
174
|
+
* The list of alert levels for different values.
|
|
193
175
|
*/
|
|
194
176
|
valueLevelList?: AlertRuleConditionCompareListValueLevelList[];
|
|
195
177
|
/**
|
|
196
178
|
* @remarks
|
|
197
|
-
* The time unit for year-over-year comparison.
|
|
179
|
+
* The time unit for year-over-year comparison. Valid only when oper is set to YOY_UP or YOY_DOWN.
|
|
180
|
+
* Valid values: minute, hour, day, week, month.
|
|
198
181
|
*
|
|
199
182
|
* @example
|
|
200
183
|
* month
|
|
@@ -202,7 +185,7 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
202
185
|
yoyTimeUnit?: string;
|
|
203
186
|
/**
|
|
204
187
|
* @remarks
|
|
205
|
-
* The
|
|
188
|
+
* The value of the year-over-year time period. Used together with yoyTimeUnit.
|
|
206
189
|
*
|
|
207
190
|
* @example
|
|
208
191
|
* 1
|
|
@@ -249,31 +232,20 @@ export class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
249
232
|
export class AlertRuleConditionCompositeEscalationEscalations extends $dara.Model {
|
|
250
233
|
/**
|
|
251
234
|
* @remarks
|
|
252
|
-
* The comparison operator
|
|
235
|
+
* The threshold comparison operator. Valid values:
|
|
253
236
|
*
|
|
254
237
|
* - GreaterThanOrEqualToThreshold: Greater than or equal to.
|
|
255
|
-
*
|
|
256
238
|
* - GreaterThanThreshold: Greater than.
|
|
257
|
-
*
|
|
258
239
|
* - LessThanOrEqualToThreshold: Less than or equal to.
|
|
259
|
-
*
|
|
260
240
|
* - LessThanThreshold: Less than.
|
|
261
|
-
*
|
|
262
241
|
* - NotEqualToThreshold: Not equal to.
|
|
263
|
-
*
|
|
264
242
|
* - EqualToThreshold: Equal to.
|
|
265
|
-
*
|
|
266
|
-
* -
|
|
267
|
-
*
|
|
268
|
-
* -
|
|
269
|
-
*
|
|
270
|
-
* -
|
|
271
|
-
*
|
|
272
|
-
* - LessThanLastWeek: Lower than the value at the same time last week.
|
|
273
|
-
*
|
|
274
|
-
* - GreaterThanLastPeriod: Higher than the value in the previous period.
|
|
275
|
-
*
|
|
276
|
-
* - LessThanLastPeriod: Lower than the value in the previous period.
|
|
243
|
+
* - GreaterThanYesterday: Year-over-year increase compared with the same time yesterday.
|
|
244
|
+
* - LessThanYesterday: Year-over-year decrease compared with the same time yesterday.
|
|
245
|
+
* - GreaterThanLastWeek: Year-over-year increase compared with the same time last week.
|
|
246
|
+
* - LessThanLastWeek: Year-over-year decrease compared with the same time last week.
|
|
247
|
+
* - GreaterThanLastPeriod: Period-over-period increase compared with the previous period.
|
|
248
|
+
* - LessThanLastPeriod: Period-over-period decrease compared with the previous period.
|
|
277
249
|
*
|
|
278
250
|
* @example
|
|
279
251
|
* GreaterThanOrEqualToThreshold
|
|
@@ -281,7 +253,7 @@ export class AlertRuleConditionCompositeEscalationEscalations extends $dara.Mode
|
|
|
281
253
|
comparisonOperator?: string;
|
|
282
254
|
/**
|
|
283
255
|
* @remarks
|
|
284
|
-
* The name
|
|
256
|
+
* The metric name.
|
|
285
257
|
*
|
|
286
258
|
* @example
|
|
287
259
|
* cpu_total
|
|
@@ -289,7 +261,7 @@ export class AlertRuleConditionCompositeEscalationEscalations extends $dara.Mode
|
|
|
289
261
|
metricName?: string;
|
|
290
262
|
/**
|
|
291
263
|
* @remarks
|
|
292
|
-
* The time window
|
|
264
|
+
* The time window of the metric.
|
|
293
265
|
*
|
|
294
266
|
* @example
|
|
295
267
|
* 60
|
|
@@ -297,17 +269,14 @@ export class AlertRuleConditionCompositeEscalationEscalations extends $dara.Mode
|
|
|
297
269
|
period?: number;
|
|
298
270
|
/**
|
|
299
271
|
* @remarks
|
|
300
|
-
* The statistical method. The
|
|
272
|
+
* The statistical method. The value of this parameter is determined by the Statistics column corresponding to the MetricName of the specified cloud service. Example values for the statistical method of a metric:
|
|
301
273
|
*
|
|
302
|
-
* - $Maximum:
|
|
274
|
+
* - $Maximum: Maximum value.
|
|
275
|
+
* - $Minimum: Minimum value.
|
|
276
|
+
* - $Average: Average value.
|
|
277
|
+
* - $Availability: Availability rate (typically used for site monitoring).
|
|
303
278
|
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* - $Average: The average value.
|
|
307
|
-
*
|
|
308
|
-
* - $Availability: The availability rate. This is typically used for site monitoring.
|
|
309
|
-
*
|
|
310
|
-
* Note: The dollar sign ($) is a standard prefix for metrics.
|
|
279
|
+
* Note: $ is the unified prefix symbol for metrics.
|
|
311
280
|
*
|
|
312
281
|
* @example
|
|
313
282
|
* $Maximum
|
|
@@ -353,12 +322,12 @@ export class AlertRuleConditionCompositeEscalationEscalations extends $dara.Mode
|
|
|
353
322
|
export class AlertRuleConditionCompositeEscalation extends $dara.Model {
|
|
354
323
|
/**
|
|
355
324
|
* @remarks
|
|
356
|
-
*
|
|
325
|
+
* The list of composite conditions for multiple metrics.
|
|
357
326
|
*/
|
|
358
327
|
escalations?: AlertRuleConditionCompositeEscalationEscalations[];
|
|
359
328
|
/**
|
|
360
329
|
* @remarks
|
|
361
|
-
* The alert level
|
|
330
|
+
* The alert level triggered when the condition is met. Composite metric alerts support only one level.
|
|
362
331
|
*
|
|
363
332
|
* @example
|
|
364
333
|
* INFO
|
|
@@ -366,7 +335,7 @@ export class AlertRuleConditionCompositeEscalation extends $dara.Model {
|
|
|
366
335
|
level?: string;
|
|
367
336
|
/**
|
|
368
337
|
* @remarks
|
|
369
|
-
* The relationship between multiple metric conditions. Valid values: and or
|
|
338
|
+
* The relationship between multiple metric conditions. Valid values: and, or.
|
|
370
339
|
*
|
|
371
340
|
* @example
|
|
372
341
|
* and
|
|
@@ -413,12 +382,10 @@ export class AlertRuleConditionCompositeEscalation extends $dara.Model {
|
|
|
413
382
|
export class AlertRuleConditionExpressEscalation extends $dara.Model {
|
|
414
383
|
/**
|
|
415
384
|
* @remarks
|
|
416
|
-
* The alert level
|
|
385
|
+
* The alert level triggered when the condition is met. Expression-based alerts support only one level.
|
|
417
386
|
*
|
|
418
387
|
* - CRITICAL
|
|
419
|
-
*
|
|
420
388
|
* - WARNING
|
|
421
|
-
*
|
|
422
389
|
* - INFO
|
|
423
390
|
*
|
|
424
391
|
* @example
|
|
@@ -469,31 +436,20 @@ export class AlertRuleConditionExpressEscalation extends $dara.Model {
|
|
|
469
436
|
export class AlertRuleConditionSimpleEscalationEscalations extends $dara.Model {
|
|
470
437
|
/**
|
|
471
438
|
* @remarks
|
|
472
|
-
* The comparison operator
|
|
439
|
+
* The threshold comparison operator. Valid values:
|
|
473
440
|
*
|
|
474
441
|
* - GreaterThanOrEqualToThreshold: Greater than or equal to.
|
|
475
|
-
*
|
|
476
442
|
* - GreaterThanThreshold: Greater than.
|
|
477
|
-
*
|
|
478
443
|
* - LessThanOrEqualToThreshold: Less than or equal to.
|
|
479
|
-
*
|
|
480
444
|
* - LessThanThreshold: Less than.
|
|
481
|
-
*
|
|
482
445
|
* - NotEqualToThreshold: Not equal to.
|
|
483
|
-
*
|
|
484
446
|
* - EqualToThreshold: Equal to.
|
|
485
|
-
*
|
|
486
|
-
* -
|
|
487
|
-
*
|
|
488
|
-
* -
|
|
489
|
-
*
|
|
490
|
-
* -
|
|
491
|
-
*
|
|
492
|
-
* - LessThanLastWeek: Lower than the value at the same time last week.
|
|
493
|
-
*
|
|
494
|
-
* - GreaterThanLastPeriod: Higher than the value in the previous period.
|
|
495
|
-
*
|
|
496
|
-
* - LessThanLastPeriod: Lower than the value in the previous period.
|
|
447
|
+
* - GreaterThanYesterday: Year-over-year increase compared with the same time yesterday.
|
|
448
|
+
* - LessThanYesterday: Year-over-year decrease compared with the same time yesterday.
|
|
449
|
+
* - GreaterThanLastWeek: Year-over-year increase compared with the same time last week.
|
|
450
|
+
* - LessThanLastWeek: Year-over-year decrease compared with the same time last week.
|
|
451
|
+
* - GreaterThanLastPeriod: Period-over-period increase compared with the previous period.
|
|
452
|
+
* - LessThanLastPeriod: Period-over-period decrease compared with the previous period.
|
|
497
453
|
*
|
|
498
454
|
* @example
|
|
499
455
|
* GreaterThanOrEqualToThreshold
|
|
@@ -501,12 +457,10 @@ export class AlertRuleConditionSimpleEscalationEscalations extends $dara.Model {
|
|
|
501
457
|
comparisonOperator?: string;
|
|
502
458
|
/**
|
|
503
459
|
* @remarks
|
|
504
|
-
* The alert level
|
|
460
|
+
* The alert level triggered when the condition is met. Expression-based alerts support only one level.
|
|
505
461
|
*
|
|
506
462
|
* - CRITICAL
|
|
507
|
-
*
|
|
508
463
|
* - WARNING
|
|
509
|
-
*
|
|
510
464
|
* - INFO
|
|
511
465
|
*
|
|
512
466
|
* @example
|
|
@@ -515,7 +469,7 @@ export class AlertRuleConditionSimpleEscalationEscalations extends $dara.Model {
|
|
|
515
469
|
level?: string;
|
|
516
470
|
/**
|
|
517
471
|
* @remarks
|
|
518
|
-
* The statistical method. The
|
|
472
|
+
* The statistical method. The value of this parameter is determined by the Statistics column corresponding to the MetricName of the specified cloud service. Examples: Maximum, Minimum, and Average.
|
|
519
473
|
*
|
|
520
474
|
* @example
|
|
521
475
|
* Average
|
|
@@ -569,12 +523,12 @@ export class AlertRuleConditionSimpleEscalationEscalations extends $dara.Model {
|
|
|
569
523
|
export class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
570
524
|
/**
|
|
571
525
|
* @remarks
|
|
572
|
-
*
|
|
526
|
+
* The list of conditions. When an alert rule corresponds to multiple levels, each level has a condition object.
|
|
573
527
|
*/
|
|
574
528
|
escalations?: AlertRuleConditionSimpleEscalationEscalations[];
|
|
575
529
|
/**
|
|
576
530
|
* @remarks
|
|
577
|
-
* Applicable
|
|
531
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
578
532
|
*
|
|
579
533
|
* The metric associated with the alert condition.
|
|
580
534
|
*
|
|
@@ -584,7 +538,7 @@ export class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
|
584
538
|
metricName?: string;
|
|
585
539
|
/**
|
|
586
540
|
* @remarks
|
|
587
|
-
* The time window
|
|
541
|
+
* The time window of the metric. Unit: seconds.
|
|
588
542
|
*
|
|
589
543
|
* @example
|
|
590
544
|
* 60
|
|
@@ -618,6 +572,38 @@ export class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
|
618
572
|
}
|
|
619
573
|
}
|
|
620
574
|
|
|
575
|
+
export class AlertRuleConditionThresholdList extends $dara.Model {
|
|
576
|
+
max?: number;
|
|
577
|
+
min?: number;
|
|
578
|
+
severity?: string;
|
|
579
|
+
threshold?: number;
|
|
580
|
+
static names(): { [key: string]: string } {
|
|
581
|
+
return {
|
|
582
|
+
max: 'max',
|
|
583
|
+
min: 'min',
|
|
584
|
+
severity: 'severity',
|
|
585
|
+
threshold: 'threshold',
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
static types(): { [key: string]: any } {
|
|
590
|
+
return {
|
|
591
|
+
max: 'number',
|
|
592
|
+
min: 'number',
|
|
593
|
+
severity: 'string',
|
|
594
|
+
threshold: 'number',
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
validate() {
|
|
599
|
+
super.validate();
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
constructor(map?: { [key: string]: any }) {
|
|
603
|
+
super(map);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
621
607
|
export class AlertRuleConditionTriggersExpressionConditions extends $dara.Model {
|
|
622
608
|
expressionType?: string;
|
|
623
609
|
operator?: string;
|
|
@@ -717,9 +703,9 @@ export class AlertRuleConditionTriggers extends $dara.Model {
|
|
|
717
703
|
export class AlertRuleCondition extends $dara.Model {
|
|
718
704
|
/**
|
|
719
705
|
* @remarks
|
|
720
|
-
* Applicable
|
|
706
|
+
* Applicable condition type: SLS_CONDITION.
|
|
721
707
|
*
|
|
722
|
-
* The number of times the condition must be met
|
|
708
|
+
* The number of times the condition must be met before an alert is triggered. Default value: 1.
|
|
723
709
|
*
|
|
724
710
|
* @example
|
|
725
711
|
* 1
|
|
@@ -727,37 +713,37 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
727
713
|
alertCount?: number;
|
|
728
714
|
/**
|
|
729
715
|
* @remarks
|
|
730
|
-
* Applicable
|
|
716
|
+
* Applicable condition type: SLS_CONDITION.
|
|
731
717
|
*
|
|
732
|
-
*
|
|
718
|
+
* The list of Simple Log Service alert conditions.
|
|
733
719
|
*/
|
|
734
720
|
caseList?: AlertRuleConditionCaseList[];
|
|
735
721
|
/**
|
|
736
722
|
* @remarks
|
|
737
|
-
* Applicable
|
|
723
|
+
* Applicable condition type: APM_CONDITION.
|
|
738
724
|
*
|
|
739
|
-
*
|
|
725
|
+
* The list of Application Performance Monitoring (APM) alert comparison conditions.
|
|
740
726
|
*/
|
|
741
727
|
compareList?: AlertRuleConditionCompareList[];
|
|
742
728
|
/**
|
|
743
729
|
* @remarks
|
|
744
|
-
* Applicable
|
|
730
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
745
731
|
*
|
|
746
|
-
* This parameter
|
|
732
|
+
* This parameter takes effect only when escalationType is set to composite. The composite metric alert condition.
|
|
747
733
|
*/
|
|
748
734
|
compositeEscalation?: AlertRuleConditionCompositeEscalation;
|
|
735
|
+
countOperator?: string;
|
|
736
|
+
countThreshold?: number;
|
|
749
737
|
enableSeveritySuppression?: boolean;
|
|
750
738
|
/**
|
|
751
739
|
* @remarks
|
|
752
|
-
* Applicable
|
|
740
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
753
741
|
*
|
|
754
742
|
* Valid values:
|
|
755
743
|
*
|
|
756
|
-
* - simple:
|
|
757
|
-
*
|
|
758
|
-
* -
|
|
759
|
-
*
|
|
760
|
-
* - express: An expression-based condition.
|
|
744
|
+
* - simple: simple metric condition.
|
|
745
|
+
* - composite: composite metric condition.
|
|
746
|
+
* - express: expression condition.
|
|
761
747
|
*
|
|
762
748
|
* @example
|
|
763
749
|
* simple
|
|
@@ -765,16 +751,21 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
765
751
|
escalationType?: string;
|
|
766
752
|
/**
|
|
767
753
|
* @remarks
|
|
768
|
-
*
|
|
754
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
769
755
|
*
|
|
770
|
-
* This parameter takes effect when escalationType is set to composite.
|
|
756
|
+
* This parameter takes effect only when escalationType is set to composite. The multi-metric composite alert condition.
|
|
771
757
|
*/
|
|
772
758
|
expressEscalation?: AlertRuleConditionExpressEscalation;
|
|
759
|
+
matchField?: string;
|
|
760
|
+
matchOperator?: string;
|
|
761
|
+
matchValue?: string;
|
|
762
|
+
max?: number;
|
|
763
|
+
min?: number;
|
|
773
764
|
/**
|
|
774
765
|
* @remarks
|
|
775
|
-
* Applicable
|
|
766
|
+
* Applicable condition type: APM_CONDITION.
|
|
776
767
|
*
|
|
777
|
-
* The alert level
|
|
768
|
+
* The alert level when no data is available. If this parameter is not specified, no alert is triggered when no data is available.
|
|
778
769
|
*
|
|
779
770
|
* @example
|
|
780
771
|
* INFO
|
|
@@ -782,9 +773,9 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
782
773
|
noDataAlertLevel?: string;
|
|
783
774
|
/**
|
|
784
775
|
* @remarks
|
|
785
|
-
* Applicable
|
|
776
|
+
* Applicable condition type: APM_CONDITION.
|
|
786
777
|
*
|
|
787
|
-
* The value
|
|
778
|
+
* The compensation value when no data is available.
|
|
788
779
|
*
|
|
789
780
|
* @example
|
|
790
781
|
* 1
|
|
@@ -792,15 +783,13 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
792
783
|
noDataAppendValue?: string;
|
|
793
784
|
/**
|
|
794
785
|
* @remarks
|
|
795
|
-
* Applicable
|
|
786
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
796
787
|
*
|
|
797
|
-
* The method
|
|
788
|
+
* The method used to handle alerts when no monitoring data is available. Valid values:
|
|
798
789
|
*
|
|
799
790
|
* - KEEP_LAST_STATE (default): No action is taken.
|
|
800
|
-
*
|
|
801
791
|
* - INSUFFICIENT_DATA: The alert content indicates that no data is available.
|
|
802
|
-
*
|
|
803
|
-
* - OK: The status is normal.
|
|
792
|
+
* - OK: Normal.
|
|
804
793
|
*
|
|
805
794
|
* @example
|
|
806
795
|
* KEEP_LAST_STATE
|
|
@@ -808,23 +797,16 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
808
797
|
noDataPolicy?: string;
|
|
809
798
|
/**
|
|
810
799
|
* @remarks
|
|
811
|
-
* The comparison
|
|
812
|
-
*
|
|
813
|
-
* - GT: Greater than.
|
|
814
|
-
*
|
|
815
|
-
* - GTE: Greater than or equal to.
|
|
800
|
+
* The comparison operator. Specifies whether to use year-over-year or period-over-period comparison. Valid values:
|
|
816
801
|
*
|
|
817
|
-
* -
|
|
818
|
-
*
|
|
819
|
-
* -
|
|
820
|
-
*
|
|
821
|
-
* - EQ:
|
|
822
|
-
*
|
|
823
|
-
* -
|
|
824
|
-
*
|
|
825
|
-
* - YOY_UP: Year-over-year increase.
|
|
826
|
-
*
|
|
827
|
-
* - YOY_DOWN: Year-over-year decrease.
|
|
802
|
+
* - GT: greater than.
|
|
803
|
+
* - GTE: greater than or equal to.
|
|
804
|
+
* - LT: less than.
|
|
805
|
+
* - LTE: less than or equal to.
|
|
806
|
+
* - EQ: equal to.
|
|
807
|
+
* - NE: not equal to.
|
|
808
|
+
* - YOY_UP: year-over-year increase.
|
|
809
|
+
* - YOY_DOWN: year-over-year decrease.
|
|
828
810
|
*
|
|
829
811
|
* @example
|
|
830
812
|
* LT
|
|
@@ -832,12 +814,10 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
832
814
|
oper?: string;
|
|
833
815
|
/**
|
|
834
816
|
* @remarks
|
|
835
|
-
* Applicable
|
|
817
|
+
* Applicable condition type: APM_CONDITION.
|
|
836
818
|
*
|
|
837
819
|
* The logical relationship between multiple conditions. Valid values:
|
|
838
|
-
*
|
|
839
820
|
* - and
|
|
840
|
-
*
|
|
841
821
|
* - or
|
|
842
822
|
*
|
|
843
823
|
* @example
|
|
@@ -846,21 +826,19 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
846
826
|
relation?: string;
|
|
847
827
|
/**
|
|
848
828
|
* @remarks
|
|
849
|
-
* Applicable
|
|
829
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
850
830
|
*
|
|
851
|
-
* This parameter
|
|
831
|
+
* This parameter takes effect only when escalationType is set to simple. The alert condition configured for a single metric.
|
|
852
832
|
*/
|
|
853
833
|
simpleEscalation?: AlertRuleConditionSimpleEscalation;
|
|
834
|
+
thresholdList?: AlertRuleConditionThresholdList[];
|
|
854
835
|
triggers?: AlertRuleConditionTriggers[];
|
|
855
836
|
/**
|
|
856
837
|
* @remarks
|
|
857
|
-
* The
|
|
858
|
-
*
|
|
859
|
-
* -
|
|
860
|
-
*
|
|
861
|
-
* - APM_CONDITION: An APM alert condition.
|
|
862
|
-
*
|
|
863
|
-
* - CMS_BASIC_CONDITION: A basic Cloud Monitor alert condition.
|
|
838
|
+
* The rule condition type. Valid values:
|
|
839
|
+
* - SLS_CONDITION: Simple Log Service alert condition.
|
|
840
|
+
* - APM_CONDITION: APM alert condition.
|
|
841
|
+
* - CMS_BASIC_CONDITION: CloudMonitor Basic monitoring alert condition.
|
|
864
842
|
*
|
|
865
843
|
* This parameter is required.
|
|
866
844
|
*
|
|
@@ -870,7 +848,7 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
870
848
|
type?: string;
|
|
871
849
|
/**
|
|
872
850
|
* @remarks
|
|
873
|
-
* The threshold that triggers
|
|
851
|
+
* The threshold that triggers the alert.
|
|
874
852
|
*
|
|
875
853
|
* @example
|
|
876
854
|
* 60
|
|
@@ -882,15 +860,23 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
882
860
|
caseList: 'caseList',
|
|
883
861
|
compareList: 'compareList',
|
|
884
862
|
compositeEscalation: 'compositeEscalation',
|
|
863
|
+
countOperator: 'countOperator',
|
|
864
|
+
countThreshold: 'countThreshold',
|
|
885
865
|
enableSeveritySuppression: 'enableSeveritySuppression',
|
|
886
866
|
escalationType: 'escalationType',
|
|
887
867
|
expressEscalation: 'expressEscalation',
|
|
868
|
+
matchField: 'matchField',
|
|
869
|
+
matchOperator: 'matchOperator',
|
|
870
|
+
matchValue: 'matchValue',
|
|
871
|
+
max: 'max',
|
|
872
|
+
min: 'min',
|
|
888
873
|
noDataAlertLevel: 'noDataAlertLevel',
|
|
889
874
|
noDataAppendValue: 'noDataAppendValue',
|
|
890
875
|
noDataPolicy: 'noDataPolicy',
|
|
891
876
|
oper: 'oper',
|
|
892
877
|
relation: 'relation',
|
|
893
878
|
simpleEscalation: 'simpleEscalation',
|
|
879
|
+
thresholdList: 'thresholdList',
|
|
894
880
|
triggers: 'triggers',
|
|
895
881
|
type: 'type',
|
|
896
882
|
value: 'value',
|
|
@@ -903,15 +889,23 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
903
889
|
caseList: { 'type': 'array', 'itemType': AlertRuleConditionCaseList },
|
|
904
890
|
compareList: { 'type': 'array', 'itemType': AlertRuleConditionCompareList },
|
|
905
891
|
compositeEscalation: AlertRuleConditionCompositeEscalation,
|
|
892
|
+
countOperator: 'string',
|
|
893
|
+
countThreshold: 'number',
|
|
906
894
|
enableSeveritySuppression: 'boolean',
|
|
907
895
|
escalationType: 'string',
|
|
908
896
|
expressEscalation: AlertRuleConditionExpressEscalation,
|
|
897
|
+
matchField: 'string',
|
|
898
|
+
matchOperator: 'string',
|
|
899
|
+
matchValue: 'string',
|
|
900
|
+
max: 'number',
|
|
901
|
+
min: 'number',
|
|
909
902
|
noDataAlertLevel: 'string',
|
|
910
903
|
noDataAppendValue: 'string',
|
|
911
904
|
noDataPolicy: 'string',
|
|
912
905
|
oper: 'string',
|
|
913
906
|
relation: 'string',
|
|
914
907
|
simpleEscalation: AlertRuleConditionSimpleEscalation,
|
|
908
|
+
thresholdList: { 'type': 'array', 'itemType': AlertRuleConditionThresholdList },
|
|
915
909
|
triggers: { 'type': 'array', 'itemType': AlertRuleConditionTriggers },
|
|
916
910
|
type: 'string',
|
|
917
911
|
value: 'number',
|
|
@@ -934,6 +928,9 @@ export class AlertRuleCondition extends $dara.Model {
|
|
|
934
928
|
if(this.simpleEscalation && typeof (this.simpleEscalation as any).validate === 'function') {
|
|
935
929
|
(this.simpleEscalation as any).validate();
|
|
936
930
|
}
|
|
931
|
+
if(Array.isArray(this.thresholdList)) {
|
|
932
|
+
$dara.Model.validateArray(this.thresholdList);
|
|
933
|
+
}
|
|
937
934
|
if(Array.isArray(this.triggers)) {
|
|
938
935
|
$dara.Model.validateArray(this.triggers);
|
|
939
936
|
}
|