@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
|
@@ -35,7 +35,6 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
35
35
|
* The template for the alert notification content.
|
|
36
36
|
*/
|
|
37
37
|
contentTemplate?: string;
|
|
38
|
-
coveredSeverityLevels?: string;
|
|
39
38
|
/**
|
|
40
39
|
* @remarks
|
|
41
40
|
* The time the alert rule was created.
|
|
@@ -71,6 +70,11 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
71
70
|
* The configuration for sending notifications when an alert is triggered.
|
|
72
71
|
*/
|
|
73
72
|
notifyConfig?: NotifyConfigUnified;
|
|
73
|
+
/**
|
|
74
|
+
* @remarks
|
|
75
|
+
* The ID of the notification strategy to use for this alert rule.
|
|
76
|
+
*/
|
|
77
|
+
notifyStrategyId?: string;
|
|
74
78
|
/**
|
|
75
79
|
* @remarks
|
|
76
80
|
* Indicates whether the alert rule monitors all resources of the specified type. If `true`, the rule applies globally within the workspace.
|
|
@@ -80,12 +84,17 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
80
84
|
* @remarks
|
|
81
85
|
* A list of specific resource IDs to monitor, used only when `observeResourceGlobalScope` is `false`.
|
|
82
86
|
*/
|
|
83
|
-
observeResourceList?: string;
|
|
87
|
+
observeResourceList?: string[];
|
|
84
88
|
/**
|
|
85
89
|
* @remarks
|
|
86
90
|
* The type of resource that the alert rule monitors.
|
|
87
91
|
*/
|
|
88
92
|
observeResourceType?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* The partition key used to group alerts. Alerts with the same partition key are treated as a single incident.
|
|
96
|
+
*/
|
|
97
|
+
partitionKey?: string;
|
|
89
98
|
/**
|
|
90
99
|
* @remarks
|
|
91
100
|
* The configuration for querying and processing data from the data source.
|
|
@@ -96,6 +105,11 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
96
105
|
* The configuration for how often the alert rule is evaluated.
|
|
97
106
|
*/
|
|
98
107
|
scheduleConfig?: ScheduleConfigUnified;
|
|
108
|
+
/**
|
|
109
|
+
* @remarks
|
|
110
|
+
* The severity level of the alert. Examples: `critical`, `warning`.
|
|
111
|
+
*/
|
|
112
|
+
severityLevels?: string;
|
|
99
113
|
/**
|
|
100
114
|
* @remarks
|
|
101
115
|
* The current status of the alert rule. Examples: `RUNNING`, `STOPPED`.
|
|
@@ -123,7 +137,6 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
123
137
|
armsIntegrationConfig: 'armsIntegrationConfig',
|
|
124
138
|
conditionConfig: 'conditionConfig',
|
|
125
139
|
contentTemplate: 'contentTemplate',
|
|
126
|
-
coveredSeverityLevels: 'coveredSeverityLevels',
|
|
127
140
|
createdAt: 'createdAt',
|
|
128
141
|
datasourceConfig: 'datasourceConfig',
|
|
129
142
|
datasourceType: 'datasourceType',
|
|
@@ -131,11 +144,14 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
131
144
|
enabled: 'enabled',
|
|
132
145
|
labels: 'labels',
|
|
133
146
|
notifyConfig: 'notifyConfig',
|
|
147
|
+
notifyStrategyId: 'notifyStrategyId',
|
|
134
148
|
observeResourceGlobalScope: 'observeResourceGlobalScope',
|
|
135
149
|
observeResourceList: 'observeResourceList',
|
|
136
150
|
observeResourceType: 'observeResourceType',
|
|
151
|
+
partitionKey: 'partitionKey',
|
|
137
152
|
queryConfig: 'queryConfig',
|
|
138
153
|
scheduleConfig: 'scheduleConfig',
|
|
154
|
+
severityLevels: 'severityLevels',
|
|
139
155
|
status: 'status',
|
|
140
156
|
updatedAt: 'updatedAt',
|
|
141
157
|
uuid: 'uuid',
|
|
@@ -150,7 +166,6 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
150
166
|
armsIntegrationConfig: ArmsIntegrationConfig,
|
|
151
167
|
conditionConfig: ConditionConfigUnified,
|
|
152
168
|
contentTemplate: 'string',
|
|
153
|
-
coveredSeverityLevels: 'string',
|
|
154
169
|
createdAt: 'string',
|
|
155
170
|
datasourceConfig: DatasourceConfigUnified,
|
|
156
171
|
datasourceType: 'string',
|
|
@@ -158,11 +173,14 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
158
173
|
enabled: 'boolean',
|
|
159
174
|
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
160
175
|
notifyConfig: NotifyConfigUnified,
|
|
176
|
+
notifyStrategyId: 'string',
|
|
161
177
|
observeResourceGlobalScope: 'boolean',
|
|
162
|
-
observeResourceList: 'string',
|
|
178
|
+
observeResourceList: { 'type': 'array', 'itemType': 'string' },
|
|
163
179
|
observeResourceType: 'string',
|
|
180
|
+
partitionKey: 'string',
|
|
164
181
|
queryConfig: QueryConfigUnified,
|
|
165
182
|
scheduleConfig: ScheduleConfigUnified,
|
|
183
|
+
severityLevels: 'string',
|
|
166
184
|
status: 'string',
|
|
167
185
|
updatedAt: 'string',
|
|
168
186
|
uuid: 'string',
|
|
@@ -192,6 +210,9 @@ export class AlertRuleV2 extends $dara.Model {
|
|
|
192
210
|
if(this.notifyConfig && typeof (this.notifyConfig as any).validate === 'function') {
|
|
193
211
|
(this.notifyConfig as any).validate();
|
|
194
212
|
}
|
|
213
|
+
if(Array.isArray(this.observeResourceList)) {
|
|
214
|
+
$dara.Model.validateArray(this.observeResourceList);
|
|
215
|
+
}
|
|
195
216
|
if(this.queryConfig && typeof (this.queryConfig as any).validate === 'function') {
|
|
196
217
|
(this.queryConfig as any).validate();
|
|
197
218
|
}
|
|
@@ -24,11 +24,23 @@ export class ApmCompositeCompareConfig extends $dara.Model {
|
|
|
24
24
|
* This parameter is required.
|
|
25
25
|
*/
|
|
26
26
|
threshold?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The time unit for the year-over-year (YoY) comparison. Use this parameter with `yoyTimeValue` to define the comparison period. Valid values are `day` and `week`.
|
|
30
|
+
*/
|
|
31
|
+
yoyTimeUnit?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The time value for the YoY comparison. For example, if `yoyTimeUnit` is `day` and `yoyTimeValue` is `7`, the system compares current data with data from 7 days ago.
|
|
35
|
+
*/
|
|
36
|
+
yoyTimeValue?: number;
|
|
27
37
|
static names(): { [key: string]: string } {
|
|
28
38
|
return {
|
|
29
39
|
aggregate: 'aggregate',
|
|
30
40
|
operator: 'operator',
|
|
31
41
|
threshold: 'threshold',
|
|
42
|
+
yoyTimeUnit: 'yoyTimeUnit',
|
|
43
|
+
yoyTimeValue: 'yoyTimeValue',
|
|
32
44
|
};
|
|
33
45
|
}
|
|
34
46
|
|
|
@@ -37,6 +49,8 @@ export class ApmCompositeCompareConfig extends $dara.Model {
|
|
|
37
49
|
aggregate: 'string',
|
|
38
50
|
operator: 'string',
|
|
39
51
|
threshold: 'number',
|
|
52
|
+
yoyTimeUnit: 'string',
|
|
53
|
+
yoyTimeValue: 'number',
|
|
40
54
|
};
|
|
41
55
|
}
|
|
42
56
|
|
|
@@ -3,22 +3,18 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ApmThresholdConfig extends $dara.Model {
|
|
6
|
+
max?: number;
|
|
7
|
+
min?: number;
|
|
6
8
|
/**
|
|
7
9
|
* @remarks
|
|
8
|
-
* The severity of the alert.
|
|
9
|
-
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*/
|
|
12
12
|
severity?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @remarks
|
|
15
|
-
* The metric value that triggers the alert.
|
|
16
|
-
*
|
|
17
|
-
* This parameter is required.
|
|
18
|
-
*/
|
|
19
13
|
threshold?: number;
|
|
20
14
|
static names(): { [key: string]: string } {
|
|
21
15
|
return {
|
|
16
|
+
max: 'max',
|
|
17
|
+
min: 'min',
|
|
22
18
|
severity: 'severity',
|
|
23
19
|
threshold: 'threshold',
|
|
24
20
|
};
|
|
@@ -26,6 +22,8 @@ export class ApmThresholdConfig extends $dara.Model {
|
|
|
26
22
|
|
|
27
23
|
static types(): { [key: string]: any } {
|
|
28
24
|
return {
|
|
25
|
+
max: 'number',
|
|
26
|
+
min: 'number',
|
|
29
27
|
severity: 'string',
|
|
30
28
|
threshold: 'number',
|
|
31
29
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CloudMonitoringCompositeEscalationEntry } from "./CloudMonitoringCompositeEscalationEntry";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CloudMonitoringCompositeEscalation extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* A single entry in the escalation policy. See the `CloudMonitoringCompositeEscalationEntry` object for details.
|
|
10
|
+
*/
|
|
11
|
+
escalations?: CloudMonitoringCompositeEscalationEntry[];
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* Specifies the logical relationship for evaluating the conditions of the composite alert rule. Valid values: `and` and `or`.
|
|
15
|
+
*/
|
|
16
|
+
relation?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* Specifies the severity level of the alert. For example: `Critical`, `Warning`, and `Info`.
|
|
20
|
+
*/
|
|
21
|
+
severity?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Specifies the number of times the alert conditions must be met to trigger this escalation policy.
|
|
25
|
+
*/
|
|
26
|
+
times?: number;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
escalations: 'escalations',
|
|
30
|
+
relation: 'relation',
|
|
31
|
+
severity: 'severity',
|
|
32
|
+
times: 'times',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static types(): { [key: string]: any } {
|
|
37
|
+
return {
|
|
38
|
+
escalations: { 'type': 'array', 'itemType': CloudMonitoringCompositeEscalationEntry },
|
|
39
|
+
relation: 'string',
|
|
40
|
+
severity: 'string',
|
|
41
|
+
times: 'number',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
validate() {
|
|
46
|
+
if(Array.isArray(this.escalations)) {
|
|
47
|
+
$dara.Model.validateArray(this.escalations);
|
|
48
|
+
}
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CloudMonitoringCompositeEscalationEntry extends $dara.Model {
|
|
6
|
+
comparisonOperator?: string;
|
|
7
|
+
metricName?: string;
|
|
8
|
+
period?: number;
|
|
9
|
+
preCondition?: string;
|
|
10
|
+
statistics?: string;
|
|
11
|
+
threshold?: string;
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
comparisonOperator: 'comparisonOperator',
|
|
15
|
+
metricName: 'metricName',
|
|
16
|
+
period: 'period',
|
|
17
|
+
preCondition: 'preCondition',
|
|
18
|
+
statistics: 'statistics',
|
|
19
|
+
threshold: 'threshold',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
comparisonOperator: 'string',
|
|
26
|
+
metricName: 'string',
|
|
27
|
+
period: 'number',
|
|
28
|
+
preCondition: 'string',
|
|
29
|
+
statistics: 'string',
|
|
30
|
+
threshold: 'string',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
validate() {
|
|
35
|
+
super.validate();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
constructor(map?: { [key: string]: any }) {
|
|
39
|
+
super(map);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CloudMonitoringExpressEscalation extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The expression that defines the alert condition.
|
|
9
|
+
*/
|
|
10
|
+
rawExpression?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The alert severity that triggers the escalation.
|
|
14
|
+
*/
|
|
15
|
+
severity?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The number of alert occurrences required to trigger the escalation.
|
|
19
|
+
*/
|
|
20
|
+
times?: number;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
rawExpression: 'rawExpression',
|
|
24
|
+
severity: 'severity',
|
|
25
|
+
times: 'times',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
rawExpression: 'string',
|
|
32
|
+
severity: 'string',
|
|
33
|
+
times: 'number',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CloudMonitoringPrometheusEscalation extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The PromQL expression that defines the alert condition. This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
promQl?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The severity of the alert that triggers the escalation. This parameter is required.
|
|
14
|
+
*/
|
|
15
|
+
severity?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The number of consecutive times the condition must be met to trigger an escalation. This parameter is required.
|
|
19
|
+
*/
|
|
20
|
+
times?: number;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
promQl: 'promQl',
|
|
24
|
+
severity: 'severity',
|
|
25
|
+
times: 'times',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
promQl: 'string',
|
|
32
|
+
severity: 'string',
|
|
33
|
+
times: 'number',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CloudMonitoringSimpleEscalationEntry } from "./CloudMonitoringSimpleEscalationEntry";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CloudMonitoringSimpleEscalation extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* An object that defines a single escalation rule.
|
|
10
|
+
*/
|
|
11
|
+
escalations?: CloudMonitoringSimpleEscalationEntry[];
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* The name of the metric.
|
|
15
|
+
*/
|
|
16
|
+
metricName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* The evaluation period for the metric, in seconds.
|
|
20
|
+
*/
|
|
21
|
+
period?: number;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
escalations: 'escalations',
|
|
25
|
+
metricName: 'metricName',
|
|
26
|
+
period: 'period',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static types(): { [key: string]: any } {
|
|
31
|
+
return {
|
|
32
|
+
escalations: { 'type': 'array', 'itemType': CloudMonitoringSimpleEscalationEntry },
|
|
33
|
+
metricName: 'string',
|
|
34
|
+
period: 'number',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
validate() {
|
|
39
|
+
if(Array.isArray(this.escalations)) {
|
|
40
|
+
$dara.Model.validateArray(this.escalations);
|
|
41
|
+
}
|
|
42
|
+
super.validate();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
constructor(map?: { [key: string]: any }) {
|
|
46
|
+
super(map);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CloudMonitoringSimpleEscalationEntry extends $dara.Model {
|
|
6
|
+
comparisonOperator?: string;
|
|
7
|
+
preCondition?: string;
|
|
8
|
+
severity?: string;
|
|
9
|
+
statistics?: string;
|
|
10
|
+
threshold?: string;
|
|
11
|
+
times?: number;
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
comparisonOperator: 'comparisonOperator',
|
|
15
|
+
preCondition: 'preCondition',
|
|
16
|
+
severity: 'severity',
|
|
17
|
+
statistics: 'statistics',
|
|
18
|
+
threshold: 'threshold',
|
|
19
|
+
times: 'times',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
comparisonOperator: 'string',
|
|
26
|
+
preCondition: 'string',
|
|
27
|
+
severity: 'string',
|
|
28
|
+
statistics: 'string',
|
|
29
|
+
threshold: 'string',
|
|
30
|
+
times: 'number',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
validate() {
|
|
35
|
+
super.validate();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
constructor(map?: { [key: string]: any }) {
|
|
39
|
+
super(map);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -1,68 +1,77 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { ApmCompositeCompareConfig } from "./ApmCompositeCompareConfig";
|
|
4
|
+
import { CloudMonitoringCompositeEscalation } from "./CloudMonitoringCompositeEscalation";
|
|
5
|
+
import { CloudMonitoringExpressEscalation } from "./CloudMonitoringExpressEscalation";
|
|
6
|
+
import { CloudMonitoringPrometheusEscalation } from "./CloudMonitoringPrometheusEscalation";
|
|
7
|
+
import { CloudMonitoringSimpleEscalation } from "./CloudMonitoringSimpleEscalation";
|
|
4
8
|
import { ApmThresholdConfig } from "./ApmThresholdConfig";
|
|
9
|
+
import { MetricSetMultiTrigger } from "./MetricSetMultiTrigger";
|
|
5
10
|
|
|
6
11
|
|
|
7
12
|
export class ConditionConfigUnified extends $dara.Model {
|
|
8
|
-
/**
|
|
9
|
-
* @remarks
|
|
10
|
-
* The aggregation method for metric data points over the evaluation period. Valid values include `AVG`, `SUM`, and `MAX`.
|
|
11
|
-
*/
|
|
12
13
|
aggregate?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @remarks
|
|
15
|
-
* A list of composite comparison configurations for APM alerts. Each item is an `ApmCompositeCompareConfig` object.
|
|
16
|
-
*/
|
|
17
14
|
compareList?: ApmCompositeCompareConfig[];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
15
|
+
compositeEscalation?: CloudMonitoringCompositeEscalation;
|
|
16
|
+
countOperator?: string;
|
|
17
|
+
countThreshold?: number;
|
|
22
18
|
durationSecs?: number;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
enableSeveritySuppression?: boolean;
|
|
20
|
+
escalationType?: string;
|
|
21
|
+
expressEscalation?: CloudMonitoringExpressEscalation;
|
|
22
|
+
legacyRaw?: string;
|
|
23
|
+
legacyType?: string;
|
|
24
|
+
matchField?: string;
|
|
25
|
+
matchOperator?: string;
|
|
26
|
+
matchValue?: string;
|
|
27
|
+
max?: number;
|
|
28
|
+
min?: number;
|
|
29
|
+
noDataPolicy?: string;
|
|
27
30
|
operator?: string;
|
|
28
|
-
|
|
29
|
-
* @remarks
|
|
30
|
-
* The logical relationship between multiple conditions. Valid values are `AND` and `OR`.
|
|
31
|
-
*/
|
|
31
|
+
prometheus?: CloudMonitoringPrometheusEscalation;
|
|
32
32
|
relation?: string;
|
|
33
|
-
/**
|
|
34
|
-
* @remarks
|
|
35
|
-
* The alert severity. Valid values are `CRITICAL`, `WARNING`, and `INFO`.
|
|
36
|
-
*/
|
|
37
33
|
severity?: string;
|
|
38
|
-
|
|
39
|
-
* @remarks
|
|
40
|
-
* The value against which the metric is evaluated to trigger an alert.
|
|
41
|
-
*/
|
|
34
|
+
simpleEscalation?: CloudMonitoringSimpleEscalation;
|
|
42
35
|
threshold?: number;
|
|
43
|
-
/**
|
|
44
|
-
* @remarks
|
|
45
|
-
* A list of threshold configurations for Application Performance Monitoring (APM) alerts. Each item is an `ApmThresholdConfig` object.
|
|
46
|
-
*/
|
|
47
36
|
thresholdList?: ApmThresholdConfig[];
|
|
37
|
+
triggers?: MetricSetMultiTrigger[];
|
|
48
38
|
/**
|
|
49
39
|
* @remarks
|
|
50
|
-
* The type of the alert condition.
|
|
51
|
-
*
|
|
52
40
|
* This parameter is required.
|
|
53
41
|
*/
|
|
54
42
|
type?: string;
|
|
43
|
+
yoyTimeUnit?: string;
|
|
44
|
+
yoyTimeValue?: number;
|
|
55
45
|
static names(): { [key: string]: string } {
|
|
56
46
|
return {
|
|
57
47
|
aggregate: 'aggregate',
|
|
58
48
|
compareList: 'compareList',
|
|
49
|
+
compositeEscalation: 'compositeEscalation',
|
|
50
|
+
countOperator: 'countOperator',
|
|
51
|
+
countThreshold: 'countThreshold',
|
|
59
52
|
durationSecs: 'durationSecs',
|
|
53
|
+
enableSeveritySuppression: 'enableSeveritySuppression',
|
|
54
|
+
escalationType: 'escalationType',
|
|
55
|
+
expressEscalation: 'expressEscalation',
|
|
56
|
+
legacyRaw: 'legacyRaw',
|
|
57
|
+
legacyType: 'legacyType',
|
|
58
|
+
matchField: 'matchField',
|
|
59
|
+
matchOperator: 'matchOperator',
|
|
60
|
+
matchValue: 'matchValue',
|
|
61
|
+
max: 'max',
|
|
62
|
+
min: 'min',
|
|
63
|
+
noDataPolicy: 'noDataPolicy',
|
|
60
64
|
operator: 'operator',
|
|
65
|
+
prometheus: 'prometheus',
|
|
61
66
|
relation: 'relation',
|
|
62
67
|
severity: 'severity',
|
|
68
|
+
simpleEscalation: 'simpleEscalation',
|
|
63
69
|
threshold: 'threshold',
|
|
64
70
|
thresholdList: 'thresholdList',
|
|
71
|
+
triggers: 'triggers',
|
|
65
72
|
type: 'type',
|
|
73
|
+
yoyTimeUnit: 'yoyTimeUnit',
|
|
74
|
+
yoyTimeValue: 'yoyTimeValue',
|
|
66
75
|
};
|
|
67
76
|
}
|
|
68
77
|
|
|
@@ -70,13 +79,32 @@ export class ConditionConfigUnified extends $dara.Model {
|
|
|
70
79
|
return {
|
|
71
80
|
aggregate: 'string',
|
|
72
81
|
compareList: { 'type': 'array', 'itemType': ApmCompositeCompareConfig },
|
|
82
|
+
compositeEscalation: CloudMonitoringCompositeEscalation,
|
|
83
|
+
countOperator: 'string',
|
|
84
|
+
countThreshold: 'number',
|
|
73
85
|
durationSecs: 'number',
|
|
86
|
+
enableSeveritySuppression: 'boolean',
|
|
87
|
+
escalationType: 'string',
|
|
88
|
+
expressEscalation: CloudMonitoringExpressEscalation,
|
|
89
|
+
legacyRaw: 'string',
|
|
90
|
+
legacyType: 'string',
|
|
91
|
+
matchField: 'string',
|
|
92
|
+
matchOperator: 'string',
|
|
93
|
+
matchValue: 'string',
|
|
94
|
+
max: 'number',
|
|
95
|
+
min: 'number',
|
|
96
|
+
noDataPolicy: 'string',
|
|
74
97
|
operator: 'string',
|
|
98
|
+
prometheus: CloudMonitoringPrometheusEscalation,
|
|
75
99
|
relation: 'string',
|
|
76
100
|
severity: 'string',
|
|
101
|
+
simpleEscalation: CloudMonitoringSimpleEscalation,
|
|
77
102
|
threshold: 'number',
|
|
78
103
|
thresholdList: { 'type': 'array', 'itemType': ApmThresholdConfig },
|
|
104
|
+
triggers: { 'type': 'array', 'itemType': MetricSetMultiTrigger },
|
|
79
105
|
type: 'string',
|
|
106
|
+
yoyTimeUnit: 'string',
|
|
107
|
+
yoyTimeValue: 'number',
|
|
80
108
|
};
|
|
81
109
|
}
|
|
82
110
|
|
|
@@ -84,9 +112,24 @@ export class ConditionConfigUnified extends $dara.Model {
|
|
|
84
112
|
if(Array.isArray(this.compareList)) {
|
|
85
113
|
$dara.Model.validateArray(this.compareList);
|
|
86
114
|
}
|
|
115
|
+
if(this.compositeEscalation && typeof (this.compositeEscalation as any).validate === 'function') {
|
|
116
|
+
(this.compositeEscalation as any).validate();
|
|
117
|
+
}
|
|
118
|
+
if(this.expressEscalation && typeof (this.expressEscalation as any).validate === 'function') {
|
|
119
|
+
(this.expressEscalation as any).validate();
|
|
120
|
+
}
|
|
121
|
+
if(this.prometheus && typeof (this.prometheus as any).validate === 'function') {
|
|
122
|
+
(this.prometheus as any).validate();
|
|
123
|
+
}
|
|
124
|
+
if(this.simpleEscalation && typeof (this.simpleEscalation as any).validate === 'function') {
|
|
125
|
+
(this.simpleEscalation as any).validate();
|
|
126
|
+
}
|
|
87
127
|
if(Array.isArray(this.thresholdList)) {
|
|
88
128
|
$dara.Model.validateArray(this.thresholdList);
|
|
89
129
|
}
|
|
130
|
+
if(Array.isArray(this.triggers)) {
|
|
131
|
+
$dara.Model.validateArray(this.triggers);
|
|
132
|
+
}
|
|
90
133
|
super.validate();
|
|
91
134
|
}
|
|
92
135
|
|