@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.
Files changed (282) hide show
  1. package/dist/client.d.ts +114 -60
  2. package/dist/client.js +163 -61
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AlertRuleCondition.d.ts +120 -158
  5. package/dist/models/AlertRuleCondition.js +45 -1
  6. package/dist/models/AlertRuleCondition.js.map +1 -1
  7. package/dist/models/AlertRuleQuery.d.ts +78 -75
  8. package/dist/models/AlertRuleQuery.js +41 -1
  9. package/dist/models/AlertRuleQuery.js.map +1 -1
  10. package/dist/models/AlertRuleTemplate.d.ts +5 -56
  11. package/dist/models/AlertRuleTemplate.js +10 -0
  12. package/dist/models/AlertRuleTemplate.js.map +1 -1
  13. package/dist/models/AlertRuleV2.d.ts +16 -2
  14. package/dist/models/AlertRuleV2.js +10 -3
  15. package/dist/models/AlertRuleV2.js.map +1 -1
  16. package/dist/models/ApmCompositeCompareConfig.d.ts +10 -0
  17. package/dist/models/ApmCompositeCompareConfig.js +4 -0
  18. package/dist/models/ApmCompositeCompareConfig.js.map +1 -1
  19. package/dist/models/ApmThresholdConfig.d.ts +2 -8
  20. package/dist/models/ApmThresholdConfig.js +4 -0
  21. package/dist/models/ApmThresholdConfig.js.map +1 -1
  22. package/dist/models/CloudMonitoringCompositeEscalation.d.ts +34 -0
  23. package/dist/models/CloudMonitoringCompositeEscalation.js +68 -0
  24. package/dist/models/CloudMonitoringCompositeEscalation.js.map +1 -0
  25. package/dist/models/CloudMonitoringCompositeEscalationEntry.d.ts +19 -0
  26. package/dist/models/CloudMonitoringCompositeEscalationEntry.js +68 -0
  27. package/dist/models/CloudMonitoringCompositeEscalationEntry.js.map +1 -0
  28. package/dist/models/CloudMonitoringExpressEscalation.d.ts +28 -0
  29. package/dist/models/CloudMonitoringExpressEscalation.js +62 -0
  30. package/dist/models/CloudMonitoringExpressEscalation.js.map +1 -0
  31. package/dist/models/CloudMonitoringPrometheusEscalation.d.ts +28 -0
  32. package/dist/models/CloudMonitoringPrometheusEscalation.js +62 -0
  33. package/dist/models/CloudMonitoringPrometheusEscalation.js.map +1 -0
  34. package/dist/models/CloudMonitoringSimpleEscalation.d.ts +29 -0
  35. package/dist/models/CloudMonitoringSimpleEscalation.js +66 -0
  36. package/dist/models/CloudMonitoringSimpleEscalation.js.map +1 -0
  37. package/dist/models/CloudMonitoringSimpleEscalationEntry.d.ts +19 -0
  38. package/dist/models/CloudMonitoringSimpleEscalationEntry.js +68 -0
  39. package/dist/models/CloudMonitoringSimpleEscalationEntry.js.map +1 -0
  40. package/dist/models/ConditionConfigUnified.d.ts +24 -34
  41. package/dist/models/ConditionConfigUnified.js +58 -0
  42. package/dist/models/ConditionConfigUnified.js.map +1 -1
  43. package/dist/models/CreateAggTaskGroupRequest.d.ts +20 -20
  44. package/dist/models/CreateAggTaskGroupResponseBody.d.ts +6 -6
  45. package/dist/models/CreatePrometheusInstanceRequest.d.ts +25 -22
  46. package/dist/models/CreatePrometheusInstanceRequest.js +2 -0
  47. package/dist/models/CreatePrometheusInstanceRequest.js.map +1 -1
  48. package/dist/models/CreatePrometheusInstanceResponseBody.d.ts +1 -1
  49. package/dist/models/CreatePrometheusViewRequest.d.ts +12 -12
  50. package/dist/models/CreatePrometheusViewResponseBody.d.ts +2 -2
  51. package/dist/models/DatasourceConfigUnified.d.ts +15 -0
  52. package/dist/models/DatasourceConfigUnified.js +6 -0
  53. package/dist/models/DatasourceConfigUnified.js.map +1 -1
  54. package/dist/models/DatasourceTypeFilter.d.ts +18 -0
  55. package/dist/models/DatasourceTypeFilter.js +58 -0
  56. package/dist/models/DatasourceTypeFilter.js.map +1 -0
  57. package/dist/models/DescribeMetricMetaListRequest.d.ts +23 -20
  58. package/dist/models/DescribeMetricMetaListRequest.js.map +1 -1
  59. package/dist/models/DescribeMetricMetaListResponseBody.d.ts +25 -17
  60. package/dist/models/DescribeMetricMetaListResponseBody.js.map +1 -1
  61. package/dist/models/DescribeMetricMetaListShrinkRequest.d.ts +21 -18
  62. package/dist/models/DescribeMetricMetaListShrinkRequest.js.map +1 -1
  63. package/dist/models/GetCloudResourceDataRequest.d.ts +5 -5
  64. package/dist/models/GetCloudResourceDataResponseBody.d.ts +66 -2
  65. package/dist/models/GetCloudResourceDataResponseBody.js.map +1 -1
  66. package/dist/models/GetDeliveryTaskResponseBody.d.ts +15 -15
  67. package/dist/models/GetIntegrationPolicyResponseBody.d.ts +49 -49
  68. package/dist/models/GetMemoryStoreResponseBody.d.ts +15 -15
  69. package/dist/models/GetPrometheusInstanceRequest.d.ts +2 -2
  70. package/dist/models/GetPrometheusInstanceResponseBody.d.ts +36 -31
  71. package/dist/models/GetPrometheusInstanceResponseBody.js.map +1 -1
  72. package/dist/models/GetPrometheusViewRequest.d.ts +2 -2
  73. package/dist/models/GetPrometheusViewResponseBody.d.ts +35 -21
  74. package/dist/models/GetPrometheusViewResponseBody.js.map +1 -1
  75. package/dist/models/ListAggTaskGroupsRequest.d.ts +13 -8
  76. package/dist/models/ListAggTaskGroupsRequest.js.map +1 -1
  77. package/dist/models/ListAggTaskGroupsResponseBody.d.ts +15 -15
  78. package/dist/models/ListAggTaskGroupsShrinkRequest.d.ts +13 -8
  79. package/dist/models/ListAggTaskGroupsShrinkRequest.js.map +1 -1
  80. package/dist/models/ListAlertRobotsRequest.d.ts +5 -5
  81. package/dist/models/ListAlertRobotsResponseBody.d.ts +7 -6
  82. package/dist/models/ListAlertRobotsResponseBody.js +2 -0
  83. package/dist/models/ListAlertRobotsResponseBody.js.map +1 -1
  84. package/dist/models/ListAlertRobotsShrinkRequest.d.ts +5 -5
  85. package/dist/models/ListDeliveryTasksRequest.d.ts +4 -4
  86. package/dist/models/ListDeliveryTasksResponseBody.d.ts +22 -22
  87. package/dist/models/ListDeliveryTasksShrinkRequest.d.ts +4 -4
  88. package/dist/models/ListEventMetaCacheAllKeysDataResult.d.ts +37 -0
  89. package/dist/models/ListEventMetaCacheAllKeysDataResult.js +71 -0
  90. package/dist/models/ListEventMetaCacheAllKeysDataResult.js.map +1 -0
  91. package/dist/models/ListIntegrationPoliciesRequest.d.ts +9 -9
  92. package/dist/models/ListIntegrationPoliciesResponseBody.d.ts +24 -20
  93. package/dist/models/ListIntegrationPoliciesResponseBody.js.map +1 -1
  94. package/dist/models/ListIntegrationPoliciesShrinkRequest.d.ts +9 -9
  95. package/dist/models/ListPipelinesRequest.d.ts +3 -3
  96. package/dist/models/ListPipelinesResponseBody.d.ts +6 -6
  97. package/dist/models/ListPrometheusInstancesRequest.d.ts +13 -5
  98. package/dist/models/ListPrometheusInstancesRequest.js.map +1 -1
  99. package/dist/models/ListPrometheusInstancesResponseBody.d.ts +21 -9
  100. package/dist/models/ListPrometheusInstancesResponseBody.js +2 -0
  101. package/dist/models/ListPrometheusInstancesResponseBody.js.map +1 -1
  102. package/dist/models/ListPrometheusInstancesShrinkRequest.d.ts +13 -5
  103. package/dist/models/ListPrometheusInstancesShrinkRequest.js.map +1 -1
  104. package/dist/models/ListPrometheusViewsRequest.d.ts +5 -5
  105. package/dist/models/ListPrometheusViewsResponseBody.d.ts +20 -10
  106. package/dist/models/ListPrometheusViewsResponseBody.js +2 -0
  107. package/dist/models/ListPrometheusViewsResponseBody.js.map +1 -1
  108. package/dist/models/ListPrometheusViewsShrinkRequest.d.ts +5 -5
  109. package/dist/models/ManageAlertRulesRequest.d.ts +1 -1
  110. package/dist/models/ManageAlertRulesResult.d.ts +10 -0
  111. package/dist/models/ManageAlertRulesResult.js +7 -0
  112. package/dist/models/ManageAlertRulesResult.js.map +1 -1
  113. package/dist/models/ManageAlertRulesShrinkRequest.d.ts +1 -1
  114. package/dist/models/ManageAlertRulesUnifiedActionInput.d.ts +2 -62
  115. package/dist/models/ManageAlertRulesUnifiedActionInput.js +4 -0
  116. package/dist/models/ManageAlertRulesUnifiedActionInput.js.map +1 -1
  117. package/dist/models/MetricSetMultiTrigger.d.ts +24 -0
  118. package/dist/models/MetricSetMultiTrigger.js +80 -0
  119. package/dist/models/MetricSetMultiTrigger.js.map +1 -0
  120. package/dist/models/MetricSetNamedQueryEntry.d.ts +18 -0
  121. package/dist/models/MetricSetNamedQueryEntry.js +68 -0
  122. package/dist/models/MetricSetNamedQueryEntry.js.map +1 -0
  123. package/dist/models/MetricSetTriggerCompositeExpression.d.ts +17 -0
  124. package/dist/models/MetricSetTriggerCompositeExpression.js +66 -0
  125. package/dist/models/MetricSetTriggerCompositeExpression.js.map +1 -0
  126. package/dist/models/MetricSetTriggerSimpleExpression.d.ts +19 -0
  127. package/dist/models/MetricSetTriggerSimpleExpression.js +68 -0
  128. package/dist/models/MetricSetTriggerSimpleExpression.js.map +1 -0
  129. package/dist/models/NotifyConfigUnified.d.ts +1 -28
  130. package/dist/models/NotifyConfigUnified.js +5 -0
  131. package/dist/models/NotifyConfigUnified.js.map +1 -1
  132. package/dist/models/NotifyStrategyIdFilter.d.ts +18 -0
  133. package/dist/models/NotifyStrategyIdFilter.js +58 -0
  134. package/dist/models/NotifyStrategyIdFilter.js.map +1 -0
  135. package/dist/models/ObserveGroup.d.ts +132 -0
  136. package/dist/models/ObserveGroup.js +119 -0
  137. package/dist/models/ObserveGroup.js.map +1 -0
  138. package/dist/models/ObserveGroupDetail.d.ts +123 -0
  139. package/dist/models/ObserveGroupDetail.js +116 -0
  140. package/dist/models/ObserveGroupDetail.js.map +1 -0
  141. package/dist/models/ObserveGroupDiscoverRule.d.ts +176 -0
  142. package/dist/models/ObserveGroupDiscoverRule.js +197 -0
  143. package/dist/models/ObserveGroupDiscoverRule.js.map +1 -0
  144. package/dist/models/ObserveGroupInstance.d.ts +72 -0
  145. package/dist/models/ObserveGroupInstance.js +84 -0
  146. package/dist/models/ObserveGroupInstance.js.map +1 -0
  147. package/dist/models/ObserveResourceGlobalScopeFilter.d.ts +18 -0
  148. package/dist/models/ObserveResourceGlobalScopeFilter.js +58 -0
  149. package/dist/models/ObserveResourceGlobalScopeFilter.js.map +1 -0
  150. package/dist/models/ObserveResourceListFilter.d.ts +18 -0
  151. package/dist/models/ObserveResourceListFilter.js +61 -0
  152. package/dist/models/ObserveResourceListFilter.js.map +1 -0
  153. package/dist/models/ObserveResourceTypeFilter.d.ts +18 -0
  154. package/dist/models/ObserveResourceTypeFilter.js +58 -0
  155. package/dist/models/ObserveResourceTypeFilter.js.map +1 -0
  156. package/dist/models/OpenCmsServiceResponseBody.d.ts +2 -2
  157. package/dist/models/PartitionKeyFilter.d.ts +18 -0
  158. package/dist/models/PartitionKeyFilter.js +58 -0
  159. package/dist/models/PartitionKeyFilter.js.map +1 -0
  160. package/dist/models/QueryAlertRulesFilter.d.ts +16 -4
  161. package/dist/models/QueryAlertRulesFilter.js +38 -4
  162. package/dist/models/QueryAlertRulesFilter.js.map +1 -1
  163. package/dist/models/QueryAlertRulesRequest.d.ts +4 -4
  164. package/dist/models/QueryAlertRulesShrinkRequest.d.ts +4 -4
  165. package/dist/models/QueryConfigUnified.d.ts +15 -52
  166. package/dist/models/QueryConfigUnified.js +29 -0
  167. package/dist/models/QueryConfigUnified.js.map +1 -1
  168. package/dist/models/SearchMemoriesRequest.d.ts +7 -4
  169. package/dist/models/SearchMemoriesRequest.js.map +1 -1
  170. package/dist/models/SearchMemoriesResponseBody.d.ts +4 -4
  171. package/dist/models/SeverityLevelsFilter.d.ts +18 -0
  172. package/dist/models/SeverityLevelsFilter.js +61 -0
  173. package/dist/models/SeverityLevelsFilter.js.map +1 -0
  174. package/dist/models/SubscriptionForModify.d.ts +16 -9
  175. package/dist/models/SubscriptionForModify.js +2 -0
  176. package/dist/models/SubscriptionForModify.js.map +1 -1
  177. package/dist/models/SubscriptionForView.d.ts +12 -5
  178. package/dist/models/SubscriptionForView.js +2 -0
  179. package/dist/models/SubscriptionForView.js.map +1 -1
  180. package/dist/models/UpdateContextStoreRequest.d.ts +6 -6
  181. package/dist/models/UpdateDeliveryTaskRequest.d.ts +8 -8
  182. package/dist/models/UpdateDeliveryTaskResponseBody.d.ts +1 -1
  183. package/dist/models/UpdatePrometheusInstanceRequest.d.ts +16 -10
  184. package/dist/models/UpdatePrometheusInstanceRequest.js.map +1 -1
  185. package/dist/models/UpdatePrometheusInstanceResponseBody.d.ts +2 -2
  186. package/dist/models/UpdateSubscriptionRequest.d.ts +1 -1
  187. package/dist/models/UpdateSubscriptionResponseBody.d.ts +1 -1
  188. package/dist/models/model.d.ts +30 -0
  189. package/dist/models/model.js +86 -25
  190. package/dist/models/model.js.map +1 -1
  191. package/package.json +1 -1
  192. package/src/client.ts +164 -61
  193. package/src/models/AlertRuleCondition.ts +155 -158
  194. package/src/models/AlertRuleQuery.ts +111 -77
  195. package/src/models/AlertRuleTemplate.ts +15 -56
  196. package/src/models/AlertRuleV2.ts +26 -5
  197. package/src/models/ApmCompositeCompareConfig.ts +14 -0
  198. package/src/models/ApmThresholdConfig.ts +6 -8
  199. package/src/models/CloudMonitoringCompositeEscalation.ts +56 -0
  200. package/src/models/CloudMonitoringCompositeEscalationEntry.ts +42 -0
  201. package/src/models/CloudMonitoringExpressEscalation.ts +45 -0
  202. package/src/models/CloudMonitoringPrometheusEscalation.ts +45 -0
  203. package/src/models/CloudMonitoringSimpleEscalation.ts +49 -0
  204. package/src/models/CloudMonitoringSimpleEscalationEntry.ts +42 -0
  205. package/src/models/ConditionConfigUnified.ts +77 -34
  206. package/src/models/CreateAggTaskGroupRequest.ts +20 -20
  207. package/src/models/CreateAggTaskGroupResponseBody.ts +6 -6
  208. package/src/models/CreatePrometheusInstanceRequest.ts +27 -22
  209. package/src/models/CreatePrometheusInstanceResponseBody.ts +1 -1
  210. package/src/models/CreatePrometheusViewRequest.ts +12 -12
  211. package/src/models/CreatePrometheusViewResponseBody.ts +2 -2
  212. package/src/models/DatasourceConfigUnified.ts +21 -0
  213. package/src/models/DatasourceTypeFilter.ts +31 -0
  214. package/src/models/DescribeMetricMetaListRequest.ts +23 -20
  215. package/src/models/DescribeMetricMetaListResponseBody.ts +25 -17
  216. package/src/models/DescribeMetricMetaListShrinkRequest.ts +21 -18
  217. package/src/models/GetCloudResourceDataRequest.ts +5 -5
  218. package/src/models/GetCloudResourceDataResponseBody.ts +66 -2
  219. package/src/models/GetDeliveryTaskResponseBody.ts +15 -15
  220. package/src/models/GetIntegrationPolicyResponseBody.ts +49 -49
  221. package/src/models/GetMemoryStoreResponseBody.ts +15 -15
  222. package/src/models/GetPrometheusInstanceRequest.ts +2 -2
  223. package/src/models/GetPrometheusInstanceResponseBody.ts +36 -31
  224. package/src/models/GetPrometheusViewRequest.ts +2 -2
  225. package/src/models/GetPrometheusViewResponseBody.ts +35 -21
  226. package/src/models/ListAggTaskGroupsRequest.ts +13 -8
  227. package/src/models/ListAggTaskGroupsResponseBody.ts +15 -15
  228. package/src/models/ListAggTaskGroupsShrinkRequest.ts +13 -8
  229. package/src/models/ListAlertRobotsRequest.ts +5 -5
  230. package/src/models/ListAlertRobotsResponseBody.ts +9 -6
  231. package/src/models/ListAlertRobotsShrinkRequest.ts +5 -5
  232. package/src/models/ListDeliveryTasksRequest.ts +4 -4
  233. package/src/models/ListDeliveryTasksResponseBody.ts +22 -22
  234. package/src/models/ListDeliveryTasksShrinkRequest.ts +4 -4
  235. package/src/models/ListEventMetaCacheAllKeysDataResult.ts +63 -0
  236. package/src/models/ListIntegrationPoliciesRequest.ts +9 -9
  237. package/src/models/ListIntegrationPoliciesResponseBody.ts +24 -20
  238. package/src/models/ListIntegrationPoliciesShrinkRequest.ts +9 -9
  239. package/src/models/ListPipelinesRequest.ts +3 -3
  240. package/src/models/ListPipelinesResponseBody.ts +6 -6
  241. package/src/models/ListPrometheusInstancesRequest.ts +13 -5
  242. package/src/models/ListPrometheusInstancesResponseBody.ts +23 -9
  243. package/src/models/ListPrometheusInstancesShrinkRequest.ts +13 -5
  244. package/src/models/ListPrometheusViewsRequest.ts +5 -5
  245. package/src/models/ListPrometheusViewsResponseBody.ts +22 -10
  246. package/src/models/ListPrometheusViewsShrinkRequest.ts +5 -5
  247. package/src/models/ManageAlertRulesRequest.ts +1 -1
  248. package/src/models/ManageAlertRulesResult.ts +17 -0
  249. package/src/models/ManageAlertRulesShrinkRequest.ts +1 -1
  250. package/src/models/ManageAlertRulesUnifiedActionInput.ts +6 -62
  251. package/src/models/MetricSetMultiTrigger.ts +58 -0
  252. package/src/models/MetricSetNamedQueryEntry.ts +40 -0
  253. package/src/models/MetricSetTriggerCompositeExpression.ts +37 -0
  254. package/src/models/MetricSetTriggerSimpleExpression.ts +42 -0
  255. package/src/models/NotifyConfigUnified.ts +6 -28
  256. package/src/models/NotifyStrategyIdFilter.ts +31 -0
  257. package/src/models/ObserveGroup.ts +195 -0
  258. package/src/models/ObserveGroupDetail.ts +185 -0
  259. package/src/models/ObserveGroupDiscoverRule.ts +292 -0
  260. package/src/models/ObserveGroupInstance.ts +107 -0
  261. package/src/models/ObserveResourceGlobalScopeFilter.ts +31 -0
  262. package/src/models/ObserveResourceListFilter.ts +34 -0
  263. package/src/models/ObserveResourceTypeFilter.ts +31 -0
  264. package/src/models/OpenCmsServiceResponseBody.ts +2 -2
  265. package/src/models/PartitionKeyFilter.ts +31 -0
  266. package/src/models/QueryAlertRulesFilter.ts +47 -8
  267. package/src/models/QueryAlertRulesRequest.ts +4 -4
  268. package/src/models/QueryAlertRulesShrinkRequest.ts +4 -4
  269. package/src/models/QueryConfigUnified.ts +41 -52
  270. package/src/models/SearchMemoriesRequest.ts +7 -4
  271. package/src/models/SearchMemoriesResponseBody.ts +4 -4
  272. package/src/models/SeverityLevelsFilter.ts +34 -0
  273. package/src/models/SubscriptionForModify.ts +18 -9
  274. package/src/models/SubscriptionForView.ts +14 -5
  275. package/src/models/UpdateContextStoreRequest.ts +6 -6
  276. package/src/models/UpdateDeliveryTaskRequest.ts +8 -8
  277. package/src/models/UpdateDeliveryTaskResponseBody.ts +1 -1
  278. package/src/models/UpdatePrometheusInstanceRequest.ts +16 -10
  279. package/src/models/UpdatePrometheusInstanceResponseBody.ts +2 -2
  280. package/src/models/UpdateSubscriptionRequest.ts +1 -1
  281. package/src/models/UpdateSubscriptionResponseBody.ts +1 -1
  282. package/src/models/model.ts +30 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListPrometheusViewsShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The region IDs by which to filter the results.
