@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
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class AlertRuleConditionCaseList extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The match expression. Example: logLevel: error.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* logLevel: error
|
|
@@ -10,9 +10,9 @@ export declare class AlertRuleConditionCaseList extends $dara.Model {
|
|
|
10
10
|
condition?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The
|
|
14
|
-
*
|
|
15
|
-
* Single range:
|
|
13
|
+
* The count match expression. Examples:
|
|
14
|
+
* Range combination: __count__ >= 3 && __count__ <= 10
|
|
15
|
+
* Single range: __count__ >= 3
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* count >= 3
|
|
@@ -28,17 +28,13 @@ export declare class AlertRuleConditionCaseList extends $dara.Model {
|
|
|
28
28
|
level?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The match type
|
|
31
|
+
* The match type: has data, has a specific number of data entries, has data match, or has a specific number of data matches.
|
|
32
32
|
*
|
|
33
33
|
* Valid values:
|
|
34
|
-
*
|
|
35
|
-
* -
|
|
36
|
-
*
|
|
37
|
-
* -
|
|
38
|
-
*
|
|
39
|
-
* - HasDataMatch: Data matches the condition.
|
|
40
|
-
*
|
|
41
|
-
* - HasDataMatchCount: A specific number of data entries match the condition.
|
|
34
|
+
* - HasData: has data
|
|
35
|
+
* - HasDataCount: has a specific number of data entries
|
|
36
|
+
* - HasDataMatch: has data match
|
|
37
|
+
* - HasDataMatchCount: has a specific number of data matches
|
|
42
38
|
*
|
|
43
39
|
* @example
|
|
44
40
|
* HasData
|
|
@@ -66,7 +62,7 @@ export declare class AlertRuleConditionCompareListValueLevelList extends $dara.M
|
|
|
66
62
|
level?: string;
|
|
67
63
|
/**
|
|
68
64
|
* @remarks
|
|
69
|
-
* The threshold
|
|
65
|
+
* The comparison threshold.
|
|
70
66
|
*
|
|
71
67
|
* @example
|
|
72
68
|
* 120
|
|
@@ -86,22 +82,15 @@ export declare class AlertRuleConditionCompareListValueLevelList extends $dara.M
|
|
|
86
82
|
export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
87
83
|
/**
|
|
88
84
|
* @remarks
|
|
89
|
-
* The aggregate
|
|
85
|
+
* The aggregate functions applied after time series aggregation.
|
|
90
86
|
*
|
|
91
87
|
* - count
|
|
92
|
-
*
|
|
93
88
|
* - sum
|
|
94
|
-
*
|
|
95
89
|
* - avg
|
|
96
|
-
*
|
|
97
90
|
* - min
|
|
98
|
-
*
|
|
99
91
|
* - max
|
|
100
|
-
*
|
|
101
92
|
* - p90
|
|
102
|
-
*
|
|
103
93
|
* - p95
|
|
104
|
-
*
|
|
105
94
|
* - p99
|
|
106
95
|
*
|
|
107
96
|
* @example
|
|
@@ -110,7 +99,7 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
110
99
|
aggregate?: string;
|
|
111
100
|
/**
|
|
112
101
|
* @remarks
|
|
113
|
-
* The unit
|
|
102
|
+
* The data unit.
|
|
114
103
|
*
|
|
115
104
|
* @example
|
|
116
105
|
* %
|
|
@@ -118,7 +107,7 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
118
107
|
baseUnit?: string;
|
|
119
108
|
/**
|
|
120
109
|
* @remarks
|
|
121
|
-
* The unit
|
|
110
|
+
* The display unit.
|
|
122
111
|
*
|
|
123
112
|
* @example
|
|
124
113
|
* %
|
|
@@ -126,23 +115,16 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
126
115
|
displayUnit?: string;
|
|
127
116
|
/**
|
|
128
117
|
* @remarks
|
|
129
|
-
* The comparison
|
|
130
|
-
*
|
|
131
|
-
* - GT: Greater than.
|
|
132
|
-
*
|
|
133
|
-
* - GTE: Greater than or equal to.
|
|
134
|
-
*
|
|
135
|
-
* - LT: Less than.
|
|
136
|
-
*
|
|
137
|
-
* - LTE: Less than or equal to.
|
|
118
|
+
* The comparison operator. Determines whether year-over-year or period-over-period comparison is used.
|
|
138
119
|
*
|
|
139
|
-
* -
|
|
140
|
-
*
|
|
141
|
-
* -
|
|
142
|
-
*
|
|
143
|
-
* -
|
|
144
|
-
*
|
|
145
|
-
* -
|
|
120
|
+
* - Greater than: GT
|
|
121
|
+
* - Greater than or equal to: GTE
|
|
122
|
+
* - Less than: LT
|
|
123
|
+
* - Less than or equal to: LTE
|
|
124
|
+
* - Equal to: EQ
|
|
125
|
+
* - Not equal to: NE
|
|
126
|
+
* - Year-over-year increase: YOY_UP
|
|
127
|
+
* - Year-over-year decrease: YOY_DOWN
|
|
146
128
|
*
|
|
147
129
|
* @example
|
|
148
130
|
* GT
|
|
@@ -150,7 +132,7 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
150
132
|
oper?: string;
|
|
151
133
|
/**
|
|
152
134
|
* @remarks
|
|
153
|
-
* The threshold
|
|
135
|
+
* The comparison threshold.
|
|
154
136
|
*
|
|
155
137
|
* @example
|
|
156
138
|
* 50
|
|
@@ -158,12 +140,13 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
158
140
|
value?: number;
|
|
159
141
|
/**
|
|
160
142
|
* @remarks
|
|
161
|
-
*
|
|
143
|
+
* The list of alert levels for different values.
|
|
162
144
|
*/
|
|
163
145
|
valueLevelList?: AlertRuleConditionCompareListValueLevelList[];
|
|
164
146
|
/**
|
|
165
147
|
* @remarks
|
|
166
|
-
* The time unit for year-over-year comparison.
|
|
148
|
+
* The time unit for year-over-year comparison. Valid only when oper is set to YOY_UP or YOY_DOWN.
|
|
149
|
+
* Valid values: minute, hour, day, week, month.
|
|
167
150
|
*
|
|
168
151
|
* @example
|
|
169
152
|
* month
|
|
@@ -171,7 +154,7 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
171
154
|
yoyTimeUnit?: string;
|
|
172
155
|
/**
|
|
173
156
|
* @remarks
|
|
174
|
-
* The
|
|
157
|
+
* The value of the year-over-year time period. Used together with yoyTimeUnit.
|
|
175
158
|
*
|
|
176
159
|
* @example
|
|
177
160
|
* 1
|
|
@@ -191,31 +174,20 @@ export declare class AlertRuleConditionCompareList extends $dara.Model {
|
|
|
191
174
|
export declare class AlertRuleConditionCompositeEscalationEscalations extends $dara.Model {
|
|
192
175
|
/**
|
|
193
176
|
* @remarks
|
|
194
|
-
* The comparison operator
|
|
177
|
+
* The threshold comparison operator. Valid values:
|
|
195
178
|
*
|
|
196
179
|
* - GreaterThanOrEqualToThreshold: Greater than or equal to.
|
|
197
|
-
*
|
|
198
180
|
* - GreaterThanThreshold: Greater than.
|
|
199
|
-
*
|
|
200
181
|
* - LessThanOrEqualToThreshold: Less than or equal to.
|
|
201
|
-
*
|
|
202
182
|
* - LessThanThreshold: Less than.
|
|
203
|
-
*
|
|
204
183
|
* - NotEqualToThreshold: Not equal to.
|
|
205
|
-
*
|
|
206
184
|
* - EqualToThreshold: Equal to.
|
|
207
|
-
*
|
|
208
|
-
* -
|
|
209
|
-
*
|
|
210
|
-
* -
|
|
211
|
-
*
|
|
212
|
-
* -
|
|
213
|
-
*
|
|
214
|
-
* - LessThanLastWeek: Lower than the value at the same time last week.
|
|
215
|
-
*
|
|
216
|
-
* - GreaterThanLastPeriod: Higher than the value in the previous period.
|
|
217
|
-
*
|
|
218
|
-
* - LessThanLastPeriod: Lower than the value in the previous period.
|
|
185
|
+
* - GreaterThanYesterday: Year-over-year increase compared with the same time yesterday.
|
|
186
|
+
* - LessThanYesterday: Year-over-year decrease compared with the same time yesterday.
|
|
187
|
+
* - GreaterThanLastWeek: Year-over-year increase compared with the same time last week.
|
|
188
|
+
* - LessThanLastWeek: Year-over-year decrease compared with the same time last week.
|
|
189
|
+
* - GreaterThanLastPeriod: Period-over-period increase compared with the previous period.
|
|
190
|
+
* - LessThanLastPeriod: Period-over-period decrease compared with the previous period.
|
|
219
191
|
*
|
|
220
192
|
* @example
|
|
221
193
|
* GreaterThanOrEqualToThreshold
|
|
@@ -223,7 +195,7 @@ export declare class AlertRuleConditionCompositeEscalationEscalations extends $d
|
|
|
223
195
|
comparisonOperator?: string;
|
|
224
196
|
/**
|
|
225
197
|
* @remarks
|
|
226
|
-
* The name
|
|
198
|
+
* The metric name.
|
|
227
199
|
*
|
|
228
200
|
* @example
|
|
229
201
|
* cpu_total
|
|
@@ -231,7 +203,7 @@ export declare class AlertRuleConditionCompositeEscalationEscalations extends $d
|
|
|
231
203
|
metricName?: string;
|
|
232
204
|
/**
|
|
233
205
|
* @remarks
|
|
234
|
-
* The time window
|
|
206
|
+
* The time window of the metric.
|
|
235
207
|
*
|
|
236
208
|
* @example
|
|
237
209
|
* 60
|
|
@@ -239,17 +211,14 @@ export declare class AlertRuleConditionCompositeEscalationEscalations extends $d
|
|
|
239
211
|
period?: number;
|
|
240
212
|
/**
|
|
241
213
|
* @remarks
|
|
242
|
-
* The statistical method. The
|
|
214
|
+
* 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:
|
|
243
215
|
*
|
|
244
|
-
* - $Maximum:
|
|
216
|
+
* - $Maximum: Maximum value.
|
|
217
|
+
* - $Minimum: Minimum value.
|
|
218
|
+
* - $Average: Average value.
|
|
219
|
+
* - $Availability: Availability rate (typically used for site monitoring).
|
|
245
220
|
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* - $Average: The average value.
|
|
249
|
-
*
|
|
250
|
-
* - $Availability: The availability rate. This is typically used for site monitoring.
|
|
251
|
-
*
|
|
252
|
-
* Note: The dollar sign ($) is a standard prefix for metrics.
|
|
221
|
+
* Note: $ is the unified prefix symbol for metrics.
|
|
253
222
|
*
|
|
254
223
|
* @example
|
|
255
224
|
* $Maximum
|
|
@@ -277,12 +246,12 @@ export declare class AlertRuleConditionCompositeEscalationEscalations extends $d
|
|
|
277
246
|
export declare class AlertRuleConditionCompositeEscalation extends $dara.Model {
|
|
278
247
|
/**
|
|
279
248
|
* @remarks
|
|
280
|
-
*
|
|
249
|
+
* The list of composite conditions for multiple metrics.
|
|
281
250
|
*/
|
|
282
251
|
escalations?: AlertRuleConditionCompositeEscalationEscalations[];
|
|
283
252
|
/**
|
|
284
253
|
* @remarks
|
|
285
|
-
* The alert level
|
|
254
|
+
* The alert level triggered when the condition is met. Composite metric alerts support only one level.
|
|
286
255
|
*
|
|
287
256
|
* @example
|
|
288
257
|
* INFO
|
|
@@ -290,7 +259,7 @@ export declare class AlertRuleConditionCompositeEscalation extends $dara.Model {
|
|
|
290
259
|
level?: string;
|
|
291
260
|
/**
|
|
292
261
|
* @remarks
|
|
293
|
-
* The relationship between multiple metric conditions. Valid values: and or
|
|
262
|
+
* The relationship between multiple metric conditions. Valid values: and, or.
|
|
294
263
|
*
|
|
295
264
|
* @example
|
|
296
265
|
* and
|
|
@@ -318,12 +287,10 @@ export declare class AlertRuleConditionCompositeEscalation extends $dara.Model {
|
|
|
318
287
|
export declare class AlertRuleConditionExpressEscalation extends $dara.Model {
|
|
319
288
|
/**
|
|
320
289
|
* @remarks
|
|
321
|
-
* The alert level
|
|
290
|
+
* The alert level triggered when the condition is met. Expression-based alerts support only one level.
|
|
322
291
|
*
|
|
323
292
|
* - CRITICAL
|
|
324
|
-
*
|
|
325
293
|
* - WARNING
|
|
326
|
-
*
|
|
327
294
|
* - INFO
|
|
328
295
|
*
|
|
329
296
|
* @example
|
|
@@ -360,31 +327,20 @@ export declare class AlertRuleConditionExpressEscalation extends $dara.Model {
|
|
|
360
327
|
export declare class AlertRuleConditionSimpleEscalationEscalations extends $dara.Model {
|
|
361
328
|
/**
|
|
362
329
|
* @remarks
|
|
363
|
-
* The comparison operator
|
|
330
|
+
* The threshold comparison operator. Valid values:
|
|
364
331
|
*
|
|
365
332
|
* - GreaterThanOrEqualToThreshold: Greater than or equal to.
|
|
366
|
-
*
|
|
367
333
|
* - GreaterThanThreshold: Greater than.
|
|
368
|
-
*
|
|
369
334
|
* - LessThanOrEqualToThreshold: Less than or equal to.
|
|
370
|
-
*
|
|
371
335
|
* - LessThanThreshold: Less than.
|
|
372
|
-
*
|
|
373
336
|
* - NotEqualToThreshold: Not equal to.
|
|
374
|
-
*
|
|
375
337
|
* - EqualToThreshold: Equal to.
|
|
376
|
-
*
|
|
377
|
-
* -
|
|
378
|
-
*
|
|
379
|
-
* -
|
|
380
|
-
*
|
|
381
|
-
* -
|
|
382
|
-
*
|
|
383
|
-
* - LessThanLastWeek: Lower than the value at the same time last week.
|
|
384
|
-
*
|
|
385
|
-
* - GreaterThanLastPeriod: Higher than the value in the previous period.
|
|
386
|
-
*
|
|
387
|
-
* - LessThanLastPeriod: Lower than the value in the previous period.
|
|
338
|
+
* - GreaterThanYesterday: Year-over-year increase compared with the same time yesterday.
|
|
339
|
+
* - LessThanYesterday: Year-over-year decrease compared with the same time yesterday.
|
|
340
|
+
* - GreaterThanLastWeek: Year-over-year increase compared with the same time last week.
|
|
341
|
+
* - LessThanLastWeek: Year-over-year decrease compared with the same time last week.
|
|
342
|
+
* - GreaterThanLastPeriod: Period-over-period increase compared with the previous period.
|
|
343
|
+
* - LessThanLastPeriod: Period-over-period decrease compared with the previous period.
|
|
388
344
|
*
|
|
389
345
|
* @example
|
|
390
346
|
* GreaterThanOrEqualToThreshold
|
|
@@ -392,12 +348,10 @@ export declare class AlertRuleConditionSimpleEscalationEscalations extends $dara
|
|
|
392
348
|
comparisonOperator?: string;
|
|
393
349
|
/**
|
|
394
350
|
* @remarks
|
|
395
|
-
* The alert level
|
|
351
|
+
* The alert level triggered when the condition is met. Expression-based alerts support only one level.
|
|
396
352
|
*
|
|
397
353
|
* - CRITICAL
|
|
398
|
-
*
|
|
399
354
|
* - WARNING
|
|
400
|
-
*
|
|
401
355
|
* - INFO
|
|
402
356
|
*
|
|
403
357
|
* @example
|
|
@@ -406,7 +360,7 @@ export declare class AlertRuleConditionSimpleEscalationEscalations extends $dara
|
|
|
406
360
|
level?: string;
|
|
407
361
|
/**
|
|
408
362
|
* @remarks
|
|
409
|
-
* The statistical method. The
|
|
363
|
+
* 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.
|
|
410
364
|
*
|
|
411
365
|
* @example
|
|
412
366
|
* Average
|
|
@@ -442,12 +396,12 @@ export declare class AlertRuleConditionSimpleEscalationEscalations extends $dara
|
|
|
442
396
|
export declare class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
443
397
|
/**
|
|
444
398
|
* @remarks
|
|
445
|
-
*
|
|
399
|
+
* The list of conditions. When an alert rule corresponds to multiple levels, each level has a condition object.
|
|
446
400
|
*/
|
|
447
401
|
escalations?: AlertRuleConditionSimpleEscalationEscalations[];
|
|
448
402
|
/**
|
|
449
403
|
* @remarks
|
|
450
|
-
* Applicable
|
|
404
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
451
405
|
*
|
|
452
406
|
* The metric associated with the alert condition.
|
|
453
407
|
*
|
|
@@ -457,7 +411,7 @@ export declare class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
|
457
411
|
metricName?: string;
|
|
458
412
|
/**
|
|
459
413
|
* @remarks
|
|
460
|
-
* The time window
|
|
414
|
+
* The time window of the metric. Unit: seconds.
|
|
461
415
|
*
|
|
462
416
|
* @example
|
|
463
417
|
* 60
|
|
@@ -474,6 +428,22 @@ export declare class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
|
474
428
|
[key: string]: any;
|
|
475
429
|
});
|
|
476
430
|
}
|
|
431
|
+
export declare class AlertRuleConditionThresholdList extends $dara.Model {
|
|
432
|
+
max?: number;
|
|
433
|
+
min?: number;
|
|
434
|
+
severity?: string;
|
|
435
|
+
threshold?: number;
|
|
436
|
+
static names(): {
|
|
437
|
+
[key: string]: string;
|
|
438
|
+
};
|
|
439
|
+
static types(): {
|
|
440
|
+
[key: string]: any;
|
|
441
|
+
};
|
|
442
|
+
validate(): void;
|
|
443
|
+
constructor(map?: {
|
|
444
|
+
[key: string]: any;
|
|
445
|
+
});
|
|
446
|
+
}
|
|
477
447
|
export declare class AlertRuleConditionTriggersExpressionConditions extends $dara.Model {
|
|
478
448
|
expressionType?: string;
|
|
479
449
|
operator?: string;
|
|
@@ -523,9 +493,9 @@ export declare class AlertRuleConditionTriggers extends $dara.Model {
|
|
|
523
493
|
export declare class AlertRuleCondition extends $dara.Model {
|
|
524
494
|
/**
|
|
525
495
|
* @remarks
|
|
526
|
-
* Applicable
|
|
496
|
+
* Applicable condition type: SLS_CONDITION.
|
|
527
497
|
*
|
|
528
|
-
* The number of times the condition must be met
|
|
498
|
+
* The number of times the condition must be met before an alert is triggered. Default value: 1.
|
|
529
499
|
*
|
|
530
500
|
* @example
|
|
531
501
|
* 1
|
|
@@ -533,37 +503,37 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
533
503
|
alertCount?: number;
|
|
534
504
|
/**
|
|
535
505
|
* @remarks
|
|
536
|
-
* Applicable
|
|
506
|
+
* Applicable condition type: SLS_CONDITION.
|
|
537
507
|
*
|
|
538
|
-
*
|
|
508
|
+
* The list of Simple Log Service alert conditions.
|
|
539
509
|
*/
|
|
540
510
|
caseList?: AlertRuleConditionCaseList[];
|
|
541
511
|
/**
|
|
542
512
|
* @remarks
|
|
543
|
-
* Applicable
|
|
513
|
+
* Applicable condition type: APM_CONDITION.
|
|
544
514
|
*
|
|
545
|
-
*
|
|
515
|
+
* The list of Application Performance Monitoring (APM) alert comparison conditions.
|
|
546
516
|
*/
|
|
547
517
|
compareList?: AlertRuleConditionCompareList[];
|
|
548
518
|
/**
|
|
549
519
|
* @remarks
|
|
550
|
-
* Applicable
|
|
520
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
551
521
|
*
|
|
552
|
-
* This parameter
|
|
522
|
+
* This parameter takes effect only when escalationType is set to composite. The composite metric alert condition.
|
|
553
523
|
*/
|
|
554
524
|
compositeEscalation?: AlertRuleConditionCompositeEscalation;
|
|
525
|
+
countOperator?: string;
|
|
526
|
+
countThreshold?: number;
|
|
555
527
|
enableSeveritySuppression?: boolean;
|
|
556
528
|
/**
|
|
557
529
|
* @remarks
|
|
558
|
-
* Applicable
|
|
530
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
559
531
|
*
|
|
560
532
|
* Valid values:
|
|
561
533
|
*
|
|
562
|
-
* - simple:
|
|
563
|
-
*
|
|
564
|
-
* -
|
|
565
|
-
*
|
|
566
|
-
* - express: An expression-based condition.
|
|
534
|
+
* - simple: simple metric condition.
|
|
535
|
+
* - composite: composite metric condition.
|
|
536
|
+
* - express: expression condition.
|
|
567
537
|
*
|
|
568
538
|
* @example
|
|
569
539
|
* simple
|
|
@@ -571,16 +541,21 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
571
541
|
escalationType?: string;
|
|
572
542
|
/**
|
|
573
543
|
* @remarks
|
|
574
|
-
*
|
|
544
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
575
545
|
*
|
|
576
|
-
* This parameter takes effect when escalationType is set to composite.
|
|
546
|
+
* This parameter takes effect only when escalationType is set to composite. The multi-metric composite alert condition.
|
|
577
547
|
*/
|
|
578
548
|
expressEscalation?: AlertRuleConditionExpressEscalation;
|
|
549
|
+
matchField?: string;
|
|
550
|
+
matchOperator?: string;
|
|
551
|
+
matchValue?: string;
|
|
552
|
+
max?: number;
|
|
553
|
+
min?: number;
|
|
579
554
|
/**
|
|
580
555
|
* @remarks
|
|
581
|
-
* Applicable
|
|
556
|
+
* Applicable condition type: APM_CONDITION.
|
|
582
557
|
*
|
|
583
|
-
* The alert level
|
|
558
|
+
* The alert level when no data is available. If this parameter is not specified, no alert is triggered when no data is available.
|
|
584
559
|
*
|
|
585
560
|
* @example
|
|
586
561
|
* INFO
|
|
@@ -588,9 +563,9 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
588
563
|
noDataAlertLevel?: string;
|
|
589
564
|
/**
|
|
590
565
|
* @remarks
|
|
591
|
-
* Applicable
|
|
566
|
+
* Applicable condition type: APM_CONDITION.
|
|
592
567
|
*
|
|
593
|
-
* The value
|
|
568
|
+
* The compensation value when no data is available.
|
|
594
569
|
*
|
|
595
570
|
* @example
|
|
596
571
|
* 1
|
|
@@ -598,15 +573,13 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
598
573
|
noDataAppendValue?: string;
|
|
599
574
|
/**
|
|
600
575
|
* @remarks
|
|
601
|
-
* Applicable
|
|
576
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
602
577
|
*
|
|
603
|
-
* The method
|
|
578
|
+
* The method used to handle alerts when no monitoring data is available. Valid values:
|
|
604
579
|
*
|
|
605
580
|
* - KEEP_LAST_STATE (default): No action is taken.
|
|
606
|
-
*
|
|
607
581
|
* - INSUFFICIENT_DATA: The alert content indicates that no data is available.
|
|
608
|
-
*
|
|
609
|
-
* - OK: The status is normal.
|
|
582
|
+
* - OK: Normal.
|
|
610
583
|
*
|
|
611
584
|
* @example
|
|
612
585
|
* KEEP_LAST_STATE
|
|
@@ -614,23 +587,16 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
614
587
|
noDataPolicy?: string;
|
|
615
588
|
/**
|
|
616
589
|
* @remarks
|
|
617
|
-
* The comparison
|
|
618
|
-
*
|
|
619
|
-
* - GT: Greater than.
|
|
620
|
-
*
|
|
621
|
-
* - GTE: Greater than or equal to.
|
|
622
|
-
*
|
|
623
|
-
* - LT: Less than.
|
|
590
|
+
* The comparison operator. Specifies whether to use year-over-year or period-over-period comparison. Valid values:
|
|
624
591
|
*
|
|
625
|
-
* -
|
|
626
|
-
*
|
|
627
|
-
* -
|
|
628
|
-
*
|
|
629
|
-
* -
|
|
630
|
-
*
|
|
631
|
-
* - YOY_UP:
|
|
632
|
-
*
|
|
633
|
-
* - YOY_DOWN: Year-over-year decrease.
|
|
592
|
+
* - GT: greater than.
|
|
593
|
+
* - GTE: greater than or equal to.
|
|
594
|
+
* - LT: less than.
|
|
595
|
+
* - LTE: less than or equal to.
|
|
596
|
+
* - EQ: equal to.
|
|
597
|
+
* - NE: not equal to.
|
|
598
|
+
* - YOY_UP: year-over-year increase.
|
|
599
|
+
* - YOY_DOWN: year-over-year decrease.
|
|
634
600
|
*
|
|
635
601
|
* @example
|
|
636
602
|
* LT
|
|
@@ -638,12 +604,10 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
638
604
|
oper?: string;
|
|
639
605
|
/**
|
|
640
606
|
* @remarks
|
|
641
|
-
* Applicable
|
|
607
|
+
* Applicable condition type: APM_CONDITION.
|
|
642
608
|
*
|
|
643
609
|
* The logical relationship between multiple conditions. Valid values:
|
|
644
|
-
*
|
|
645
610
|
* - and
|
|
646
|
-
*
|
|
647
611
|
* - or
|
|
648
612
|
*
|
|
649
613
|
* @example
|
|
@@ -652,21 +616,19 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
652
616
|
relation?: string;
|
|
653
617
|
/**
|
|
654
618
|
* @remarks
|
|
655
|
-
* Applicable
|
|
619
|
+
* Applicable condition type: CMS_BASIC_CONDITION.
|
|
656
620
|
*
|
|
657
|
-
* This parameter
|
|
621
|
+
* This parameter takes effect only when escalationType is set to simple. The alert condition configured for a single metric.
|
|
658
622
|
*/
|
|
659
623
|
simpleEscalation?: AlertRuleConditionSimpleEscalation;
|
|
624
|
+
thresholdList?: AlertRuleConditionThresholdList[];
|
|
660
625
|
triggers?: AlertRuleConditionTriggers[];
|
|
661
626
|
/**
|
|
662
627
|
* @remarks
|
|
663
|
-
* The
|
|
664
|
-
*
|
|
665
|
-
* -
|
|
666
|
-
*
|
|
667
|
-
* - APM_CONDITION: An APM alert condition.
|
|
668
|
-
*
|
|
669
|
-
* - CMS_BASIC_CONDITION: A basic Cloud Monitor alert condition.
|
|
628
|
+
* The rule condition type. Valid values:
|
|
629
|
+
* - SLS_CONDITION: Simple Log Service alert condition.
|
|
630
|
+
* - APM_CONDITION: APM alert condition.
|
|
631
|
+
* - CMS_BASIC_CONDITION: CloudMonitor Basic monitoring alert condition.
|
|
670
632
|
*
|
|
671
633
|
* This parameter is required.
|
|
672
634
|
*
|
|
@@ -676,7 +638,7 @@ export declare class AlertRuleCondition extends $dara.Model {
|
|
|
676
638
|
type?: string;
|
|
677
639
|
/**
|
|
678
640
|
* @remarks
|
|
679
|
-
* The threshold that triggers
|
|
641
|
+
* The threshold that triggers the alert.
|
|
680
642
|
*
|
|
681
643
|
* @example
|
|
682
644
|
* 60
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.AlertRuleCondition = exports.AlertRuleConditionTriggers = exports.AlertRuleConditionTriggersExpression = exports.AlertRuleConditionTriggersExpressionConditions = exports.AlertRuleConditionSimpleEscalation = exports.AlertRuleConditionSimpleEscalationEscalations = exports.AlertRuleConditionExpressEscalation = exports.AlertRuleConditionCompositeEscalation = exports.AlertRuleConditionCompositeEscalationEscalations = exports.AlertRuleConditionCompareList = exports.AlertRuleConditionCompareListValueLevelList = exports.AlertRuleConditionCaseList = void 0;
|
|
36
|
+
exports.AlertRuleCondition = exports.AlertRuleConditionTriggers = exports.AlertRuleConditionTriggersExpression = exports.AlertRuleConditionTriggersExpressionConditions = exports.AlertRuleConditionThresholdList = exports.AlertRuleConditionSimpleEscalation = exports.AlertRuleConditionSimpleEscalationEscalations = exports.AlertRuleConditionExpressEscalation = exports.AlertRuleConditionCompositeEscalation = exports.AlertRuleConditionCompositeEscalationEscalations = exports.AlertRuleConditionCompareList = exports.AlertRuleConditionCompareListValueLevelList = exports.AlertRuleConditionCaseList = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
39
|
class AlertRuleConditionCaseList extends $dara.Model {
|
|
@@ -249,6 +249,31 @@ class AlertRuleConditionSimpleEscalation extends $dara.Model {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
exports.AlertRuleConditionSimpleEscalation = AlertRuleConditionSimpleEscalation;
|
|
252
|
+
class AlertRuleConditionThresholdList extends $dara.Model {
|
|
253
|
+
static names() {
|
|
254
|
+
return {
|
|
255
|
+
max: 'max',
|
|
256
|
+
min: 'min',
|
|
257
|
+
severity: 'severity',
|
|
258
|
+
threshold: 'threshold',
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
static types() {
|
|
262
|
+
return {
|
|
263
|
+
max: 'number',
|
|
264
|
+
min: 'number',
|
|
265
|
+
severity: 'string',
|
|
266
|
+
threshold: 'number',
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
validate() {
|
|
270
|
+
super.validate();
|
|
271
|
+
}
|
|
272
|
+
constructor(map) {
|
|
273
|
+
super(map);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
exports.AlertRuleConditionThresholdList = AlertRuleConditionThresholdList;
|
|
252
277
|
class AlertRuleConditionTriggersExpressionConditions extends $dara.Model {
|
|
253
278
|
static names() {
|
|
254
279
|
return {
|
|
@@ -333,15 +358,23 @@ class AlertRuleCondition extends $dara.Model {
|
|
|
333
358
|
caseList: 'caseList',
|
|
334
359
|
compareList: 'compareList',
|
|
335
360
|
compositeEscalation: 'compositeEscalation',
|
|
361
|
+
countOperator: 'countOperator',
|
|
362
|
+
countThreshold: 'countThreshold',
|
|
336
363
|
enableSeveritySuppression: 'enableSeveritySuppression',
|
|
337
364
|
escalationType: 'escalationType',
|
|
338
365
|
expressEscalation: 'expressEscalation',
|
|
366
|
+
matchField: 'matchField',
|
|
367
|
+
matchOperator: 'matchOperator',
|
|
368
|
+
matchValue: 'matchValue',
|
|
369
|
+
max: 'max',
|
|
370
|
+
min: 'min',
|
|
339
371
|
noDataAlertLevel: 'noDataAlertLevel',
|
|
340
372
|
noDataAppendValue: 'noDataAppendValue',
|
|
341
373
|
noDataPolicy: 'noDataPolicy',
|
|
342
374
|
oper: 'oper',
|
|
343
375
|
relation: 'relation',
|
|
344
376
|
simpleEscalation: 'simpleEscalation',
|
|
377
|
+
thresholdList: 'thresholdList',
|
|
345
378
|
triggers: 'triggers',
|
|
346
379
|
type: 'type',
|
|
347
380
|
value: 'value',
|
|
@@ -353,15 +386,23 @@ class AlertRuleCondition extends $dara.Model {
|
|
|
353
386
|
caseList: { 'type': 'array', 'itemType': AlertRuleConditionCaseList },
|
|
354
387
|
compareList: { 'type': 'array', 'itemType': AlertRuleConditionCompareList },
|
|
355
388
|
compositeEscalation: AlertRuleConditionCompositeEscalation,
|
|
389
|
+
countOperator: 'string',
|
|
390
|
+
countThreshold: 'number',
|
|
356
391
|
enableSeveritySuppression: 'boolean',
|
|
357
392
|
escalationType: 'string',
|
|
358
393
|
expressEscalation: AlertRuleConditionExpressEscalation,
|
|
394
|
+
matchField: 'string',
|
|
395
|
+
matchOperator: 'string',
|
|
396
|
+
matchValue: 'string',
|
|
397
|
+
max: 'number',
|
|
398
|
+
min: 'number',
|
|
359
399
|
noDataAlertLevel: 'string',
|
|
360
400
|
noDataAppendValue: 'string',
|
|
361
401
|
noDataPolicy: 'string',
|
|
362
402
|
oper: 'string',
|
|
363
403
|
relation: 'string',
|
|
364
404
|
simpleEscalation: AlertRuleConditionSimpleEscalation,
|
|
405
|
+
thresholdList: { 'type': 'array', 'itemType': AlertRuleConditionThresholdList },
|
|
365
406
|
triggers: { 'type': 'array', 'itemType': AlertRuleConditionTriggers },
|
|
366
407
|
type: 'string',
|
|
367
408
|
value: 'number',
|
|
@@ -383,6 +424,9 @@ class AlertRuleCondition extends $dara.Model {
|
|
|
383
424
|
if (this.simpleEscalation && typeof this.simpleEscalation.validate === 'function') {
|
|
384
425
|
this.simpleEscalation.validate();
|
|
385
426
|
}
|
|
427
|
+
if (Array.isArray(this.thresholdList)) {
|
|
428
|
+
$dara.Model.validateArray(this.thresholdList);
|
|
429
|
+
}
|
|
386
430
|
if (Array.isArray(this.triggers)) {
|
|
387
431
|
$dara.Model.validateArray(this.triggers);
|
|
388
432
|
}
|