8
+ * Filters by region ID.
9
9
  *
10
10
  * @example
11
11
  * cn-zhangjiakou,cn-beijing
@@ -35,7 +35,7 @@ export class ListPrometheusViewsShrinkRequest extends $dara.Model {
35
35
  nextToken?: string;
36
36
  /**
37
37
  * @remarks
38
- * The IDs of the Prometheus view instances.
38
+ * The list of Prometheus view instance IDs.
39
39
  *
40
40
  * @example
41
41
  * view-xxx
@@ -43,7 +43,7 @@ export class ListPrometheusViewsShrinkRequest extends $dara.Model {
43
43
  prometheusViewIds?: string;
44
44
  /**
45
45
  * @remarks
46
- * The name of the Prometheus view.
46
+ * The Prometheus view name.
47
47
  *
48
48
  * @example
49
49
  * view1
@@ -72,7 +72,7 @@ export class ListPrometheusViewsShrinkRequest extends $dara.Model {
72
72
  tagShrink?: string;
73
73
  /**
74
74
  * @remarks
75
- * The instance version. Valid values: V1 and V2.
75
+ * The instance version: V1 or V2.
76
76
  *
77
77
  * @example
78
78
  * V2
@@ -80,7 +80,7 @@ export class ListPrometheusViewsShrinkRequest extends $dara.Model {
80
80
  version?: string;
81
81
  /**
82
82
  * @remarks
83
- * The name of the workspace.
83
+ * The workspace name.
84
84
  *
85
85
  * @example
86
86
  * workspace-test
@@ -6,7 +6,7 @@ import { ManageAlertRulesUnifiedActionInput } from "./ManageAlertRulesUnifiedAct
6
6
  export class ManageAlertRulesRequest extends $dara.Model {
7
7
  /**
8
8
  * @remarks
9
- * A unified request body for managing alert rules with the CREATE, UPDATE, PATCH, and BATCH_DELETE actions. The required fields depend on the specified action.
9
+ * The request body for managing alert rules. This body is shared by CREATE, UPDATE, PATCH, and BATCH_DELETE operations. Specify fields based on the action.
10
10
  */
11
11
  body?: ManageAlertRulesUnifiedActionInput;
12
12
  static names(): { [key: string]: string } {
@@ -19,11 +19,23 @@ export class ManageAlertRulesResult extends $dara.Model {
19
19
  * A list of UUIDs of deleted alert rules.
20
20
  */
21
21
  deletedUuidList?: string[];
22
+ /**
23
+ * @remarks
24
+ * The number of updated alert rules.
25
+ */
26
+ updatedCount?: number;
27
+ /**
28
+ * @remarks
29
+ * A list of UUIDs of updated alert rules.
30
+ */
31
+ updatedUuidList?: string[];
22
32
  static names(): { [key: string]: string } {
23
33
  return {
24
34
  alertRule: 'alertRule',
25
35
  deletedCount: 'deletedCount',
26
36
  deletedUuidList: 'deletedUuidList',
37
+ updatedCount: 'updatedCount',
38
+ updatedUuidList: 'updatedUuidList',
27
39
  };
28
40
  }
29
41
 
@@ -32,6 +44,8 @@ export class ManageAlertRulesResult extends $dara.Model {
32
44
  alertRule: AlertRuleV2,
33
45
  deletedCount: 'number',
34
46
  deletedUuidList: { 'type': 'array', 'itemType': 'string' },
47
+ updatedCount: 'number',
48
+ updatedUuidList: { 'type': 'array', 'itemType': 'string' },
35
49
  };
36
50
  }
37
51
 
@@ -42,6 +56,9 @@ export class ManageAlertRulesResult extends $dara.Model {
42
56
  if(Array.isArray(this.deletedUuidList)) {
43
57
  $dara.Model.validateArray(this.deletedUuidList);
44
58
  }
59
+ if(Array.isArray(this.updatedUuidList)) {
60
+ $dara.Model.validateArray(this.updatedUuidList);
61
+ }
45
62
  super.validate();
46
63
  }
47
64
 
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ManageAlertRulesShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * A unified request body for managing alert rules with the CREATE, UPDATE, PATCH, and BATCH_DELETE actions. The required fields depend on the specified action.
8
+ * The request body for managing alert rules. This body is shared by CREATE, UPDATE, PATCH, and BATCH_DELETE operations. Specify fields based on the action.
9
9
  */
10
10
  bodyShrink?: string;
11
11
  static names(): { [key: string]: string } {
@@ -12,85 +12,25 @@ import { ScheduleConfigUnified } from "./ScheduleConfigUnified";
12
12
  export class ManageAlertRulesUnifiedActionInput extends $dara.Model {
13
13
  /**
14
14
  * @remarks
15
- * The action to perform on the alert rule. For example, `create` or `update`.
16
- *
17
15
  * This parameter is required.
18
16
  */
19
17
  action?: string;
20
- /**
21
- * @remarks
22
- * The action integration configuration for triggering automated workflows or actions in external systems.
23
- */
24
18
  actionIntegrationConfig?: ActionIntegrationConfig;
25
- /**
26
- * @remarks
27
- * A collection of key-value pairs attached to the alert as annotations. Use annotations to provide additional, non-identifying information, such as descriptions or runbook links.
28
- */
29
19
  annotations?: { [key: string]: string };
30
- /**
31
- * @remarks
32
- * Configuration for integrating with Application Real-Time Monitoring Service (ARMS).
33
- */
34
20
  armsIntegrationConfig?: ArmsIntegrationConfig;
35
- /**
36
- * @remarks
37
- * The condition configuration that specifies the trigger criteria for the alert.
38
- */
39
21
  conditionConfig?: ConditionConfigUnified;
40
- /**
41
- * @remarks
42
- * The content template for the alert notification. You can use variables to customize the message.
43
- */
44
22
  contentTemplate?: string;
45
- /**
46
- * @remarks
47
- * The data source configuration for the alert rule.
48
- */
49
23
  datasourceConfig?: DatasourceConfigUnified;
50
- /**
51
- * @remarks
52
- * The display name of the alert rule, as shown in the console.
53
- */
54
24
  displayName?: string;
55
- /**
56
- * @remarks
57
- * Specifies whether the alert rule is enabled. A value of `true` indicates the rule is active, and `false` indicates it is inactive. Default: `true`.
58
- */
59
25
  enabled?: boolean;
60
- /**
61
- * @remarks
62
- * A collection of key-value pairs attached to the alert rule as labels. Use labels for categorization and filtering.
63
- */
64
26
  labels?: { [key: string]: string };
65
- /**
66
- * @remarks
67
- * The notification configuration that specifies how and where to send alert notifications.
68
- */
69
27
  notifyConfig?: NotifyConfigUnified;
70
- /**
71
- * @remarks
72
- * The query configuration that defines the data for rule evaluation.
73
- */
28
+ observeResourceInstanceId?: string;
29
+ observeResourceType?: string;
74
30
  queryConfig?: QueryConfigUnified;
75
- /**
76
- * @remarks
77
- * The schedule configuration that determines how often the system evaluates the rule.
78
- */
79
31
  scheduleConfig?: ScheduleConfigUnified;
80
- /**
81
- * @remarks
82
- * The unique identifier (UUID) of the alert rule. This parameter is required when you update or delete an existing rule.
83
- */
84
32
  uuid?: string;
85
- /**
86
- * @remarks
87
- * A list of UUIDs. Use this parameter to perform bulk actions on multiple rules, such as batch deletion.
88
- */
89
33
  uuidList?: string[];
90
- /**
91
- * @remarks
92
- * The ID of the workspace that contains the alert rule.
93
- */
94
34
  workspace?: string;
95
35
  static names(): { [key: string]: string } {
96
36
  return {
@@ -105,6 +45,8 @@ export class ManageAlertRulesUnifiedActionInput extends $dara.Model {
105
45
  enabled: 'enabled',
106
46
  labels: 'labels',
107
47
  notifyConfig: 'notifyConfig',
48
+ observeResourceInstanceId: 'observeResourceInstanceId',
49
+ observeResourceType: 'observeResourceType',
108
50
  queryConfig: 'queryConfig',
109
51
  scheduleConfig: 'scheduleConfig',
110
52
  uuid: 'uuid',
@@ -126,6 +68,8 @@ export class ManageAlertRulesUnifiedActionInput extends $dara.Model {
126
68
  enabled: 'boolean',
127
69
  labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
128
70
  notifyConfig: NotifyConfigUnified,
71
+ observeResourceInstanceId: 'string',
72
+ observeResourceType: 'string',
129
73
  queryConfig: QueryConfigUnified,
130
74
  scheduleConfig: ScheduleConfigUnified,
131
75
  uuid: 'string',
@@ -0,0 +1,58 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MetricSetTriggerSimpleExpression } from "./MetricSetTriggerSimpleExpression";
4
+
5
+
6
+ export class MetricSetMultiTrigger extends $dara.Model {
7
+ conditions?: MetricSetTriggerSimpleExpression[];
8
+ durationSecs?: number;
9
+ expressionType?: string;
10
+ logicOperator?: string;
11
+ max?: number;
12
+ min?: number;
13
+ operator?: string;
14
+ queryName?: string;
15
+ severity?: string;
16
+ threshold?: number;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ conditions: 'conditions',
20
+ durationSecs: 'durationSecs',
21
+ expressionType: 'expressionType',
22
+ logicOperator: 'logicOperator',
23
+ max: 'max',
24
+ min: 'min',
25
+ operator: 'operator',
26
+ queryName: 'queryName',
27
+ severity: 'severity',
28
+ threshold: 'threshold',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ conditions: { 'type': 'array', 'itemType': MetricSetTriggerSimpleExpression },
35
+ durationSecs: 'number',
36
+ expressionType: 'string',
37
+ logicOperator: 'string',
38
+ max: 'number',
39
+ min: 'number',
40
+ operator: 'string',
41
+ queryName: 'string',
42
+ severity: 'string',
43
+ threshold: 'number',
44
+ };
45
+ }
46
+
47
+ validate() {
48
+ if(Array.isArray(this.conditions)) {
49
+ $dara.Model.validateArray(this.conditions);
50
+ }
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UmodelLabelFilter } from "./UmodelLabelFilter";
4
+
5
+
6
+ export class MetricSetNamedQueryEntry extends $dara.Model {
7
+ labelFilters?: UmodelLabelFilter[];
8
+ metric?: string;
9
+ metricSet?: string;
10
+ name?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ labelFilters: 'labelFilters',
14
+ metric: 'metric',
15
+ metricSet: 'metricSet',
16
+ name: 'name',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ labelFilters: { 'type': 'array', 'itemType': UmodelLabelFilter },
23
+ metric: 'string',
24
+ metricSet: 'string',
25
+ name: 'string',
26
+ };
27
+ }
28
+
29
+ validate() {
30
+ if(Array.isArray(this.labelFilters)) {
31
+ $dara.Model.validateArray(this.labelFilters);
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,37 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MetricSetTriggerSimpleExpression } from "./MetricSetTriggerSimpleExpression";
4
+
5
+
6
+ export class MetricSetTriggerCompositeExpression extends $dara.Model {
7
+ conditions?: MetricSetTriggerSimpleExpression[];
8
+ expressionType?: string;
9
+ logicOperator?: string;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ conditions: 'conditions',
13
+ expressionType: 'expressionType',
14
+ logicOperator: 'logicOperator',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ conditions: { 'type': 'array', 'itemType': MetricSetTriggerSimpleExpression },
21
+ expressionType: 'string',
22
+ logicOperator: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(Array.isArray(this.conditions)) {
28
+ $dara.Model.validateArray(this.conditions);
29
+ }
30
+ super.validate();
31
+ }
32
+
33
+ constructor(map?: { [key: string]: any }) {
34
+ super(map);
35
+ }
36
+ }
37
+
@@ -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 MetricSetTriggerSimpleExpression extends $dara.Model {
6
+ expressionType?: string;
7
+ max?: number;
8
+ min?: number;
9
+ operator?: string;
10
+ queryName?: string;
11
+ threshold?: number;
12
+ static names(): { [key: string]: string } {
13
+ return {
14
+ expressionType: 'expressionType',
15
+ max: 'max',
16
+ min: 'min',
17
+ operator: 'operator',
18
+ queryName: 'queryName',
19
+ threshold: 'threshold',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ expressionType: 'string',
26
+ max: 'number',
27
+ min: 'number',
28
+ operator: 'string',
29
+ queryName: 'string',
30
+ threshold: 'number',
31
+ };
32
+ }
33
+
34
+ validate() {
35
+ super.validate();
36
+ }
37
+
38
+ constructor(map?: { [key: string]: any }) {
39
+ super(map);
40
+ }
41
+ }
42
+
@@ -4,44 +4,17 @@ import { DirectNotifyChannel } from "./DirectNotifyChannel";
4
4
 
5
5
 
6
6
  export class NotifyConfigUnified extends $dara.Model {
7
- /**
8
- * @remarks
9
- * The active days of the week.
10
- */
11
7
  activeDays?: number[];
12
- /**
13
- * @remarks
14
- * The end of the daily active time window. On active days, the system sends notifications only before this time. Format: `HH:mm`.
15
- */
16
8
  activeEndTime?: string;
17
- /**
18
- * @remarks
19
- * The start of the daily active time window. On active days, the system sends notifications only after this time. Format: `HH:mm`.
20
- */
21
9
  activeStartTime?: string;
22
- /**
23
- * @remarks
24
- * The notification channels that receive alerts.
25
- *
26
- * This parameter is required.
27
- */
28
10
  channels?: DirectNotifyChannel[];
29
- /**
30
- * @remarks
31
- * The silence time in seconds. After sending a notification, the system suppresses new notifications for the same alert for this duration.
32
- */
11
+ notifyStrategies?: string[];
33
12
  silenceTimeSecs?: number;
34
13
  /**
35
14
  * @remarks
36
- * The type of the notification configuration.
37
- *
38
15
  * This parameter is required.
39
16
  */
40
17
  type?: string;
41
- /**
42
- * @remarks
43
- * The UTC offset for `activeStartTime` and `activeEndTime`. The format is `[+/-]HH:mm`. For example, `+08:00` represents the UTC+8 time zone.
44
- */
45
18
  utcOffset?: string;
46
19
  static names(): { [key: string]: string } {
47
20
  return {
@@ -49,6 +22,7 @@ export class NotifyConfigUnified extends $dara.Model {
49
22
  activeEndTime: 'activeEndTime',
50
23
  activeStartTime: 'activeStartTime',
51
24
  channels: 'channels',
25
+ notifyStrategies: 'notifyStrategies',
52
26
  silenceTimeSecs: 'silenceTimeSecs',
53
27
  type: 'type',
54
28
  utcOffset: 'utcOffset',
@@ -61,6 +35,7 @@ export class NotifyConfigUnified extends $dara.Model {
61
35
  activeEndTime: 'string',
62
36
  activeStartTime: 'string',
63
37
  channels: { 'type': 'array', 'itemType': DirectNotifyChannel },
38
+ notifyStrategies: { 'type': 'array', 'itemType': 'string' },
64
39
  silenceTimeSecs: 'number',
65
40
  type: 'string',
66
41
  utcOffset: 'string',
@@ -74,6 +49,9 @@ export class NotifyConfigUnified extends $dara.Model {
74
49
  if(Array.isArray(this.channels)) {
75
50
  $dara.Model.validateArray(this.channels);
76
51
  }
52
+ if(Array.isArray(this.notifyStrategies)) {
53
+ $dara.Model.validateArray(this.notifyStrategies);
54
+ }
77
55
  super.validate();
78
56
  }
79
57
 
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class NotifyStrategyIdFilter extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The exact ID of the notification strategy to retrieve.
9
+ */
10
+ eq?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ eq: 'eq',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ eq: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,195 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ObserveGroupTags extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The tag key.
9
+ */
10
+ tagKey?: string;
11
+ /**
12
+ * @remarks
13
+ * The tag value.
14
+ */
15
+ tagValue?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ tagKey: 'tagKey',
19
+ tagValue: 'tagValue',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ tagKey: 'string',
26
+ tagValue: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class ObserveGroup extends $dara.Model {
40
+ /**
41
+ * @remarks
42
+ * The UID of the Alibaba Cloud account to which the group belongs.
43
+ */
44
+ aliUid?: string;
45
+ /**
46
+ * @remarks
47
+ * The time when the group was created, in UTC format (yyyy-MM-ddTHH:mm:ssZ).
48
+ */
49
+ createTime?: string;
50
+ /**
51
+ * @remarks
52
+ * The description of the observability group, which describes the business purpose.
53
+ */
54
+ description?: string;
55
+ /**
56
+ * @remarks
57
+ * The list of entity discovery rules that define which entities the group automatically matches.
58
+ */
59
+ discoverRules?: string;
60
+ /**
61
+ * @remarks
62
+ * The number of entities in each category. The key is the category domain (such as acs for Alibaba Cloud services, apm, or rum, which is extensible). The value is the number of entities in that category that belong to this group. This parameter is returned only when withEntityCount is set to true.
63
+ */
64
+ entityCounts?: { [key: string]: number };
65
+ /**
66
+ * @remarks
67
+ * The extended information, which is a JSON string that contains alert templates, alert contact groups, pause policies, and other settings.
68
+ */
69
+ extraInfo?: string;
70
+ /**
71
+ * @remarks
72
+ * Indicates whether the current user has favorited this group. This value is used as the filter criterion for the My Favorites feature.
73
+ */
74
+ favorited?: boolean;
75
+ /**
76
+ * @remarks
77
+ * The globally unique ID of the observability group, in the format of og-<16-character hash>. This ID is used across metrics, alerts, and the console.
78
+ */
79
+ groupId?: string;
80
+ /**
81
+ * @remarks
82
+ * The name of the observability group. The name must be unique within the workspace.
83
+ */
84
+ groupName?: string;
85
+ /**
86
+ * @remarks
87
+ * The type of the observability group.
88
+ */
89
+ groupType?: string;
90
+ /**
91
+ * @remarks
92
+ * The health status of the group. Valid values:
93
+ * - -1: unknown (placeholder).
94
+ * - 1: healthy.
95
+ * - 0: unhealthy.
96
+ */
97
+ health?: number;
98
+ /**
99
+ * @remarks
100
+ * The time when the group was last modified, in UTC format (yyyy-MM-ddTHH:mm:ssZ). This value is automatically updated when any property of the resource changes.
101
+ */
102
+ modifyTime?: string;
103
+ /**
104
+ * @remarks
105
+ * The product_group.id of the version 1.0 application group. This parameter is returned only when sourceOrigin is set to synced_from_1_0.
106
+ */
107
+ originGroupId?: string;
108
+ /**
109
+ * @remarks
110
+ * The region ID of the group.
111
+ */
112
+ regionId?: string;
113
+ /**
114
+ * @remarks
115
+ * The Alibaba Cloud resource group ID.
116
+ */
117
+ resourceGroupId?: string;
118
+ /**
119
+ * @remarks
120
+ * The data source. Valid values:
121
+ * - native_2_0: created natively in version 2.0.
122
+ * - synced_from_1_0: synchronized from a version 1.0 application group.
123
+ */
124
+ sourceOrigin?: string;
125
+ /**
126
+ * @remarks
127
+ * The resource tags (Alibaba Cloud standard tags), which are an array of key-value pairs.
128
+ */
129
+ tags?: ObserveGroupTags[];
130
+ /**
131
+ * @remarks
132
+ * The workspace ID to which the group belongs. This value is set at the workspace level and cannot be changed after the group is created.
133
+ */
134
+ workspaceId?: string;
135
+ static names(): { [key: string]: string } {
136
+ return {
137
+ aliUid: 'aliUid',
138
+ createTime: 'createTime',
139
+ description: 'description',
140
+ discoverRules: 'discoverRules',
141
+ entityCounts: 'entityCounts',
142
+ extraInfo: 'extraInfo',
143
+ favorited: 'favorited',
144
+ groupId: 'groupId',
145
+ groupName: 'groupName',
146
+ groupType: 'groupType',
147
+ health: 'health',
148
+ modifyTime: 'modifyTime',
149
+ originGroupId: 'originGroupId',
150
+ regionId: 'regionId',
151
+ resourceGroupId: 'resourceGroupId',
152
+ sourceOrigin: 'sourceOrigin',
153
+ tags: 'tags',
154
+ workspaceId: 'workspaceId',
155
+ };
156
+ }
157
+
158
+ static types(): { [key: string]: any } {
159
+ return {
160
+ aliUid: 'string',
161
+ createTime: 'string',
162
+ description: 'string',
163
+ discoverRules: 'string',
164
+ entityCounts: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
165
+ extraInfo: 'string',
166
+ favorited: 'boolean',
167
+ groupId: 'string',
168
+ groupName: 'string',
169
+ groupType: 'string',
170
+ health: 'number',
171
+ modifyTime: 'string',
172
+ originGroupId: 'string',
173
+ regionId: 'string',
174
+ resourceGroupId: 'string',
175
+ sourceOrigin: 'string',
176
+ tags: { 'type': 'array', 'itemType': ObserveGroupTags },
177
+ workspaceId: 'string',
178
+ };
179
+ }
180
+
181
+ validate() {
182
+ if(this.entityCounts) {
183
+ $dara.Model.validateMap(this.entityCounts);
184
+ }
185
+ if(Array.isArray(this.tags)) {
186
+ $dara.Model.validateArray(this.tags);
187
+ }
188
+ super.validate();
189
+ }
190
+
191
+ constructor(map?: { [key: string]: any }) {
192
+ super(map);
193
+ }
194
+ }
195
+