@alicloud/cms20240330 1.0.0 → 2.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 (601) hide show
  1. package/dist/client.d.ts +200 -1069
  2. package/dist/client.js +729 -1424
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddonMeta.d.ts +29 -0
  5. package/dist/models/AddonMeta.js +98 -0
  6. package/dist/models/AddonMeta.js.map +1 -0
  7. package/dist/models/AddonMetaDashboards.d.ts +18 -0
  8. package/dist/models/AddonMetaDashboards.js +64 -0
  9. package/dist/models/AddonMetaDashboards.js.map +1 -0
  10. package/dist/models/AddonMetaEnvironments.d.ts +22 -0
  11. package/dist/models/AddonMetaEnvironments.js +78 -0
  12. package/dist/models/AddonMetaEnvironments.js.map +1 -0
  13. package/dist/models/AddonMetaEnvironmentsDependencies.d.ts +18 -0
  14. package/dist/models/AddonMetaEnvironmentsDependencies.js +71 -0
  15. package/dist/models/AddonMetaEnvironmentsDependencies.js.map +1 -0
  16. package/dist/models/AddonMetaEnvironmentsPolicies.d.ts +25 -0
  17. package/dist/models/AddonMetaEnvironmentsPolicies.js +86 -0
  18. package/dist/models/AddonMetaEnvironmentsPolicies.js.map +1 -0
  19. package/dist/models/AddonMetaEnvironmentsPoliciesBindEntity.d.ts +17 -0
  20. package/dist/models/AddonMetaEnvironmentsPoliciesBindEntity.js +64 -0
  21. package/dist/models/AddonMetaEnvironmentsPoliciesBindEntity.js.map +1 -0
  22. package/dist/models/AddonMetaEnvironmentsPoliciesMetricCheckRule.d.ts +14 -0
  23. package/dist/models/AddonMetaEnvironmentsPoliciesMetricCheckRule.js +61 -0
  24. package/dist/models/AddonMetaEnvironmentsPoliciesMetricCheckRule.js.map +1 -0
  25. package/dist/models/AddonMetaEnvironmentsPoliciesProtocols.d.ts +17 -0
  26. package/dist/models/AddonMetaEnvironmentsPoliciesProtocols.js +64 -0
  27. package/dist/models/AddonMetaEnvironmentsPoliciesProtocols.js.map +1 -0
  28. package/dist/models/AlertEventIntegrationPolicyForModify.d.ts +25 -0
  29. package/dist/models/AlertEventIntegrationPolicyForModify.js +76 -0
  30. package/dist/models/AlertEventIntegrationPolicyForModify.js.map +1 -0
  31. package/dist/models/AlertEventIntegrationPolicyForView.d.ts +32 -0
  32. package/dist/models/AlertEventIntegrationPolicyForView.js +90 -0
  33. package/dist/models/AlertEventIntegrationPolicyForView.js.map +1 -0
  34. package/dist/models/AlertRuleAction.d.ts +14 -0
  35. package/dist/models/AlertRuleAction.js +61 -0
  36. package/dist/models/AlertRuleAction.js.map +1 -0
  37. package/dist/models/AlertRuleAlertMetricFilterDef.d.ts +22 -0
  38. package/dist/models/AlertRuleAlertMetricFilterDef.js +76 -0
  39. package/dist/models/AlertRuleAlertMetricFilterDef.js.map +1 -0
  40. package/dist/models/AlertRuleAlertMetricFilterDefSupportedOpts.d.ts +16 -0
  41. package/dist/models/AlertRuleAlertMetricFilterDefSupportedOpts.js +62 -0
  42. package/dist/models/AlertRuleAlertMetricFilterDefSupportedOpts.js.map +1 -0
  43. package/dist/models/AlertRuleAlertMetricInput.d.ts +19 -0
  44. package/dist/models/AlertRuleAlertMetricInput.js +72 -0
  45. package/dist/models/AlertRuleAlertMetricInput.js.map +1 -0
  46. package/dist/models/AlertRuleAlertMetricInputFilterValue.d.ts +24 -0
  47. package/dist/models/AlertRuleAlertMetricInputFilterValue.js +62 -0
  48. package/dist/models/AlertRuleAlertMetricInputFilterValue.js.map +1 -0
  49. package/dist/models/AlertRuleAlertMetricInputParamValue.d.ts +23 -0
  50. package/dist/models/AlertRuleAlertMetricInputParamValue.js +60 -0
  51. package/dist/models/AlertRuleAlertMetricInputParamValue.js.map +1 -0
  52. package/dist/models/AlertRuleAlertMetricParamDef.d.ts +22 -0
  53. package/dist/models/AlertRuleAlertMetricParamDef.js +76 -0
  54. package/dist/models/AlertRuleAlertMetricParamDef.js.map +1 -0
  55. package/dist/models/AlertRuleAlertMetricParamDefValues.d.ts +16 -0
  56. package/dist/models/AlertRuleAlertMetricParamDefValues.js +62 -0
  57. package/dist/models/AlertRuleAlertMetricParamDefValues.js.map +1 -0
  58. package/dist/models/AlertRuleCondition.d.ts +48 -0
  59. package/dist/models/AlertRuleCondition.js +100 -0
  60. package/dist/models/AlertRuleCondition.js.map +1 -0
  61. package/dist/models/AlertRuleConditionCaseList.d.ts +17 -0
  62. package/dist/models/AlertRuleConditionCaseList.js +64 -0
  63. package/dist/models/AlertRuleConditionCaseList.js.map +1 -0
  64. package/dist/models/AlertRuleConditionCompareList.d.ts +20 -0
  65. package/dist/models/AlertRuleConditionCompareList.js +72 -0
  66. package/dist/models/AlertRuleConditionCompareList.js.map +1 -0
  67. package/dist/models/AlertRuleConditionCompareListValueLevelList.d.ts +15 -0
  68. package/dist/models/AlertRuleConditionCompareListValueLevelList.js +60 -0
  69. package/dist/models/AlertRuleConditionCompareListValueLevelList.js.map +1 -0
  70. package/dist/models/AlertRuleConditionCompositeEscalation.d.ts +18 -0
  71. package/dist/models/AlertRuleConditionCompositeEscalation.js +68 -0
  72. package/dist/models/AlertRuleConditionCompositeEscalation.js.map +1 -0
  73. package/dist/models/AlertRuleConditionCompositeEscalationEscalations.d.ts +18 -0
  74. package/dist/models/AlertRuleConditionCompositeEscalationEscalations.js +66 -0
  75. package/dist/models/AlertRuleConditionCompositeEscalationEscalations.js.map +1 -0
  76. package/dist/models/AlertRuleConditionExpressEscalation.d.ts +16 -0
  77. package/dist/models/AlertRuleConditionExpressEscalation.js +62 -0
  78. package/dist/models/AlertRuleConditionExpressEscalation.js.map +1 -0
  79. package/dist/models/AlertRuleConditionSimpleEscalation.d.ts +17 -0
  80. package/dist/models/AlertRuleConditionSimpleEscalation.js +66 -0
  81. package/dist/models/AlertRuleConditionSimpleEscalation.js.map +1 -0
  82. package/dist/models/AlertRuleConditionSimpleEscalationEscalations.d.ts +18 -0
  83. package/dist/models/AlertRuleConditionSimpleEscalationEscalations.js +66 -0
  84. package/dist/models/AlertRuleConditionSimpleEscalationEscalations.js.map +1 -0
  85. package/dist/models/AlertRuleDataSource.d.ts +30 -0
  86. package/dist/models/AlertRuleDataSource.js +72 -0
  87. package/dist/models/AlertRuleDataSource.js.map +1 -0
  88. package/dist/models/AlertRuleDataSourceDsList.d.ts +17 -0
  89. package/dist/models/AlertRuleDataSourceDsList.js +64 -0
  90. package/dist/models/AlertRuleDataSourceDsList.js.map +1 -0
  91. package/dist/models/AlertRuleLabelFilter.d.ts +17 -0
  92. package/dist/models/AlertRuleLabelFilter.js +63 -0
  93. package/dist/models/AlertRuleLabelFilter.js.map +1 -0
  94. package/dist/models/AlertRuleNotification.d.ts +23 -0
  95. package/dist/models/AlertRuleNotification.js +99 -0
  96. package/dist/models/AlertRuleNotification.js.map +1 -0
  97. package/dist/models/AlertRuleNotificationFilter.d.ts +20 -0
  98. package/dist/models/AlertRuleNotificationFilter.js +91 -0
  99. package/dist/models/AlertRuleNotificationFilter.js.map +1 -0
  100. package/dist/models/AlertRuleQuery.d.ts +36 -0
  101. package/dist/models/AlertRuleQuery.js +99 -0
  102. package/dist/models/AlertRuleQuery.js.map +1 -0
  103. package/dist/models/AlertRuleQueryQueries.d.ts +43 -0
  104. package/dist/models/AlertRuleQueryQueries.js +81 -0
  105. package/dist/models/AlertRuleQueryQueries.js.map +1 -0
  106. package/dist/models/AlertRuleQueryQueriesApmFilters.d.ts +16 -0
  107. package/dist/models/AlertRuleQueryQueriesApmFilters.js +62 -0
  108. package/dist/models/AlertRuleQueryQueriesApmFilters.js.map +1 -0
  109. package/dist/models/AlertRuleSend.d.ts +18 -0
  110. package/dist/models/AlertRuleSend.js +70 -0
  111. package/dist/models/AlertRuleSend.js.map +1 -0
  112. package/dist/models/AlertRuleSlsQueryJoin.d.ts +32 -0
  113. package/dist/models/AlertRuleSlsQueryJoin.js +64 -0
  114. package/dist/models/AlertRuleSlsQueryJoin.js.map +1 -0
  115. package/dist/models/AlertRuleSlsQueryJoinConditions.d.ts +28 -0
  116. package/dist/models/AlertRuleSlsQueryJoinConditions.js +62 -0
  117. package/dist/models/AlertRuleSlsQueryJoinConditions.js.map +1 -0
  118. package/dist/models/AlertRuleTimeSpan.d.ts +17 -0
  119. package/dist/models/AlertRuleTimeSpan.js +67 -0
  120. package/dist/models/AlertRuleTimeSpan.js.map +1 -0
  121. package/dist/models/BizTraceConfig.d.ts +21 -0
  122. package/dist/models/BizTraceConfig.js +72 -0
  123. package/dist/models/BizTraceConfig.js.map +1 -0
  124. package/dist/models/CreateEntityStoreResponse.d.ts +19 -0
  125. package/dist/models/CreateEntityStoreResponse.js +69 -0
  126. package/dist/models/CreateEntityStoreResponse.js.map +1 -0
  127. package/dist/models/CreateEntityStoreResponseBody.d.ts +23 -0
  128. package/dist/models/CreateEntityStoreResponseBody.js +60 -0
  129. package/dist/models/CreateEntityStoreResponseBody.js.map +1 -0
  130. package/dist/models/CreatePrometheusInstanceRequest.d.ts +76 -0
  131. package/dist/models/CreatePrometheusInstanceRequest.js +84 -0
  132. package/dist/models/CreatePrometheusInstanceRequest.js.map +1 -0
  133. package/dist/models/CreatePrometheusInstanceRequestTags.d.ts +23 -0
  134. package/dist/models/CreatePrometheusInstanceRequestTags.js +60 -0
  135. package/dist/models/CreatePrometheusInstanceRequestTags.js.map +1 -0
  136. package/dist/models/CreatePrometheusInstanceResponse.d.ts +19 -0
  137. package/dist/models/CreatePrometheusInstanceResponse.js +69 -0
  138. package/dist/models/CreatePrometheusInstanceResponse.js.map +1 -0
  139. package/dist/models/CreatePrometheusInstanceResponseBody.d.ts +26 -0
  140. package/dist/models/CreatePrometheusInstanceResponseBody.js +60 -0
  141. package/dist/models/CreatePrometheusInstanceResponseBody.js.map +1 -0
  142. package/dist/models/CreateUmodelRequest.d.ts +20 -0
  143. package/dist/models/CreateUmodelRequest.js +64 -0
  144. package/dist/models/CreateUmodelRequest.js.map +1 -0
  145. package/dist/models/CreateUmodelRequestCommonSchemaRef.d.ts +24 -0
  146. package/dist/models/CreateUmodelRequestCommonSchemaRef.js +65 -0
  147. package/dist/models/CreateUmodelRequestCommonSchemaRef.js.map +1 -0
  148. package/dist/models/CreateUmodelResponse.d.ts +19 -0
  149. package/dist/models/CreateUmodelResponse.js +69 -0
  150. package/dist/models/CreateUmodelResponse.js.map +1 -0
  151. package/dist/models/CreateUmodelResponseBody.d.ts +23 -0
  152. package/dist/models/CreateUmodelResponseBody.js +60 -0
  153. package/dist/models/CreateUmodelResponseBody.js.map +1 -0
  154. package/dist/models/DataStorageItem.d.ts +18 -0
  155. package/dist/models/DataStorageItem.js +66 -0
  156. package/dist/models/DataStorageItem.js.map +1 -0
  157. package/dist/models/DeleteEntityStoreResponse.d.ts +19 -0
  158. package/dist/models/DeleteEntityStoreResponse.js +69 -0
  159. package/dist/models/DeleteEntityStoreResponse.js.map +1 -0
  160. package/dist/models/DeleteEntityStoreResponseBody.d.ts +18 -0
  161. package/dist/models/DeleteEntityStoreResponseBody.js +58 -0
  162. package/dist/models/DeleteEntityStoreResponseBody.js.map +1 -0
  163. package/dist/models/DeleteUmodelDataRequest.d.ts +28 -0
  164. package/dist/models/DeleteUmodelDataRequest.js +62 -0
  165. package/dist/models/DeleteUmodelDataRequest.js.map +1 -0
  166. package/dist/models/DeleteUmodelDataResponse.d.ts +19 -0
  167. package/dist/models/DeleteUmodelDataResponse.js +69 -0
  168. package/dist/models/DeleteUmodelDataResponse.js.map +1 -0
  169. package/dist/models/DeleteUmodelDataResponseBody.d.ts +18 -0
  170. package/dist/models/DeleteUmodelDataResponseBody.js +58 -0
  171. package/dist/models/DeleteUmodelDataResponseBody.js.map +1 -0
  172. package/dist/models/DeleteUmodelResponse.d.ts +19 -0
  173. package/dist/models/DeleteUmodelResponse.js +69 -0
  174. package/dist/models/DeleteUmodelResponse.js.map +1 -0
  175. package/dist/models/DeleteUmodelResponseBody.d.ts +18 -0
  176. package/dist/models/DeleteUmodelResponseBody.js +58 -0
  177. package/dist/models/DeleteUmodelResponseBody.js.map +1 -0
  178. package/dist/models/DeleteWorkspaceResponse.d.ts +19 -0
  179. package/dist/models/DeleteWorkspaceResponse.js +69 -0
  180. package/dist/models/DeleteWorkspaceResponse.js.map +1 -0
  181. package/dist/models/DeleteWorkspaceResponseBody.d.ts +18 -0
  182. package/dist/models/DeleteWorkspaceResponseBody.js +58 -0
  183. package/dist/models/DeleteWorkspaceResponseBody.js.map +1 -0
  184. package/dist/models/FilterSetting.d.ts +17 -0
  185. package/dist/models/FilterSetting.js +66 -0
  186. package/dist/models/FilterSetting.js.map +1 -0
  187. package/dist/models/FilterSettingConditions.d.ts +16 -0
  188. package/dist/models/FilterSettingConditions.js +62 -0
  189. package/dist/models/FilterSettingConditions.js.map +1 -0
  190. package/dist/models/GetEntityStoreDataHeaders.d.ts +21 -0
  191. package/dist/models/GetEntityStoreDataHeaders.js +63 -0
  192. package/dist/models/GetEntityStoreDataHeaders.js.map +1 -0
  193. package/dist/models/GetEntityStoreDataRequest.d.ts +37 -0
  194. package/dist/models/GetEntityStoreDataRequest.js +62 -0
  195. package/dist/models/GetEntityStoreDataRequest.js.map +1 -0
  196. package/dist/models/GetEntityStoreDataResponse.d.ts +19 -0
  197. package/dist/models/GetEntityStoreDataResponse.js +69 -0
  198. package/dist/models/GetEntityStoreDataResponse.js.map +1 -0
  199. package/dist/models/GetEntityStoreDataResponseBody.d.ts +20 -0
  200. package/dist/models/GetEntityStoreDataResponseBody.js +68 -0
  201. package/dist/models/GetEntityStoreDataResponseBody.js.map +1 -0
  202. package/dist/models/GetEntityStoreResponse.d.ts +19 -0
  203. package/dist/models/GetEntityStoreResponse.js +69 -0
  204. package/dist/models/GetEntityStoreResponse.js.map +1 -0
  205. package/dist/models/GetEntityStoreResponseBody.d.ts +28 -0
  206. package/dist/models/GetEntityStoreResponseBody.js +62 -0
  207. package/dist/models/GetEntityStoreResponseBody.js.map +1 -0
  208. package/dist/models/GetUmodelDataRequest.d.ts +32 -0
  209. package/dist/models/GetUmodelDataRequest.js +60 -0
  210. package/dist/models/GetUmodelDataRequest.js.map +1 -0
  211. package/dist/models/GetUmodelDataResponse.d.ts +19 -0
  212. package/dist/models/GetUmodelDataResponse.js +69 -0
  213. package/dist/models/GetUmodelDataResponse.js.map +1 -0
  214. package/dist/models/GetUmodelDataResponseBody.d.ts +32 -0
  215. package/dist/models/GetUmodelDataResponseBody.js +78 -0
  216. package/dist/models/GetUmodelDataResponseBody.js.map +1 -0
  217. package/dist/models/GetUmodelDataResponseBodyErrors.d.ts +23 -0
  218. package/dist/models/GetUmodelDataResponseBodyErrors.js +60 -0
  219. package/dist/models/GetUmodelDataResponseBodyErrors.js.map +1 -0
  220. package/dist/models/GetUmodelResponse.d.ts +19 -0
  221. package/dist/models/GetUmodelResponse.js +69 -0
  222. package/dist/models/GetUmodelResponse.js.map +1 -0
  223. package/dist/models/GetUmodelResponseBody.d.ts +35 -0
  224. package/dist/models/GetUmodelResponseBody.js +70 -0
  225. package/dist/models/GetUmodelResponseBody.js.map +1 -0
  226. package/dist/models/GetUmodelResponseBodyCommonSchemaRef.d.ts +24 -0
  227. package/dist/models/GetUmodelResponseBodyCommonSchemaRef.js +65 -0
  228. package/dist/models/GetUmodelResponseBodyCommonSchemaRef.js.map +1 -0
  229. package/dist/models/GetWorkspaceResponse.d.ts +19 -0
  230. package/dist/models/GetWorkspaceResponse.js +69 -0
  231. package/dist/models/GetWorkspaceResponse.js.map +1 -0
  232. package/dist/models/GetWorkspaceResponseBody.d.ts +73 -0
  233. package/dist/models/GetWorkspaceResponseBody.js +72 -0
  234. package/dist/models/GetWorkspaceResponseBody.js.map +1 -0
  235. package/dist/models/IncidentContactStruct.d.ts +16 -0
  236. package/dist/models/IncidentContactStruct.js +65 -0
  237. package/dist/models/IncidentContactStruct.js.map +1 -0
  238. package/dist/models/IncidentEscalationStageStruct.d.ts +23 -0
  239. package/dist/models/IncidentEscalationStageStruct.js +78 -0
  240. package/dist/models/IncidentEscalationStageStruct.js.map +1 -0
  241. package/dist/models/IncidentEscalationStruct.d.ts +22 -0
  242. package/dist/models/IncidentEscalationStruct.js +76 -0
  243. package/dist/models/IncidentEscalationStruct.js.map +1 -0
  244. package/dist/models/IncidentEventStruct.d.ts +33 -0
  245. package/dist/models/IncidentEventStruct.js +93 -0
  246. package/dist/models/IncidentEventStruct.js.map +1 -0
  247. package/dist/models/IncidentMemberStruct.d.ts +26 -0
  248. package/dist/models/IncidentMemberStruct.js +90 -0
  249. package/dist/models/IncidentMemberStruct.js.map +1 -0
  250. package/dist/models/IncidentMemberStructAcknowledge.d.ts +15 -0
  251. package/dist/models/IncidentMemberStructAcknowledge.js +60 -0
  252. package/dist/models/IncidentMemberStructAcknowledge.js.map +1 -0
  253. package/dist/models/IncidentMemberStructContacts.d.ts +15 -0
  254. package/dist/models/IncidentMemberStructContacts.js +60 -0
  255. package/dist/models/IncidentMemberStructContacts.js.map +1 -0
  256. package/dist/models/IncidentMemberStructEscalation.d.ts +18 -0
  257. package/dist/models/IncidentMemberStructEscalation.js +66 -0
  258. package/dist/models/IncidentMemberStructEscalation.js.map +1 -0
  259. package/dist/models/IncidentMemberStructScheduleGroup.d.ts +15 -0
  260. package/dist/models/IncidentMemberStructScheduleGroup.js +60 -0
  261. package/dist/models/IncidentMemberStructScheduleGroup.js.map +1 -0
  262. package/dist/models/IncidentNoteStruct.d.ts +21 -0
  263. package/dist/models/IncidentNoteStruct.js +74 -0
  264. package/dist/models/IncidentNoteStruct.js.map +1 -0
  265. package/dist/models/IncidentNoteStructOperator.d.ts +17 -0
  266. package/dist/models/IncidentNoteStructOperator.js +64 -0
  267. package/dist/models/IncidentNoteStructOperator.js.map +1 -0
  268. package/dist/models/IncidentPlanCorporationStruct.d.ts +15 -0
  269. package/dist/models/IncidentPlanCorporationStruct.js +60 -0
  270. package/dist/models/IncidentPlanCorporationStruct.js.map +1 -0
  271. package/dist/models/IncidentPlanFieldPath.d.ts +15 -0
  272. package/dist/models/IncidentPlanFieldPath.js +63 -0
  273. package/dist/models/IncidentPlanFieldPath.js.map +1 -0
  274. package/dist/models/IncidentPlanStruct.d.ts +29 -0
  275. package/dist/models/IncidentPlanStruct.js +98 -0
  276. package/dist/models/IncidentPlanStruct.js.map +1 -0
  277. package/dist/models/IncidentResourceDetail.d.ts +18 -0
  278. package/dist/models/IncidentResourceDetail.js +65 -0
  279. package/dist/models/IncidentResourceDetail.js.map +1 -0
  280. package/dist/models/IncidentResourceStruct.d.ts +21 -0
  281. package/dist/models/IncidentResourceStruct.js +74 -0
  282. package/dist/models/IncidentResourceStruct.js.map +1 -0
  283. package/dist/models/IncidentStruct.d.ts +26 -0
  284. package/dist/models/IncidentStruct.js +88 -0
  285. package/dist/models/IncidentStruct.js.map +1 -0
  286. package/dist/models/IncidentTimeline.d.ts +22 -0
  287. package/dist/models/IncidentTimeline.js +74 -0
  288. package/dist/models/IncidentTimeline.js.map +1 -0
  289. package/dist/models/ListAlertActionsRequest.d.ts +18 -0
  290. package/dist/models/ListAlertActionsRequest.js +69 -0
  291. package/dist/models/ListAlertActionsRequest.js.map +1 -0
  292. package/dist/models/ListAlertActionsResponse.d.ts +19 -0
  293. package/dist/models/ListAlertActionsResponse.js +69 -0
  294. package/dist/models/ListAlertActionsResponse.js.map +1 -0
  295. package/dist/models/ListAlertActionsResponseBody.d.ts +19 -0
  296. package/dist/models/ListAlertActionsResponseBody.js +70 -0
  297. package/dist/models/ListAlertActionsResponseBody.js.map +1 -0
  298. package/dist/models/ListAlertActionsResponseBodyAlertActions.d.ts +32 -0
  299. package/dist/models/ListAlertActionsResponseBodyAlertActions.js +110 -0
  300. package/dist/models/ListAlertActionsResponseBodyAlertActions.js.map +1 -0
  301. package/dist/models/ListAlertActionsResponseBodyAlertActionsEbParam.d.ts +17 -0
  302. package/dist/models/ListAlertActionsResponseBodyAlertActionsEbParam.js +64 -0
  303. package/dist/models/ListAlertActionsResponseBodyAlertActionsEbParam.js.map +1 -0
  304. package/dist/models/ListAlertActionsResponseBodyAlertActionsEssParam.d.ts +16 -0
  305. package/dist/models/ListAlertActionsResponseBodyAlertActionsEssParam.js +62 -0
  306. package/dist/models/ListAlertActionsResponseBodyAlertActionsEssParam.js.map +1 -0
  307. package/dist/models/ListAlertActionsResponseBodyAlertActionsFc3param.d.ts +16 -0
  308. package/dist/models/ListAlertActionsResponseBodyAlertActionsFc3param.js +62 -0
  309. package/dist/models/ListAlertActionsResponseBodyAlertActionsFc3param.js.map +1 -0
  310. package/dist/models/ListAlertActionsResponseBodyAlertActionsFcParam.d.ts +16 -0
  311. package/dist/models/ListAlertActionsResponseBodyAlertActionsFcParam.js +62 -0
  312. package/dist/models/ListAlertActionsResponseBodyAlertActionsFcParam.js.map +1 -0
  313. package/dist/models/ListAlertActionsResponseBodyAlertActionsMnsParam.d.ts +16 -0
  314. package/dist/models/ListAlertActionsResponseBodyAlertActionsMnsParam.js +62 -0
  315. package/dist/models/ListAlertActionsResponseBodyAlertActionsMnsParam.js.map +1 -0
  316. package/dist/models/ListAlertActionsResponseBodyAlertActionsPagerDutyParam.d.ts +15 -0
  317. package/dist/models/ListAlertActionsResponseBodyAlertActionsPagerDutyParam.js +60 -0
  318. package/dist/models/ListAlertActionsResponseBodyAlertActionsPagerDutyParam.js.map +1 -0
  319. package/dist/models/ListAlertActionsResponseBodyAlertActionsSlsParam.d.ts +16 -0
  320. package/dist/models/ListAlertActionsResponseBodyAlertActionsSlsParam.js +62 -0
  321. package/dist/models/ListAlertActionsResponseBodyAlertActionsSlsParam.js.map +1 -0
  322. package/dist/models/ListAlertActionsResponseBodyAlertActionsWebhookParam.d.ts +19 -0
  323. package/dist/models/ListAlertActionsResponseBodyAlertActionsWebhookParam.js +67 -0
  324. package/dist/models/ListAlertActionsResponseBodyAlertActionsWebhookParam.js.map +1 -0
  325. package/dist/models/ListAlertActionsShrinkRequest.d.ts +18 -0
  326. package/dist/models/ListAlertActionsShrinkRequest.js +66 -0
  327. package/dist/models/ListAlertActionsShrinkRequest.js.map +1 -0
  328. package/dist/models/ListWorkspacesRequest.d.ts +44 -0
  329. package/dist/models/ListWorkspacesRequest.js +69 -0
  330. package/dist/models/ListWorkspacesRequest.js.map +1 -0
  331. package/dist/models/ListWorkspacesResponse.d.ts +19 -0
  332. package/dist/models/ListWorkspacesResponse.js +69 -0
  333. package/dist/models/ListWorkspacesResponse.js.map +1 -0
  334. package/dist/models/ListWorkspacesResponseBody.d.ts +35 -0
  335. package/dist/models/ListWorkspacesResponseBody.js +70 -0
  336. package/dist/models/ListWorkspacesResponseBody.js.map +1 -0
  337. package/dist/models/ListWorkspacesResponseBodyWorkspaces.d.ts +68 -0
  338. package/dist/models/ListWorkspacesResponseBodyWorkspaces.js +70 -0
  339. package/dist/models/ListWorkspacesResponseBodyWorkspaces.js.map +1 -0
  340. package/dist/models/ListWorkspacesShrinkRequest.d.ts +44 -0
  341. package/dist/models/ListWorkspacesShrinkRequest.js +66 -0
  342. package/dist/models/ListWorkspacesShrinkRequest.js.map +1 -0
  343. package/dist/models/MaintainWindowForModify.d.ts +26 -0
  344. package/dist/models/MaintainWindowForModify.js +78 -0
  345. package/dist/models/MaintainWindowForModify.js.map +1 -0
  346. package/dist/models/MaintainWindowForModifyEffectTimeRange.d.ts +17 -0
  347. package/dist/models/MaintainWindowForModifyEffectTimeRange.js +67 -0
  348. package/dist/models/MaintainWindowForModifyEffectTimeRange.js.map +1 -0
  349. package/dist/models/MaintainWindowForView.d.ts +32 -0
  350. package/dist/models/MaintainWindowForView.js +90 -0
  351. package/dist/models/MaintainWindowForView.js.map +1 -0
  352. package/dist/models/MaintainWindowForViewEffectTimeRange.d.ts +17 -0
  353. package/dist/models/MaintainWindowForViewEffectTimeRange.js +67 -0
  354. package/dist/models/MaintainWindowForViewEffectTimeRange.js.map +1 -0
  355. package/dist/models/NotifyStrategyForModify.d.ts +34 -0
  356. package/dist/models/NotifyStrategyForModify.js +80 -0
  357. package/dist/models/NotifyStrategyForModify.js.map +1 -0
  358. package/dist/models/NotifyStrategyForModifyCustomTemplateEntries.d.ts +23 -0
  359. package/dist/models/NotifyStrategyForModifyCustomTemplateEntries.js +60 -0
  360. package/dist/models/NotifyStrategyForModifyCustomTemplateEntries.js.map +1 -0
  361. package/dist/models/NotifyStrategyForModifyGroupingSetting.d.ts +17 -0
  362. package/dist/models/NotifyStrategyForModifyGroupingSetting.js +67 -0
  363. package/dist/models/NotifyStrategyForModifyGroupingSetting.js.map +1 -0
  364. package/dist/models/NotifyStrategyForModifyRoutes.d.ts +20 -0
  365. package/dist/models/NotifyStrategyForModifyRoutes.js +79 -0
  366. package/dist/models/NotifyStrategyForModifyRoutes.js.map +1 -0
  367. package/dist/models/NotifyStrategyForModifyRoutesChannels.d.ts +24 -0
  368. package/dist/models/NotifyStrategyForModifyRoutesChannels.js +68 -0
  369. package/dist/models/NotifyStrategyForModifyRoutesChannels.js.map +1 -0
  370. package/dist/models/NotifyStrategyForModifyRoutesEffectTimeRange.d.ts +17 -0
  371. package/dist/models/NotifyStrategyForModifyRoutesEffectTimeRange.js +67 -0
  372. package/dist/models/NotifyStrategyForModifyRoutesEffectTimeRange.js.map +1 -0
  373. package/dist/models/NotifyStrategyForView.d.ts +40 -0
  374. package/dist/models/NotifyStrategyForView.js +92 -0
  375. package/dist/models/NotifyStrategyForView.js.map +1 -0
  376. package/dist/models/NotifyStrategyForViewCustomTemplateEntries.d.ts +23 -0
  377. package/dist/models/NotifyStrategyForViewCustomTemplateEntries.js +60 -0
  378. package/dist/models/NotifyStrategyForViewCustomTemplateEntries.js.map +1 -0
  379. package/dist/models/NotifyStrategyForViewGroupingSetting.d.ts +17 -0
  380. package/dist/models/NotifyStrategyForViewGroupingSetting.js +67 -0
  381. package/dist/models/NotifyStrategyForViewGroupingSetting.js.map +1 -0
  382. package/dist/models/NotifyStrategyForViewRoutes.d.ts +20 -0
  383. package/dist/models/NotifyStrategyForViewRoutes.js +79 -0
  384. package/dist/models/NotifyStrategyForViewRoutes.js.map +1 -0
  385. package/dist/models/NotifyStrategyForViewRoutesChannels.d.ts +24 -0
  386. package/dist/models/NotifyStrategyForViewRoutesChannels.js +68 -0
  387. package/dist/models/NotifyStrategyForViewRoutesChannels.js.map +1 -0
  388. package/dist/models/NotifyStrategyForViewRoutesEffectTimeRange.d.ts +17 -0
  389. package/dist/models/NotifyStrategyForViewRoutesEffectTimeRange.js +67 -0
  390. package/dist/models/NotifyStrategyForViewRoutesEffectTimeRange.js.map +1 -0
  391. package/dist/models/PrometheusManagedInstance.d.ts +20 -0
  392. package/dist/models/PrometheusManagedInstance.js +70 -0
  393. package/dist/models/PrometheusManagedInstance.js.map +1 -0
  394. package/dist/models/PutWorkspaceRequest.d.ts +36 -0
  395. package/dist/models/PutWorkspaceRequest.js +62 -0
  396. package/dist/models/PutWorkspaceRequest.js.map +1 -0
  397. package/dist/models/PutWorkspaceResponse.d.ts +19 -0
  398. package/dist/models/PutWorkspaceResponse.js +69 -0
  399. package/dist/models/PutWorkspaceResponse.js.map +1 -0
  400. package/dist/models/PutWorkspaceResponseBody.d.ts +26 -0
  401. package/dist/models/PutWorkspaceResponseBody.js +60 -0
  402. package/dist/models/PutWorkspaceResponseBody.js.map +1 -0
  403. package/dist/models/RumDnsResponse.d.ts +16 -0
  404. package/dist/models/RumDnsResponse.js +62 -0
  405. package/dist/models/RumDnsResponse.js.map +1 -0
  406. package/dist/models/SubscriptionForModify.d.ts +24 -0
  407. package/dist/models/SubscriptionForModify.js +74 -0
  408. package/dist/models/SubscriptionForModify.js.map +1 -0
  409. package/dist/models/SubscriptionForModifyPushingSetting.d.ts +17 -0
  410. package/dist/models/SubscriptionForModifyPushingSetting.js +70 -0
  411. package/dist/models/SubscriptionForModifyPushingSetting.js.map +1 -0
  412. package/dist/models/SubscriptionForView.d.ts +30 -0
  413. package/dist/models/SubscriptionForView.js +86 -0
  414. package/dist/models/SubscriptionForView.js.map +1 -0
  415. package/dist/models/SubscriptionForViewPushingSetting.d.ts +17 -0
  416. package/dist/models/SubscriptionForViewPushingSetting.js +70 -0
  417. package/dist/models/SubscriptionForViewPushingSetting.js.map +1 -0
  418. package/dist/models/TransformAction.d.ts +25 -0
  419. package/dist/models/TransformAction.js +81 -0
  420. package/dist/models/TransformAction.js.map +1 -0
  421. package/dist/models/TransformerForModify.d.ts +25 -0
  422. package/dist/models/TransformerForModify.js +76 -0
  423. package/dist/models/TransformerForModify.js.map +1 -0
  424. package/dist/models/TransformerForView.d.ts +31 -0
  425. package/dist/models/TransformerForView.js +88 -0
  426. package/dist/models/TransformerForView.js.map +1 -0
  427. package/dist/models/UpdateUmodelRequest.d.ts +20 -0
  428. package/dist/models/UpdateUmodelRequest.js +64 -0
  429. package/dist/models/UpdateUmodelRequest.js.map +1 -0
  430. package/dist/models/UpdateUmodelRequestCommonSchemaRef.d.ts +24 -0
  431. package/dist/models/UpdateUmodelRequestCommonSchemaRef.js +65 -0
  432. package/dist/models/UpdateUmodelRequestCommonSchemaRef.js.map +1 -0
  433. package/dist/models/UpdateUmodelResponse.d.ts +19 -0
  434. package/dist/models/UpdateUmodelResponse.js +69 -0
  435. package/dist/models/UpdateUmodelResponse.js.map +1 -0
  436. package/dist/models/UpdateUmodelResponseBody.d.ts +23 -0
  437. package/dist/models/UpdateUmodelResponseBody.js +60 -0
  438. package/dist/models/UpdateUmodelResponseBody.js.map +1 -0
  439. package/dist/models/UpsertUmodelDataRequest.d.ts +19 -0
  440. package/dist/models/UpsertUmodelDataRequest.js +63 -0
  441. package/dist/models/UpsertUmodelDataRequest.js.map +1 -0
  442. package/dist/models/UpsertUmodelDataResponse.d.ts +19 -0
  443. package/dist/models/UpsertUmodelDataResponse.js +69 -0
  444. package/dist/models/UpsertUmodelDataResponse.js.map +1 -0
  445. package/dist/models/UpsertUmodelDataResponseBody.d.ts +18 -0
  446. package/dist/models/UpsertUmodelDataResponseBody.js +58 -0
  447. package/dist/models/UpsertUmodelDataResponseBody.js.map +1 -0
  448. package/dist/models/model.d.ts +148 -0
  449. package/dist/models/model.js +302 -0
  450. package/dist/models/model.js.map +1 -0
  451. package/package.json +3 -6
  452. package/src/client.ts +689 -1920
  453. package/src/models/AddonMeta.ts +80 -0
  454. package/src/models/AddonMetaDashboards.ts +35 -0
  455. package/src/models/AddonMetaEnvironments.ts +53 -0
  456. package/src/models/AddonMetaEnvironmentsDependencies.ts +42 -0
  457. package/src/models/AddonMetaEnvironmentsPolicies.ts +63 -0
  458. package/src/models/AddonMetaEnvironmentsPoliciesBindEntity.ts +36 -0
  459. package/src/models/AddonMetaEnvironmentsPoliciesMetricCheckRule.ts +30 -0
  460. package/src/models/AddonMetaEnvironmentsPoliciesProtocols.ts +36 -0
  461. package/src/models/AlertEventIntegrationPolicyForModify.ts +54 -0
  462. package/src/models/AlertEventIntegrationPolicyForView.ts +75 -0
  463. package/src/models/AlertRuleAction.ts +30 -0
  464. package/src/models/AlertRuleAlertMetricFilterDef.ts +52 -0
  465. package/src/models/AlertRuleAlertMetricFilterDefSupportedOpts.ts +33 -0
  466. package/src/models/AlertRuleAlertMetricInput.ts +44 -0
  467. package/src/models/AlertRuleAlertMetricInputFilterValue.ts +41 -0
  468. package/src/models/AlertRuleAlertMetricInputParamValue.ts +38 -0
  469. package/src/models/AlertRuleAlertMetricParamDef.ts +52 -0
  470. package/src/models/AlertRuleAlertMetricParamDefValues.ts +33 -0
  471. package/src/models/AlertRuleCondition.ts +98 -0
  472. package/src/models/AlertRuleConditionCaseList.ts +36 -0
  473. package/src/models/AlertRuleConditionCompareList.ts +46 -0
  474. package/src/models/AlertRuleConditionCompareListValueLevelList.ts +30 -0
  475. package/src/models/AlertRuleConditionCompositeEscalation.ts +40 -0
  476. package/src/models/AlertRuleConditionCompositeEscalationEscalations.ts +39 -0
  477. package/src/models/AlertRuleConditionExpressEscalation.ts +33 -0
  478. package/src/models/AlertRuleConditionSimpleEscalation.ts +37 -0
  479. package/src/models/AlertRuleConditionSimpleEscalationEscalations.ts +39 -0
  480. package/src/models/AlertRuleDataSource.ts +56 -0
  481. package/src/models/AlertRuleDataSourceDsList.ts +36 -0
  482. package/src/models/AlertRuleLabelFilter.ts +33 -0
  483. package/src/models/AlertRuleNotification.ts +76 -0
  484. package/src/models/AlertRuleNotificationFilter.ts +66 -0
  485. package/src/models/AlertRuleQuery.ts +86 -0
  486. package/src/models/AlertRuleQueryQueries.ts +78 -0
  487. package/src/models/AlertRuleQueryQueriesApmFilters.ts +33 -0
  488. package/src/models/AlertRuleSend.ts +41 -0
  489. package/src/models/AlertRuleSlsQueryJoin.ts +50 -0
  490. package/src/models/AlertRuleSlsQueryJoinConditions.ts +45 -0
  491. package/src/models/AlertRuleTimeSpan.ts +39 -0
  492. package/src/models/BizTraceConfig.ts +48 -0
  493. package/src/models/CreateEntityStoreResponse.ts +40 -0
  494. package/src/models/CreateEntityStoreResponseBody.ts +38 -0
  495. package/src/models/CreatePrometheusInstanceRequest.ts +114 -0
  496. package/src/models/CreatePrometheusInstanceRequestTags.ts +38 -0
  497. package/src/models/CreatePrometheusInstanceResponse.ts +40 -0
  498. package/src/models/CreatePrometheusInstanceResponseBody.ts +41 -0
  499. package/src/models/CreateUmodelRequest.ts +38 -0
  500. package/src/models/CreateUmodelRequestCommonSchemaRef.ts +44 -0
  501. package/src/models/CreateUmodelResponse.ts +40 -0
  502. package/src/models/CreateUmodelResponseBody.ts +38 -0
  503. package/src/models/DataStorageItem.ts +39 -0
  504. package/src/models/DeleteEntityStoreResponse.ts +40 -0
  505. package/src/models/DeleteEntityStoreResponseBody.ts +31 -0
  506. package/src/models/DeleteUmodelDataRequest.ts +45 -0
  507. package/src/models/DeleteUmodelDataResponse.ts +40 -0
  508. package/src/models/DeleteUmodelDataResponseBody.ts +31 -0
  509. package/src/models/DeleteUmodelResponse.ts +40 -0
  510. package/src/models/DeleteUmodelResponseBody.ts +31 -0
  511. package/src/models/DeleteWorkspaceResponse.ts +40 -0
  512. package/src/models/DeleteWorkspaceResponseBody.ts +31 -0
  513. package/src/models/FilterSetting.ts +37 -0
  514. package/src/models/FilterSettingConditions.ts +33 -0
  515. package/src/models/GetEntityStoreDataHeaders.ts +37 -0
  516. package/src/models/GetEntityStoreDataRequest.ts +54 -0
  517. package/src/models/GetEntityStoreDataResponse.ts +40 -0
  518. package/src/models/GetEntityStoreDataResponseBody.ts +43 -0
  519. package/src/models/GetEntityStoreResponse.ts +40 -0
  520. package/src/models/GetEntityStoreResponseBody.ts +45 -0
  521. package/src/models/GetUmodelDataRequest.ts +47 -0
  522. package/src/models/GetUmodelDataResponse.ts +40 -0
  523. package/src/models/GetUmodelDataResponseBody.ts +64 -0
  524. package/src/models/GetUmodelDataResponseBodyErrors.ts +38 -0
  525. package/src/models/GetUmodelResponse.ts +40 -0
  526. package/src/models/GetUmodelResponseBody.ts +59 -0
  527. package/src/models/GetUmodelResponseBodyCommonSchemaRef.ts +44 -0
  528. package/src/models/GetWorkspaceResponse.ts +40 -0
  529. package/src/models/GetWorkspaceResponseBody.ts +100 -0
  530. package/src/models/IncidentContactStruct.ts +36 -0
  531. package/src/models/IncidentEscalationStageStruct.ts +55 -0
  532. package/src/models/IncidentEscalationStruct.ts +52 -0
  533. package/src/models/IncidentEventStruct.ts +75 -0
  534. package/src/models/IncidentMemberStruct.ts +67 -0
  535. package/src/models/IncidentMemberStructAcknowledge.ts +30 -0
  536. package/src/models/IncidentMemberStructContacts.ts +30 -0
  537. package/src/models/IncidentMemberStructEscalation.ts +39 -0
  538. package/src/models/IncidentMemberStructScheduleGroup.ts +30 -0
  539. package/src/models/IncidentNoteStruct.ts +49 -0
  540. package/src/models/IncidentNoteStructOperator.ts +36 -0
  541. package/src/models/IncidentPlanCorporationStruct.ts +30 -0
  542. package/src/models/IncidentPlanFieldPath.ts +33 -0
  543. package/src/models/IncidentPlanStruct.ts +80 -0
  544. package/src/models/IncidentResourceDetail.ts +36 -0
  545. package/src/models/IncidentResourceStruct.ts +49 -0
  546. package/src/models/IncidentStruct.ts +66 -0
  547. package/src/models/IncidentTimeline.ts +51 -0
  548. package/src/models/ListAlertActionsRequest.ts +42 -0
  549. package/src/models/ListAlertActionsResponse.ts +40 -0
  550. package/src/models/ListAlertActionsResponseBody.ts +43 -0
  551. package/src/models/ListAlertActionsResponseBodyAlertActions.ts +89 -0
  552. package/src/models/ListAlertActionsResponseBodyAlertActionsEbParam.ts +36 -0
  553. package/src/models/ListAlertActionsResponseBodyAlertActionsEssParam.ts +33 -0
  554. package/src/models/ListAlertActionsResponseBodyAlertActionsFc3param.ts +33 -0
  555. package/src/models/ListAlertActionsResponseBodyAlertActionsFcParam.ts +33 -0
  556. package/src/models/ListAlertActionsResponseBodyAlertActionsMnsParam.ts +33 -0
  557. package/src/models/ListAlertActionsResponseBodyAlertActionsPagerDutyParam.ts +30 -0
  558. package/src/models/ListAlertActionsResponseBodyAlertActionsSlsParam.ts +33 -0
  559. package/src/models/ListAlertActionsResponseBodyAlertActionsWebhookParam.ts +39 -0
  560. package/src/models/ListAlertActionsShrinkRequest.ts +39 -0
  561. package/src/models/ListWorkspacesRequest.ts +68 -0
  562. package/src/models/ListWorkspacesResponse.ts +40 -0
  563. package/src/models/ListWorkspacesResponseBody.ts +59 -0
  564. package/src/models/ListWorkspacesResponseBodyWorkspaces.ts +93 -0
  565. package/src/models/ListWorkspacesShrinkRequest.ts +65 -0
  566. package/src/models/MaintainWindowForModify.ts +57 -0
  567. package/src/models/MaintainWindowForModifyEffectTimeRange.ts +39 -0
  568. package/src/models/MaintainWindowForView.ts +75 -0
  569. package/src/models/MaintainWindowForViewEffectTimeRange.ts +39 -0
  570. package/src/models/NotifyStrategyForModify.ts +66 -0
  571. package/src/models/NotifyStrategyForModifyCustomTemplateEntries.ts +38 -0
  572. package/src/models/NotifyStrategyForModifyGroupingSetting.ts +39 -0
  573. package/src/models/NotifyStrategyForModifyRoutes.ts +51 -0
  574. package/src/models/NotifyStrategyForModifyRoutesChannels.ts +47 -0
  575. package/src/models/NotifyStrategyForModifyRoutesEffectTimeRange.ts +39 -0
  576. package/src/models/NotifyStrategyForView.ts +84 -0
  577. package/src/models/NotifyStrategyForViewCustomTemplateEntries.ts +38 -0
  578. package/src/models/NotifyStrategyForViewGroupingSetting.ts +39 -0
  579. package/src/models/NotifyStrategyForViewRoutes.ts +51 -0
  580. package/src/models/NotifyStrategyForViewRoutesChannels.ts +47 -0
  581. package/src/models/NotifyStrategyForViewRoutesEffectTimeRange.ts +39 -0
  582. package/src/models/PrometheusManagedInstance.ts +45 -0
  583. package/src/models/PutWorkspaceRequest.ts +53 -0
  584. package/src/models/PutWorkspaceResponse.ts +40 -0
  585. package/src/models/PutWorkspaceResponseBody.ts +41 -0
  586. package/src/models/RumDnsResponse.ts +33 -0
  587. package/src/models/SubscriptionForModify.ts +51 -0
  588. package/src/models/SubscriptionForModifyPushingSetting.ts +42 -0
  589. package/src/models/SubscriptionForView.ts +69 -0
  590. package/src/models/SubscriptionForViewPushingSetting.ts +42 -0
  591. package/src/models/TransformAction.ts +58 -0
  592. package/src/models/TransformerForModify.ts +54 -0
  593. package/src/models/TransformerForView.ts +72 -0
  594. package/src/models/UpdateUmodelRequest.ts +38 -0
  595. package/src/models/UpdateUmodelRequestCommonSchemaRef.ts +44 -0
  596. package/src/models/UpdateUmodelResponse.ts +40 -0
  597. package/src/models/UpdateUmodelResponseBody.ts +38 -0
  598. package/src/models/UpsertUmodelDataRequest.ts +37 -0
  599. package/src/models/UpsertUmodelDataResponse.ts +40 -0
  600. package/src/models/UpsertUmodelDataResponseBody.ts +31 -0
  601. package/src/models/model.ts +148 -0
package/src/client.ts CHANGED
@@ -1,2099 +1,868 @@
1
1
  // This file is auto-generated, don't edit it
2
- /**
3
- */
4
- import Util, * as $Util from '@alicloud/tea-util';
5
- import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
- import OpenApiUtil from '@alicloud/openapi-util';
7
- import EndpointUtil from '@alicloud/endpoint-util';
8
- import * as $tea from '@alicloud/tea-typescript';
9
-
10
- export class AlertEventIntegrationPolicyForModify extends $tea.Model {
11
- /**
12
- * @remarks
13
- * This parameter is required.
14
- */
15
- alertEventIntegrationPolicyName?: string;
16
- description?: string;
17
- filterSetting?: FilterSetting;
18
- integrationSetting?: string;
19
- transformerSetting?: TransformAction[];
20
- type?: string;
21
- static names(): { [key: string]: string } {
22
- return {
23
- alertEventIntegrationPolicyName: 'alertEventIntegrationPolicyName',
24
- description: 'description',
25
- filterSetting: 'filterSetting',
26
- integrationSetting: 'integrationSetting',
27
- transformerSetting: 'transformerSetting',
28
- type: 'type',
29
- };
30
- }
31
-
32
- static types(): { [key: string]: any } {
33
- return {
34
- alertEventIntegrationPolicyName: 'string',
35
- description: 'string',
36
- filterSetting: FilterSetting,
37
- integrationSetting: 'string',
38
- transformerSetting: { 'type': 'array', 'itemType': TransformAction },
39
- type: 'string',
40
- };
41
- }
42
-
43
- constructor(map?: { [key: string]: any }) {
44
- super(map);
45
- }
46
- }
47
-
48
- export class AlertEventIntegrationPolicyForView extends $tea.Model {
49
- alertEventIntegrationPolicyId?: string;
50
- /**
51
- * @remarks
52
- * This parameter is required.
53
- */
54
- alertEventIntegrationPolicyName?: string;
55
- createTime?: string;
56
- description?: string;
57
- enable?: boolean;
58
- filterSetting?: FilterSetting;
59
- integrationSetting?: string;
60
- transformerSetting?: TransformAction[];
61
- type?: string;
62
- updateTime?: string;
63
- userId?: string;
64
- workspace?: string;
65
- static names(): { [key: string]: string } {
66
- return {
67
- alertEventIntegrationPolicyId: 'alertEventIntegrationPolicyId',
68
- alertEventIntegrationPolicyName: 'alertEventIntegrationPolicyName',
69
- createTime: 'createTime',
70
- description: 'description',
71
- enable: 'enable',
72
- filterSetting: 'filterSetting',
73
- integrationSetting: 'integrationSetting',
74
- transformerSetting: 'transformerSetting',
75
- type: 'type',
76
- updateTime: 'updateTime',
77
- userId: 'userId',
78
- workspace: 'workspace',
79
- };
80
- }
81
-
82
- static types(): { [key: string]: any } {
83
- return {
84
- alertEventIntegrationPolicyId: 'string',
85
- alertEventIntegrationPolicyName: 'string',
86
- createTime: 'string',
87
- description: 'string',
88
- enable: 'boolean',
89
- filterSetting: FilterSetting,
90
- integrationSetting: 'string',
91
- transformerSetting: { 'type': 'array', 'itemType': TransformAction },
92
- type: 'string',
93
- updateTime: 'string',
94
- userId: 'string',
95
- workspace: 'string',
96
- };
97
- }
98
-
99
- constructor(map?: { [key: string]: any }) {
100
- super(map);
101
- }
102
- }
103
-
104
- export class AlertRuleAction extends $tea.Model {
105
- actions?: string[];
106
- static names(): { [key: string]: string } {
107
- return {
108
- actions: 'actions',
109
- };
110
- }
2
+ import * as $dara from '@darabonba/typescript';
3
+ import OpenApi from '@alicloud/openapi-core';
4
+ import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
111
5
 
112
- static types(): { [key: string]: any } {
113
- return {
114
- actions: { 'type': 'array', 'itemType': 'string' },
115
- };
116
- }
117
6
 
118
- constructor(map?: { [key: string]: any }) {
119
- super(map);
120
- }
121
- }
7
+ import * as $_model from './models/model';
8
+ export * from './models/model';
122
9
 
123
- export class AlertRuleAlertMetricFilterDef extends $tea.Model {
124
- dim?: string;
125
- displayNameCn?: string;
126
- displayNameEn?: string;
127
- hidden?: boolean;
128
- opt?: string;
129
- supportedOpts?: AlertRuleAlertMetricFilterDefSupportedOpts[];
130
- static names(): { [key: string]: string } {
131
- return {
132
- dim: 'dim',
133
- displayNameCn: 'displayNameCn',
134
- displayNameEn: 'displayNameEn',
135
- hidden: 'hidden',
136
- opt: 'opt',
137
- supportedOpts: 'supportedOpts',
138
- };
139
- }
10
+ export default class Client extends OpenApi {
140
11
 
141
- static types(): { [key: string]: any } {
142
- return {
143
- dim: 'string',
144
- displayNameCn: 'string',
145
- displayNameEn: 'string',
146
- hidden: 'boolean',
147
- opt: 'string',
148
- supportedOpts: { 'type': 'array', 'itemType': AlertRuleAlertMetricFilterDefSupportedOpts },
149
- };
12
+ constructor(config: $OpenApiUtil.Config) {
13
+ super(config);
14
+ this._endpointRule = "";
15
+ this.checkConfig(config);
16
+ this._endpoint = this.getEndpoint("cms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
150
17
  }
151
18
 
152
- constructor(map?: { [key: string]: any }) {
153
- super(map);
154
- }
155
- }
156
19
 
157
- export class AlertRuleAlertMetricInput extends $tea.Model {
158
- filterValues?: AlertRuleAlertMetricInputFilterValue[];
159
- groupId?: string;
160
- metricId?: string;
161
- paramValues?: AlertRuleAlertMetricInputParamValue[];
162
- static names(): { [key: string]: string } {
163
- return {
164
- filterValues: 'filterValues',
165
- groupId: 'groupId',
166
- metricId: 'metricId',
167
- paramValues: 'paramValues',
168
- };
169
- }
20
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
21
+ if (!$dara.isNull(endpoint)) {
22
+ return endpoint;
23
+ }
170
24
 
171
- static types(): { [key: string]: any } {
172
- return {
173
- filterValues: { 'type': 'array', 'itemType': AlertRuleAlertMetricInputFilterValue },
174
- groupId: 'string',
175
- metricId: 'string',
176
- paramValues: { 'type': 'array', 'itemType': AlertRuleAlertMetricInputParamValue },
177
- };
178
- }
25
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
26
+ return endpointMap[regionId];
27
+ }
179
28
 
180
- constructor(map?: { [key: string]: any }) {
181
- super(map);
29
+ return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
182
30
  }
183
- }
184
31
 
185
- export class AlertRuleAlertMetricInputFilterValue extends $tea.Model {
186
32
  /**
187
- * @remarks
188
- * This parameter is required.
189
- */
190
- dim?: string;
191
- /**
192
- * @remarks
193
- * This parameter is required.
33
+ * 创建EntityStore相关存储
34
+ *
35
+ * @param headers - map
36
+ * @param runtime - runtime options for this request RuntimeOptions
37
+ * @returns CreateEntityStoreResponse
194
38
  */
195
- opt?: string;
196
- value?: string;
197
- static names(): { [key: string]: string } {
198
- return {
199
- dim: 'dim',
200
- opt: 'opt',
201
- value: 'value',
202
- };
203
- }
204
-
205
- static types(): { [key: string]: any } {
206
- return {
207
- dim: 'string',
208
- opt: 'string',
209
- value: 'string',
210
- };
211
- }
212
-
213
- constructor(map?: { [key: string]: any }) {
214
- super(map);
39
+ async createEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateEntityStoreResponse> {
40
+ let req = new $OpenApiUtil.OpenApiRequest({
41
+ headers: headers,
42
+ });
43
+ let params = new $OpenApiUtil.Params({
44
+ action: "CreateEntityStore",
45
+ version: "2024-03-30",
46
+ protocol: "HTTPS",
47
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
48
+ method: "POST",
49
+ authType: "AK",
50
+ style: "ROA",
51
+ reqBodyType: "json",
52
+ bodyType: "json",
53
+ });
54
+ return $dara.cast<$_model.CreateEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.CreateEntityStoreResponse({}));
215
55
  }
216
- }
217
56
 
218
- export class AlertRuleAlertMetricInputParamValue extends $tea.Model {
219
- /**
220
- * @remarks
221
- * This parameter is required.
222
- */
223
- name?: string;
224
57
  /**
225
- * @remarks
226
- * This parameter is required.
58
+ * 创建EntityStore相关存储
59
+ * @returns CreateEntityStoreResponse
227
60
  */
228
- value?: string;
229
- static names(): { [key: string]: string } {
230
- return {
231
- name: 'name',
232
- value: 'value',
233
- };
234
- }
235
-
236
- static types(): { [key: string]: any } {
237
- return {
238
- name: 'string',
239
- value: 'string',
240
- };
241
- }
242
-
243
- constructor(map?: { [key: string]: any }) {
244
- super(map);
245
- }
246
- }
247
-
248
- export class AlertRuleAlertMetricParamDef extends $tea.Model {
249
- maxWidth?: number;
250
- minWidth?: number;
251
- name?: string;
252
- placeholderCn?: string;
253
- placeholderEn?: string;
254
- type?: string;
255
- value?: string;
256
- values?: AlertRuleAlertMetricParamDefValues[];
257
- static names(): { [key: string]: string } {
258
- return {
259
- maxWidth: 'maxWidth',
260
- minWidth: 'minWidth',
261
- name: 'name',
262
- placeholderCn: 'placeholderCn',
263
- placeholderEn: 'placeholderEn',
264
- type: 'type',
265
- value: 'value',
266
- values: 'values',
267
- };
268
- }
269
-
270
- static types(): { [key: string]: any } {
271
- return {
272
- maxWidth: 'number',
273
- minWidth: 'number',
274
- name: 'string',
275
- placeholderCn: 'string',
276
- placeholderEn: 'string',
277
- type: 'string',
278
- value: 'string',
279
- values: { 'type': 'array', 'itemType': AlertRuleAlertMetricParamDefValues },
280
- };
61
+ async createEntityStore(workspaceName: string): Promise<$_model.CreateEntityStoreResponse> {
62
+ let runtime = new $dara.RuntimeOptions({ });
63
+ let headers : {[key: string ]: string} = { };
64
+ return await this.createEntityStoreWithOptions(workspaceName, headers, runtime);
281
65
  }
282
66
 
283
- constructor(map?: { [key: string]: any }) {
284
- super(map);
285
- }
286
- }
287
-
288
- export class AlertRuleCondition extends $tea.Model {
289
- /**
290
- * @remarks
291
- * type=SLS_CONDITION时指定,满足条件几次后告警,默认为1
292
- */
293
- alertCount?: number;
294
67
  /**
295
- * @remarks
296
- * type=SLS_CONDITION时指定
297
- */
298
- caseList?: AlertRuleConditionCaseList[];
299
- compareList?: AlertRuleConditionCompareList[];
300
- noDataAppendValue?: string;
301
- /**
302
- * @remarks
303
- * 无数据时按什么级别告警,不指定则不对无数据报警
304
- */
305
- nodataAlertLevel?: string;
306
- /**
307
- * @remarks
308
- * 规则条件类型,可选值:SLS_CONDITION
68
+ * 创建Prometheus监控实例
309
69
  *
310
- * This parameter is required.
70
+ * @param request - CreatePrometheusInstanceRequest
71
+ * @param headers - map
72
+ * @param runtime - runtime options for this request RuntimeOptions
73
+ * @returns CreatePrometheusInstanceResponse
311
74
  */
312
- type?: string;
313
- static names(): { [key: string]: string } {
314
- return {
315
- alertCount: 'alertCount',
316
- caseList: 'caseList',
317
- compareList: 'compareList',
318
- noDataAppendValue: 'noDataAppendValue',
319
- nodataAlertLevel: 'nodataAlertLevel',
320
- type: 'type',
321
- };
322
- }
323
-
324
- static types(): { [key: string]: any } {
325
- return {
326
- alertCount: 'number',
327
- caseList: { 'type': 'array', 'itemType': AlertRuleConditionCaseList },
328
- compareList: { 'type': 'array', 'itemType': AlertRuleConditionCompareList },
329
- noDataAppendValue: 'string',
330
- nodataAlertLevel: 'string',
331
- type: 'string',
332
- };
333
- }
334
-
335
- constructor(map?: { [key: string]: any }) {
336
- super(map);
337
- }
338
- }
75
+ async createPrometheusInstanceWithOptions(request: $_model.CreatePrometheusInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePrometheusInstanceResponse> {
76
+ request.validate();
77
+ let body : {[key: string ]: any} = { };
78
+ if (!$dara.isNull(request.archiveDuration)) {
79
+ body["archiveDuration"] = request.archiveDuration;
80
+ }
339
81
 
340
- export class AlertRuleDataSource extends $tea.Model {
341
- dsList?: AlertRuleDataSourceDsList[];
342
- /**
343
- * @remarks
344
- * 实例id,当type=PROMETHEUS_DS/ENTERPRISE_DS时必填,为prometheus实例的clusterId或指标仓库名称
345
- */
346
- instanceId?: string;
347
- namespace?: string;
348
- /**
349
- * @remarks
350
- * 数据源类型
351
- *
352
- * This parameter is required.
353
- */
354
- type?: string;
355
- static names(): { [key: string]: string } {
356
- return {
357
- dsList: 'dsList',
358
- instanceId: 'instanceId',
359
- namespace: 'namespace',
360
- type: 'type',
361
- };
362
- }
82
+ if (!$dara.isNull(request.authFreeReadPolicy)) {
83
+ body["authFreeReadPolicy"] = request.authFreeReadPolicy;
84
+ }
363
85
 
364
- static types(): { [key: string]: any } {
365
- return {
366
- dsList: { 'type': 'array', 'itemType': AlertRuleDataSourceDsList },
367
- instanceId: 'string',
368
- namespace: 'string',
369
- type: 'string',
370
- };
371
- }
86
+ if (!$dara.isNull(request.authFreeWritePolicy)) {
87
+ body["authFreeWritePolicy"] = request.authFreeWritePolicy;
88
+ }
372
89
 
373
- constructor(map?: { [key: string]: any }) {
374
- super(map);
375
- }
376
- }
90
+ if (!$dara.isNull(request.enableAuthFreeRead)) {
91
+ body["enableAuthFreeRead"] = request.enableAuthFreeRead;
92
+ }
377
93
 
378
- export class AlertRuleLabelFilter extends $tea.Model {
379
- labels?: { [key: string]: string };
380
- opt?: string;
381
- static names(): { [key: string]: string } {
382
- return {
383
- labels: 'labels',
384
- opt: 'opt',
385
- };
386
- }
94
+ if (!$dara.isNull(request.enableAuthFreeWrite)) {
95
+ body["enableAuthFreeWrite"] = request.enableAuthFreeWrite;
96
+ }
387
97
 
388
- static types(): { [key: string]: any } {
389
- return {
390
- labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
391
- opt: 'string',
392
- };
393
- }
98
+ if (!$dara.isNull(request.enableAuthToken)) {
99
+ body["enableAuthToken"] = request.enableAuthToken;
100
+ }
394
101
 
395
- constructor(map?: { [key: string]: any }) {
396
- super(map);
397
- }
398
- }
102
+ if (!$dara.isNull(request.paymentType)) {
103
+ body["paymentType"] = request.paymentType;
104
+ }
399
105
 
400
- export class AlertRuleNotification extends $tea.Model {
401
- contacts?: string[];
402
- customWebhooks?: string[];
403
- dingWebhooks?: string[];
404
- fsWebhooks?: string[];
405
- groups?: string[];
406
- notifyTime?: AlertRuleTimeSpan;
407
- silenceTime?: number;
408
- slackWebhooks?: string[];
409
- wxWebhooks?: string[];
410
- static names(): { [key: string]: string } {
411
- return {
412
- contacts: 'contacts',
413
- customWebhooks: 'customWebhooks',
414
- dingWebhooks: 'dingWebhooks',
415
- fsWebhooks: 'fsWebhooks',
416
- groups: 'groups',
417
- notifyTime: 'notifyTime',
418
- silenceTime: 'silenceTime',
419
- slackWebhooks: 'slackWebhooks',
420
- wxWebhooks: 'wxWebhooks',
421
- };
422
- }
106
+ if (!$dara.isNull(request.prometheusInstanceName)) {
107
+ body["prometheusInstanceName"] = request.prometheusInstanceName;
108
+ }
423
109
 
424
- static types(): { [key: string]: any } {
425
- return {
426
- contacts: { 'type': 'array', 'itemType': 'string' },
427
- customWebhooks: { 'type': 'array', 'itemType': 'string' },
428
- dingWebhooks: { 'type': 'array', 'itemType': 'string' },
429
- fsWebhooks: { 'type': 'array', 'itemType': 'string' },
430
- groups: { 'type': 'array', 'itemType': 'string' },
431
- notifyTime: AlertRuleTimeSpan,
432
- silenceTime: 'number',
433
- slackWebhooks: { 'type': 'array', 'itemType': 'string' },
434
- wxWebhooks: { 'type': 'array', 'itemType': 'string' },
435
- };
436
- }
110
+ if (!$dara.isNull(request.status)) {
111
+ body["status"] = request.status;
112
+ }
437
113
 
438
- constructor(map?: { [key: string]: any }) {
439
- super(map);
440
- }
441
- }
114
+ if (!$dara.isNull(request.storageDuration)) {
115
+ body["storageDuration"] = request.storageDuration;
116
+ }
442
117
 
443
- export class AlertRuleNotificationFilter extends $tea.Model {
444
- contacts?: string[];
445
- customWebhooks?: string[];
446
- dingWebhooks?: string[];
447
- fsWebhooks?: string[];
448
- groups?: string[];
449
- slackWebhooks?: string[];
450
- wxWebhooks?: string[];
451
- static names(): { [key: string]: string } {
452
- return {
453
- contacts: 'contacts',
454
- customWebhooks: 'customWebhooks',
455
- dingWebhooks: 'dingWebhooks',
456
- fsWebhooks: 'fsWebhooks',
457
- groups: 'groups',
458
- slackWebhooks: 'slackWebhooks',
459
- wxWebhooks: 'wxWebhooks',
460
- };
461
- }
118
+ if (!$dara.isNull(request.tags)) {
119
+ body["tags"] = request.tags;
120
+ }
462
121
 
463
- static types(): { [key: string]: any } {
464
- return {
465
- contacts: { 'type': 'array', 'itemType': 'string' },
466
- customWebhooks: { 'type': 'array', 'itemType': 'string' },
467
- dingWebhooks: { 'type': 'array', 'itemType': 'string' },
468
- fsWebhooks: { 'type': 'array', 'itemType': 'string' },
469
- groups: { 'type': 'array', 'itemType': 'string' },
470
- slackWebhooks: { 'type': 'array', 'itemType': 'string' },
471
- wxWebhooks: { 'type': 'array', 'itemType': 'string' },
472
- };
473
- }
122
+ if (!$dara.isNull(request.workspace)) {
123
+ body["workspace"] = request.workspace;
124
+ }
474
125
 
475
- constructor(map?: { [key: string]: any }) {
476
- super(map);
126
+ let req = new $OpenApiUtil.OpenApiRequest({
127
+ headers: headers,
128
+ body: OpenApiUtil.parseToMap(body),
129
+ });
130
+ let params = new $OpenApiUtil.Params({
131
+ action: "CreatePrometheusInstance",
132
+ version: "2024-03-30",
133
+ protocol: "HTTPS",
134
+ pathname: `/prometheus-instances`,
135
+ method: "POST",
136
+ authType: "AK",
137
+ style: "ROA",
138
+ reqBodyType: "json",
139
+ bodyType: "json",
140
+ });
141
+ return $dara.cast<$_model.CreatePrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.CreatePrometheusInstanceResponse({}));
477
142
  }
478
- }
479
143
 
480
- export class AlertRuleQuery extends $tea.Model {
481
- duration?: number;
482
- expr?: string;
483
- firstJoin?: AlertRuleSlsQueryJoin;
484
- groupFieldList?: string[];
485
- groupType?: string;
486
- queries?: AlertRuleQueryQueries[];
487
- secondJoin?: AlertRuleSlsQueryJoin;
488
144
  /**
489
- * @remarks
490
- * 查询类型
145
+ * 创建Prometheus监控实例
491
146
  *
492
- * This parameter is required.
147
+ * @param request - CreatePrometheusInstanceRequest
148
+ * @returns CreatePrometheusInstanceResponse
493
149
  */
494
- type?: string;
495
- static names(): { [key: string]: string } {
496
- return {
497
- duration: 'duration',
498
- expr: 'expr',
499
- firstJoin: 'firstJoin',
500
- groupFieldList: 'groupFieldList',
501
- groupType: 'groupType',
502
- queries: 'queries',
503
- secondJoin: 'secondJoin',
504
- type: 'type',
505
- };
506
- }
507
-
508
- static types(): { [key: string]: any } {
509
- return {
510
- duration: 'number',
511
- expr: 'string',
512
- firstJoin: AlertRuleSlsQueryJoin,
513
- groupFieldList: { 'type': 'array', 'itemType': 'string' },
514
- groupType: 'string',
515
- queries: { 'type': 'array', 'itemType': AlertRuleQueryQueries },
516
- secondJoin: AlertRuleSlsQueryJoin,
517
- type: 'string',
518
- };
519
- }
520
-
521
- constructor(map?: { [key: string]: any }) {
522
- super(map);
523
- }
524
- }
525
-
526
- export class AlertRuleSend extends $tea.Model {
527
- action?: AlertRuleAction;
528
- notification?: AlertRuleNotification;
529
- static names(): { [key: string]: string } {
530
- return {
531
- action: 'action',
532
- notification: 'notification',
533
- };
534
- }
535
-
536
- static types(): { [key: string]: any } {
537
- return {
538
- action: AlertRuleAction,
539
- notification: AlertRuleNotification,
540
- };
541
- }
542
-
543
- constructor(map?: { [key: string]: any }) {
544
- super(map);
150
+ async createPrometheusInstance(request: $_model.CreatePrometheusInstanceRequest): Promise<$_model.CreatePrometheusInstanceResponse> {
151
+ let runtime = new $dara.RuntimeOptions({ });
152
+ let headers : {[key: string ]: string} = { };
153
+ return await this.createPrometheusInstanceWithOptions(request, headers, runtime);
545
154
  }
546
- }
547
155
 
548
- export class AlertRuleSlsQueryJoin extends $tea.Model {
549
- conditions?: AlertRuleSlsQueryJoinConditions[];
550
156
  /**
551
- * @remarks
552
- * 集合操作类型。
553
- * ● CrossJoin: 笛卡尔积
554
- * ● FullJoin:全联
555
- * ● InnerJoin:内联
556
- * ● LeftExclude: 左斥
557
- * ● RightExclude:右斥
558
- * ● LeftJoin:左联
559
- * ● RightJoin:右联
560
- * ● NoJoin:不合并
561
- * ● Concat: 拼接
562
- * https://help.aliyun.com/zh/sls/user-guide/set-query-statistics-statement
157
+ * 创建Umodel配置
563
158
  *
564
- * This parameter is required.
565
- */
566
- type?: string;
567
- static names(): { [key: string]: string } {
568
- return {
569
- conditions: 'conditions',
570
- type: 'type',
571
- };
572
- }
573
-
574
- static types(): { [key: string]: any } {
575
- return {
576
- conditions: { 'type': 'array', 'itemType': AlertRuleSlsQueryJoinConditions },
577
- type: 'string',
578
- };
579
- }
580
-
581
- constructor(map?: { [key: string]: any }) {
582
- super(map);
583
- }
584
- }
585
-
586
- export class AlertRuleTimeSpan extends $tea.Model {
587
- dayOfWeek?: number[];
588
- endTime?: string;
589
- gmtOffset?: string;
590
- startTime?: string;
591
- static names(): { [key: string]: string } {
592
- return {
593
- dayOfWeek: 'dayOfWeek',
594
- endTime: 'endTime',
595
- gmtOffset: 'gmtOffset',
596
- startTime: 'startTime',
597
- };
598
- }
599
-
600
- static types(): { [key: string]: any } {
601
- return {
602
- dayOfWeek: { 'type': 'array', 'itemType': 'number' },
603
- endTime: 'string',
604
- gmtOffset: 'string',
605
- startTime: 'string',
606
- };
607
- }
608
-
609
- constructor(map?: { [key: string]: any }) {
610
- super(map);
611
- }
612
- }
613
-
614
- export class FilterSetting extends $tea.Model {
615
- conditions?: FilterSettingConditions[];
616
- expression?: string;
617
- relation?: string;
618
- static names(): { [key: string]: string } {
619
- return {
620
- conditions: 'conditions',
621
- expression: 'expression',
622
- relation: 'relation',
623
- };
624
- }
625
-
626
- static types(): { [key: string]: any } {
627
- return {
628
- conditions: { 'type': 'array', 'itemType': FilterSettingConditions },
629
- expression: 'string',
630
- relation: 'string',
631
- };
632
- }
633
-
634
- constructor(map?: { [key: string]: any }) {
635
- super(map);
636
- }
637
- }
638
-
639
- export class MaintainWindowForModify extends $tea.Model {
640
- description?: string;
641
- effective?: string;
642
- endTime?: string;
643
- filterSetting?: FilterSetting;
644
- /**
645
- * @remarks
646
- * This parameter is required.
647
- */
648
- maintainWindowName?: string;
649
- startTime?: string;
650
- static names(): { [key: string]: string } {
651
- return {
652
- description: 'description',
653
- effective: 'effective',
654
- endTime: 'endTime',
655
- filterSetting: 'filterSetting',
656
- maintainWindowName: 'maintainWindowName',
657
- startTime: 'startTime',
658
- };
659
- }
660
-
661
- static types(): { [key: string]: any } {
662
- return {
663
- description: 'string',
664
- effective: 'string',
665
- endTime: 'string',
666
- filterSetting: FilterSetting,
667
- maintainWindowName: 'string',
668
- startTime: 'string',
669
- };
670
- }
671
-
672
- constructor(map?: { [key: string]: any }) {
673
- super(map);
674
- }
675
- }
676
-
677
- export class MaintainWindowForView extends $tea.Model {
678
- createTime?: string;
679
- description?: string;
680
- effective?: string;
681
- enable?: boolean;
682
- endTime?: string;
683
- filterSetting?: FilterSetting;
684
- maintainWindowId?: string;
685
- /**
686
- * @remarks
687
- * This parameter is required.
688
- */
689
- maintainWindowName?: string;
690
- startTime?: string;
691
- updateTime?: string;
692
- userId?: string;
693
- workspace?: string;
694
- static names(): { [key: string]: string } {
695
- return {
696
- createTime: 'createTime',
697
- description: 'description',
698
- effective: 'effective',
699
- enable: 'enable',
700
- endTime: 'endTime',
701
- filterSetting: 'filterSetting',
702
- maintainWindowId: 'maintainWindowId',
703
- maintainWindowName: 'maintainWindowName',
704
- startTime: 'startTime',
705
- updateTime: 'updateTime',
706
- userId: 'userId',
707
- workspace: 'workspace',
708
- };
709
- }
710
-
711
- static types(): { [key: string]: any } {
712
- return {
713
- createTime: 'string',
714
- description: 'string',
715
- effective: 'string',
716
- enable: 'boolean',
717
- endTime: 'string',
718
- filterSetting: FilterSetting,
719
- maintainWindowId: 'string',
720
- maintainWindowName: 'string',
721
- startTime: 'string',
722
- updateTime: 'string',
723
- userId: 'string',
724
- workspace: 'string',
725
- };
726
- }
727
-
728
- constructor(map?: { [key: string]: any }) {
729
- super(map);
730
- }
731
- }
732
-
733
- export class NotifyStrategyForModify extends $tea.Model {
734
- customTemplateEntries?: NotifyStrategyForModifyCustomTemplateEntries[];
735
- description?: string;
736
- /**
737
- * @remarks
738
- * This parameter is required.
739
- */
740
- groupingSetting?: NotifyStrategyForModifyGroupingSetting;
741
- ignoreRestoredNotification?: boolean;
742
- /**
743
- * @remarks
744
- * This parameter is required.
745
- */
746
- notifyStrategyName?: string;
747
- /**
748
- * @remarks
749
- * This parameter is required.
159
+ * @param request - CreateUmodelRequest
160
+ * @param headers - map
161
+ * @param runtime - runtime options for this request RuntimeOptions
162
+ * @returns CreateUmodelResponse
750
163
  */
751
- routes?: NotifyStrategyForModifyRoutes[];
752
- static names(): { [key: string]: string } {
753
- return {
754
- customTemplateEntries: 'customTemplateEntries',
755
- description: 'description',
756
- groupingSetting: 'groupingSetting',
757
- ignoreRestoredNotification: 'ignoreRestoredNotification',
758
- notifyStrategyName: 'notifyStrategyName',
759
- routes: 'routes',
760
- };
761
- }
164
+ async createUmodelWithOptions(workspace: string, request: $_model.CreateUmodelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUmodelResponse> {
165
+ request.validate();
166
+ let body : {[key: string ]: any} = { };
167
+ if (!$dara.isNull(request.commonSchemaRef)) {
168
+ body["commonSchemaRef"] = request.commonSchemaRef;
169
+ }
762
170
 
763
- static types(): { [key: string]: any } {
764
- return {
765
- customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForModifyCustomTemplateEntries },
766
- description: 'string',
767
- groupingSetting: NotifyStrategyForModifyGroupingSetting,
768
- ignoreRestoredNotification: 'boolean',
769
- notifyStrategyName: 'string',
770
- routes: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutes },
771
- };
772
- }
171
+ if (!$dara.isNull(request.description)) {
172
+ body["description"] = request.description;
173
+ }
773
174
 
774
- constructor(map?: { [key: string]: any }) {
775
- super(map);
175
+ let req = new $OpenApiUtil.OpenApiRequest({
176
+ headers: headers,
177
+ body: OpenApiUtil.parseToMap(body),
178
+ });
179
+ let params = new $OpenApiUtil.Params({
180
+ action: "CreateUmodel",
181
+ version: "2024-03-30",
182
+ protocol: "HTTPS",
183
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
184
+ method: "POST",
185
+ authType: "AK",
186
+ style: "ROA",
187
+ reqBodyType: "json",
188
+ bodyType: "json",
189
+ });
190
+ return $dara.cast<$_model.CreateUmodelResponse>(await this.callApi(params, req, runtime), new $_model.CreateUmodelResponse({}));
776
191
  }
777
- }
778
192
 
779
- export class NotifyStrategyForView extends $tea.Model {
780
- createTime?: string;
781
- customTemplateEntries?: NotifyStrategyForViewCustomTemplateEntries[];
782
- description?: string;
783
- enable?: boolean;
784
- /**
785
- * @remarks
786
- * This parameter is required.
787
- */
788
- groupingSetting?: NotifyStrategyForViewGroupingSetting;
789
- ignoreRestoredNotification?: boolean;
790
- notifyStrategyId?: string;
791
- /**
792
- * @remarks
793
- * This parameter is required.
794
- */
795
- notifyStrategyName?: string;
796
193
  /**
797
- * @remarks
798
- * This parameter is required.
194
+ * 创建Umodel配置
195
+ *
196
+ * @param request - CreateUmodelRequest
197
+ * @returns CreateUmodelResponse
799
198
  */
800
- routes?: NotifyStrategyForViewRoutes[];
801
- updateTime?: string;
802
- userId?: string;
803
- workspace?: string;
804
- static names(): { [key: string]: string } {
805
- return {
806
- createTime: 'createTime',
807
- customTemplateEntries: 'customTemplateEntries',
808
- description: 'description',
809
- enable: 'enable',
810
- groupingSetting: 'groupingSetting',
811
- ignoreRestoredNotification: 'ignoreRestoredNotification',
812
- notifyStrategyId: 'notifyStrategyId',
813
- notifyStrategyName: 'notifyStrategyName',
814
- routes: 'routes',
815
- updateTime: 'updateTime',
816
- userId: 'userId',
817
- workspace: 'workspace',
818
- };
819
- }
820
-
821
- static types(): { [key: string]: any } {
822
- return {
823
- createTime: 'string',
824
- customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForViewCustomTemplateEntries },
825
- description: 'string',
826
- enable: 'boolean',
827
- groupingSetting: NotifyStrategyForViewGroupingSetting,
828
- ignoreRestoredNotification: 'boolean',
829
- notifyStrategyId: 'string',
830
- notifyStrategyName: 'string',
831
- routes: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutes },
832
- updateTime: 'string',
833
- userId: 'string',
834
- workspace: 'string',
835
- };
836
- }
837
-
838
- constructor(map?: { [key: string]: any }) {
839
- super(map);
199
+ async createUmodel(workspace: string, request: $_model.CreateUmodelRequest): Promise<$_model.CreateUmodelResponse> {
200
+ let runtime = new $dara.RuntimeOptions({ });
201
+ let headers : {[key: string ]: string} = { };
202
+ return await this.createUmodelWithOptions(workspace, request, headers, runtime);
840
203
  }
841
- }
842
204
 
843
- export class SubscriptionForModify extends $tea.Model {
844
- description?: string;
845
- filterSetting?: FilterSetting;
846
- notifyStrategyId?: string;
847
- pushingSetting?: SubscriptionForModifyPushingSetting;
848
205
  /**
849
- * @remarks
850
- * This parameter is required.
206
+ * 删除EntityStore相关存储
207
+ *
208
+ * @param headers - map
209
+ * @param runtime - runtime options for this request RuntimeOptions
210
+ * @returns DeleteEntityStoreResponse
851
211
  */
852
- subscriptionName?: string;
853
- static names(): { [key: string]: string } {
854
- return {
855
- description: 'description',
856
- filterSetting: 'filterSetting',
857
- notifyStrategyId: 'notifyStrategyId',
858
- pushingSetting: 'pushingSetting',
859
- subscriptionName: 'subscriptionName',
860
- };
861
- }
862
-
863
- static types(): { [key: string]: any } {
864
- return {
865
- description: 'string',
866
- filterSetting: FilterSetting,
867
- notifyStrategyId: 'string',
868
- pushingSetting: SubscriptionForModifyPushingSetting,
869
- subscriptionName: 'string',
870
- };
871
- }
872
-
873
- constructor(map?: { [key: string]: any }) {
874
- super(map);
212
+ async deleteEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEntityStoreResponse> {
213
+ let req = new $OpenApiUtil.OpenApiRequest({
214
+ headers: headers,
215
+ });
216
+ let params = new $OpenApiUtil.Params({
217
+ action: "DeleteEntityStore",
218
+ version: "2024-03-30",
219
+ protocol: "HTTPS",
220
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
221
+ method: "DELETE",
222
+ authType: "AK",
223
+ style: "ROA",
224
+ reqBodyType: "json",
225
+ bodyType: "json",
226
+ });
227
+ return $dara.cast<$_model.DeleteEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEntityStoreResponse({}));
875
228
  }
876
- }
877
229
 
878
- export class SubscriptionForView extends $tea.Model {
879
- createTime?: string;
880
- description?: string;
881
- enable?: boolean;
882
- filterSetting?: FilterSetting;
883
- notifyStrategyId?: string;
884
- pushingSetting?: SubscriptionForViewPushingSetting;
885
- subscriptionId?: string;
886
230
  /**
887
- * @remarks
888
- * This parameter is required.
231
+ * 删除EntityStore相关存储
232
+ * @returns DeleteEntityStoreResponse
889
233
  */
890
- subscriptionName?: string;
891
- updateTime?: string;
892
- userId?: string;
893
- workspace?: string;
894
- static names(): { [key: string]: string } {
895
- return {
896
- createTime: 'createTime',
897
- description: 'description',
898
- enable: 'enable',
899
- filterSetting: 'filterSetting',
900
- notifyStrategyId: 'notifyStrategyId',
901
- pushingSetting: 'pushingSetting',
902
- subscriptionId: 'subscriptionId',
903
- subscriptionName: 'subscriptionName',
904
- updateTime: 'updateTime',
905
- userId: 'userId',
906
- workspace: 'workspace',
907
- };
908
- }
909
-
910
- static types(): { [key: string]: any } {
911
- return {
912
- createTime: 'string',
913
- description: 'string',
914
- enable: 'boolean',
915
- filterSetting: FilterSetting,
916
- notifyStrategyId: 'string',
917
- pushingSetting: SubscriptionForViewPushingSetting,
918
- subscriptionId: 'string',
919
- subscriptionName: 'string',
920
- updateTime: 'string',
921
- userId: 'string',
922
- workspace: 'string',
923
- };
924
- }
925
-
926
- constructor(map?: { [key: string]: any }) {
927
- super(map);
928
- }
929
- }
930
-
931
- export class TransformAction extends $tea.Model {
932
- filterSetting?: FilterSetting;
933
- labelKey?: string;
934
- mapping?: { [key: string]: string };
935
- regExp?: string;
936
- source?: string;
937
- target?: string;
938
- type?: string;
939
- value?: string;
940
- variable?: string;
941
- static names(): { [key: string]: string } {
942
- return {
943
- filterSetting: 'filterSetting',
944
- labelKey: 'labelKey',
945
- mapping: 'mapping',
946
- regExp: 'regExp',
947
- source: 'source',
948
- target: 'target',
949
- type: 'type',
950
- value: 'value',
951
- variable: 'variable',
952
- };
953
- }
954
-
955
- static types(): { [key: string]: any } {
956
- return {
957
- filterSetting: FilterSetting,
958
- labelKey: 'string',
959
- mapping: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
960
- regExp: 'string',
961
- source: 'string',
962
- target: 'string',
963
- type: 'string',
964
- value: 'string',
965
- variable: 'string',
966
- };
967
- }
968
-
969
- constructor(map?: { [key: string]: any }) {
970
- super(map);
234
+ async deleteEntityStore(workspaceName: string): Promise<$_model.DeleteEntityStoreResponse> {
235
+ let runtime = new $dara.RuntimeOptions({ });
236
+ let headers : {[key: string ]: string} = { };
237
+ return await this.deleteEntityStoreWithOptions(workspaceName, headers, runtime);
971
238
  }
972
- }
973
239
 
974
- export class TransformerForModify extends $tea.Model {
975
- actions?: TransformAction[];
976
- description?: string;
977
- filterSetting?: FilterSetting;
978
- quitAfterMatch?: boolean;
979
- sortId?: number;
980
240
  /**
981
- * @remarks
982
- * This parameter is required.
241
+ * 删除Umodel配置信息
242
+ *
243
+ * @param headers - map
244
+ * @param runtime - runtime options for this request RuntimeOptions
245
+ * @returns DeleteUmodelResponse
983
246
  */
984
- transformerName?: string;
985
- static names(): { [key: string]: string } {
986
- return {
987
- actions: 'actions',
988
- description: 'description',
989
- filterSetting: 'filterSetting',
990
- quitAfterMatch: 'quitAfterMatch',
991
- sortId: 'sortId',
992
- transformerName: 'transformerName',
993
- };
994
- }
995
-
996
- static types(): { [key: string]: any } {
997
- return {
998
- actions: { 'type': 'array', 'itemType': TransformAction },
999
- description: 'string',
1000
- filterSetting: FilterSetting,
1001
- quitAfterMatch: 'boolean',
1002
- sortId: 'number',
1003
- transformerName: 'string',
1004
- };
1005
- }
1006
-
1007
- constructor(map?: { [key: string]: any }) {
1008
- super(map);
247
+ async deleteUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelResponse> {
248
+ let req = new $OpenApiUtil.OpenApiRequest({
249
+ headers: headers,
250
+ });
251
+ let params = new $OpenApiUtil.Params({
252
+ action: "DeleteUmodel",
253
+ version: "2024-03-30",
254
+ protocol: "HTTPS",
255
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
256
+ method: "DELETE",
257
+ authType: "AK",
258
+ style: "ROA",
259
+ reqBodyType: "json",
260
+ bodyType: "json",
261
+ });
262
+ return $dara.cast<$_model.DeleteUmodelResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelResponse({}));
1009
263
  }
1010
- }
1011
264
 
1012
- export class TransformerForView extends $tea.Model {
1013
- actions?: TransformAction[];
1014
- createTime?: string;
1015
- description?: string;
1016
- enable?: boolean;
1017
- filterSetting?: FilterSetting;
1018
- quitAfterMatch?: boolean;
1019
- sortId?: number;
1020
- transformerId?: string;
1021
265
  /**
1022
- * @remarks
1023
- * This parameter is required.
266
+ * 删除Umodel配置信息
267
+ * @returns DeleteUmodelResponse
1024
268
  */
1025
- transformerName?: string;
1026
- updateTime?: string;
1027
- userId?: string;
1028
- workspace?: string;
1029
- static names(): { [key: string]: string } {
1030
- return {
1031
- actions: 'actions',
1032
- createTime: 'createTime',
1033
- description: 'description',
1034
- enable: 'enable',
1035
- filterSetting: 'filterSetting',
1036
- quitAfterMatch: 'quitAfterMatch',
1037
- sortId: 'sortId',
1038
- transformerId: 'transformerId',
1039
- transformerName: 'transformerName',
1040
- updateTime: 'updateTime',
1041
- userId: 'userId',
1042
- workspace: 'workspace',
1043
- };
1044
- }
1045
-
1046
- static types(): { [key: string]: any } {
1047
- return {
1048
- actions: { 'type': 'array', 'itemType': TransformAction },
1049
- createTime: 'string',
1050
- description: 'string',
1051
- enable: 'boolean',
1052
- filterSetting: FilterSetting,
1053
- quitAfterMatch: 'boolean',
1054
- sortId: 'number',
1055
- transformerId: 'string',
1056
- transformerName: 'string',
1057
- updateTime: 'string',
1058
- userId: 'string',
1059
- workspace: 'string',
1060
- };
1061
- }
1062
-
1063
- constructor(map?: { [key: string]: any }) {
1064
- super(map);
1065
- }
1066
- }
1067
-
1068
- export class ListAlertActionsRequest extends $tea.Model {
1069
- alertActionIds?: string[];
1070
- alertActionName?: string;
1071
- pageNumber?: number;
1072
- pageSize?: number;
1073
- type?: string;
1074
- static names(): { [key: string]: string } {
1075
- return {
1076
- alertActionIds: 'alertActionIds',
1077
- alertActionName: 'alertActionName',
1078
- pageNumber: 'pageNumber',
1079
- pageSize: 'pageSize',
1080
- type: 'type',
1081
- };
1082
- }
1083
-
1084
- static types(): { [key: string]: any } {
1085
- return {
1086
- alertActionIds: { 'type': 'array', 'itemType': 'string' },
1087
- alertActionName: 'string',
1088
- pageNumber: 'number',
1089
- pageSize: 'number',
1090
- type: 'string',
1091
- };
1092
- }
1093
-
1094
- constructor(map?: { [key: string]: any }) {
1095
- super(map);
1096
- }
1097
- }
1098
-
1099
- export class ListAlertActionsShrinkRequest extends $tea.Model {
1100
- alertActionIdsShrink?: string;
1101
- alertActionName?: string;
1102
- pageNumber?: number;
1103
- pageSize?: number;
1104
- type?: string;
1105
- static names(): { [key: string]: string } {
1106
- return {
1107
- alertActionIdsShrink: 'alertActionIds',
1108
- alertActionName: 'alertActionName',
1109
- pageNumber: 'pageNumber',
1110
- pageSize: 'pageSize',
1111
- type: 'type',
1112
- };
1113
- }
1114
-
1115
- static types(): { [key: string]: any } {
1116
- return {
1117
- alertActionIdsShrink: 'string',
1118
- alertActionName: 'string',
1119
- pageNumber: 'number',
1120
- pageSize: 'number',
1121
- type: 'string',
1122
- };
1123
- }
1124
-
1125
- constructor(map?: { [key: string]: any }) {
1126
- super(map);
1127
- }
1128
- }
1129
-
1130
- export class ListAlertActionsResponseBody extends $tea.Model {
1131
- alertActions?: ListAlertActionsResponseBodyAlertActions[];
1132
- pageNumber?: number;
1133
- pageSize?: number;
1134
- requestId?: string;
1135
- total?: number;
1136
- static names(): { [key: string]: string } {
1137
- return {
1138
- alertActions: 'alertActions',
1139
- pageNumber: 'pageNumber',
1140
- pageSize: 'pageSize',
1141
- requestId: 'requestId',
1142
- total: 'total',
1143
- };
1144
- }
1145
-
1146
- static types(): { [key: string]: any } {
1147
- return {
1148
- alertActions: { 'type': 'array', 'itemType': ListAlertActionsResponseBodyAlertActions },
1149
- pageNumber: 'number',
1150
- pageSize: 'number',
1151
- requestId: 'string',
1152
- total: 'number',
1153
- };
1154
- }
1155
-
1156
- constructor(map?: { [key: string]: any }) {
1157
- super(map);
1158
- }
1159
- }
1160
-
1161
- export class ListAlertActionsResponse extends $tea.Model {
1162
- headers?: { [key: string]: string };
1163
- statusCode?: number;
1164
- body?: ListAlertActionsResponseBody;
1165
- static names(): { [key: string]: string } {
1166
- return {
1167
- headers: 'headers',
1168
- statusCode: 'statusCode',
1169
- body: 'body',
1170
- };
1171
- }
1172
-
1173
- static types(): { [key: string]: any } {
1174
- return {
1175
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1176
- statusCode: 'number',
1177
- body: ListAlertActionsResponseBody,
1178
- };
1179
- }
1180
-
1181
- constructor(map?: { [key: string]: any }) {
1182
- super(map);
1183
- }
1184
- }
1185
-
1186
- export class AlertRuleAlertMetricFilterDefSupportedOpts extends $tea.Model {
1187
- displayNameCn?: string;
1188
- displayNameEn?: string;
1189
- value?: string;
1190
- static names(): { [key: string]: string } {
1191
- return {
1192
- displayNameCn: 'displayNameCn',
1193
- displayNameEn: 'displayNameEn',
1194
- value: 'value',
1195
- };
1196
- }
1197
-
1198
- static types(): { [key: string]: any } {
1199
- return {
1200
- displayNameCn: 'string',
1201
- displayNameEn: 'string',
1202
- value: 'string',
1203
- };
1204
- }
1205
-
1206
- constructor(map?: { [key: string]: any }) {
1207
- super(map);
1208
- }
1209
- }
1210
-
1211
- export class AlertRuleAlertMetricParamDefValues extends $tea.Model {
1212
- labelCn?: string;
1213
- labelEn?: string;
1214
- value?: string;
1215
- static names(): { [key: string]: string } {
1216
- return {
1217
- labelCn: 'labelCn',
1218
- labelEn: 'labelEn',
1219
- value: 'value',
1220
- };
1221
- }
1222
-
1223
- static types(): { [key: string]: any } {
1224
- return {
1225
- labelCn: 'string',
1226
- labelEn: 'string',
1227
- value: 'string',
1228
- };
1229
- }
1230
-
1231
- constructor(map?: { [key: string]: any }) {
1232
- super(map);
1233
- }
1234
- }
1235
-
1236
- export class AlertRuleConditionCaseList extends $tea.Model {
1237
- condition?: string;
1238
- countCondition?: string;
1239
- level?: string;
1240
- type?: string;
1241
- static names(): { [key: string]: string } {
1242
- return {
1243
- condition: 'condition',
1244
- countCondition: 'countCondition',
1245
- level: 'level',
1246
- type: 'type',
1247
- };
1248
- }
1249
-
1250
- static types(): { [key: string]: any } {
1251
- return {
1252
- condition: 'string',
1253
- countCondition: 'string',
1254
- level: 'string',
1255
- type: 'string',
1256
- };
1257
- }
1258
-
1259
- constructor(map?: { [key: string]: any }) {
1260
- super(map);
1261
- }
1262
- }
1263
-
1264
- export class AlertRuleConditionCompareListValueLevelList extends $tea.Model {
1265
- level?: string;
1266
- value?: number;
1267
- static names(): { [key: string]: string } {
1268
- return {
1269
- level: 'level',
1270
- value: 'value',
1271
- };
1272
- }
1273
-
1274
- static types(): { [key: string]: any } {
1275
- return {
1276
- level: 'string',
1277
- value: 'number',
1278
- };
1279
- }
1280
-
1281
- constructor(map?: { [key: string]: any }) {
1282
- super(map);
1283
- }
1284
- }
1285
-
1286
- export class AlertRuleConditionCompareList extends $tea.Model {
1287
- aggregate?: string;
1288
- oper?: string;
1289
- value?: number;
1290
- valueLevelList?: AlertRuleConditionCompareListValueLevelList[];
1291
- yoyTimeUnit?: string;
1292
- yoyTimeValue?: number;
1293
- static names(): { [key: string]: string } {
1294
- return {
1295
- aggregate: 'aggregate',
1296
- oper: 'oper',
1297
- value: 'value',
1298
- valueLevelList: 'valueLevelList',
1299
- yoyTimeUnit: 'yoyTimeUnit',
1300
- yoyTimeValue: 'yoyTimeValue',
1301
- };
1302
- }
1303
-
1304
- static types(): { [key: string]: any } {
1305
- return {
1306
- aggregate: 'string',
1307
- oper: 'string',
1308
- value: 'number',
1309
- valueLevelList: { 'type': 'array', 'itemType': AlertRuleConditionCompareListValueLevelList },
1310
- yoyTimeUnit: 'string',
1311
- yoyTimeValue: 'number',
1312
- };
1313
- }
1314
-
1315
- constructor(map?: { [key: string]: any }) {
1316
- super(map);
1317
- }
1318
- }
1319
-
1320
- export class AlertRuleDataSourceDsList extends $tea.Model {
1321
- project?: string;
1322
- regionId?: string;
1323
- store?: string;
1324
- type?: string;
1325
- static names(): { [key: string]: string } {
1326
- return {
1327
- project: 'project',
1328
- regionId: 'regionId',
1329
- store: 'store',
1330
- type: 'type',
1331
- };
1332
- }
1333
-
1334
- static types(): { [key: string]: any } {
1335
- return {
1336
- project: 'string',
1337
- regionId: 'string',
1338
- store: 'string',
1339
- type: 'string',
1340
- };
269
+ async deleteUmodel(workspace: string): Promise<$_model.DeleteUmodelResponse> {
270
+ let runtime = new $dara.RuntimeOptions({ });
271
+ let headers : {[key: string ]: string} = { };
272
+ return await this.deleteUmodelWithOptions(workspace, headers, runtime);
1341
273
  }
1342
274
 
1343
- constructor(map?: { [key: string]: any }) {
1344
- super(map);
1345
- }
1346
- }
1347
-
1348
- export class AlertRuleQueryQueries extends $tea.Model {
1349
- duration?: number;
1350
- /**
1351
- * @remarks
1352
- * 时间偏移结束时间(相对),如果指定了start、end,则不指定window。
1353
- */
1354
- end?: number;
1355
275
  /**
1356
- * @remarks
1357
- * 查询表达式
276
+ * 删除 Umodel Elements
1358
277
  *
1359
- * This parameter is required.
1360
- */
1361
- expr?: string;
1362
- /**
1363
- * @remarks
1364
- * sls查询的时间偏移开始时间(相对),如果指定了start、end,则不指定window。 例如:start=15, timeUnit=minute,表示15分钟前
1365
- */
1366
- start?: number;
1367
- /**
1368
- * @remarks
1369
- * start和end、window的时间单位: day/hour/minute/second
1370
- */
1371
- timeUnit?: string;
1372
- /**
1373
- * @remarks
1374
- * 整点时间查询区间。 如果指定了window则不指定start、end
1375
- */
1376
- window?: string;
1377
- static names(): { [key: string]: string } {
1378
- return {
1379
- duration: 'duration',
1380
- end: 'end',
1381
- expr: 'expr',
1382
- start: 'start',
1383
- timeUnit: 'timeUnit',
1384
- window: 'window',
1385
- };
1386
- }
1387
-
1388
- static types(): { [key: string]: any } {
1389
- return {
1390
- duration: 'number',
1391
- end: 'number',
1392
- expr: 'string',
1393
- start: 'number',
1394
- timeUnit: 'string',
1395
- window: 'string',
1396
- };
1397
- }
1398
-
1399
- constructor(map?: { [key: string]: any }) {
1400
- super(map);
1401
- }
1402
- }
1403
-
1404
- export class AlertRuleSlsQueryJoinConditions extends $tea.Model {
1405
- /**
1406
- * @remarks
1407
- * 条件的左操作参数,格式为$<query_idx>.<结果集字段名>
1408
- */
1409
- firstField?: string;
1410
- /**
1411
- * @remarks
1412
- * <, >, ==, !=, <=, >=
1413
- */
1414
- oper?: string;
1415
- /**
1416
- * @remarks
1417
- * 条件的右操作参数,格式为$<query_idx>.<结果集字段名>
278
+ * @param request - DeleteUmodelDataRequest
279
+ * @param headers - map
280
+ * @param runtime - runtime options for this request RuntimeOptions
281
+ * @returns DeleteUmodelDataResponse
1418
282
  */
1419
- secondField?: string;
1420
- static names(): { [key: string]: string } {
1421
- return {
1422
- firstField: 'firstField',
1423
- oper: 'oper',
1424
- secondField: 'secondField',
1425
- };
1426
- }
1427
-
1428
- static types(): { [key: string]: any } {
1429
- return {
1430
- firstField: 'string',
1431
- oper: 'string',
1432
- secondField: 'string',
1433
- };
1434
- }
1435
-
1436
- constructor(map?: { [key: string]: any }) {
1437
- super(map);
1438
- }
1439
- }
283
+ async deleteUmodelDataWithOptions(workspace: string, request: $_model.DeleteUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelDataResponse> {
284
+ request.validate();
285
+ let query : {[key: string ]: any} = { };
286
+ if (!$dara.isNull(request.domain)) {
287
+ query["domain"] = request.domain;
288
+ }
1440
289
 
1441
- export class FilterSettingConditions extends $tea.Model {
1442
- field?: string;
1443
- op?: string;
1444
- value?: string;
1445
- static names(): { [key: string]: string } {
1446
- return {
1447
- field: 'field',
1448
- op: 'op',
1449
- value: 'value',
1450
- };
1451
- }
290
+ if (!$dara.isNull(request.kind)) {
291
+ query["kind"] = request.kind;
292
+ }
1452
293
 
1453
- static types(): { [key: string]: any } {
1454
- return {
1455
- field: 'string',
1456
- op: 'string',
1457
- value: 'string',
1458
- };
1459
- }
294
+ if (!$dara.isNull(request.name)) {
295
+ query["name"] = request.name;
296
+ }
1460
297
 
1461
- constructor(map?: { [key: string]: any }) {
1462
- super(map);
298
+ let req = new $OpenApiUtil.OpenApiRequest({
299
+ headers: headers,
300
+ query: OpenApiUtil.query(query),
301
+ });
302
+ let params = new $OpenApiUtil.Params({
303
+ action: "DeleteUmodelData",
304
+ version: "2024-03-30",
305
+ protocol: "HTTPS",
306
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/data`,
307
+ method: "DELETE",
308
+ authType: "AK",
309
+ style: "ROA",
310
+ reqBodyType: "json",
311
+ bodyType: "json",
312
+ });
313
+ return $dara.cast<$_model.DeleteUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelDataResponse({}));
1463
314
  }
1464
- }
1465
315
 
1466
- export class NotifyStrategyForModifyCustomTemplateEntries extends $tea.Model {
1467
- /**
1468
- * @remarks
1469
- * This parameter is required.
1470
- */
1471
- targetType?: string;
1472
316
  /**
1473
- * @remarks
1474
- * This parameter is required.
317
+ * 删除 Umodel Elements
318
+ *
319
+ * @param request - DeleteUmodelDataRequest
320
+ * @returns DeleteUmodelDataResponse
1475
321
  */
1476
- templateUuid?: string;
1477
- static names(): { [key: string]: string } {
1478
- return {
1479
- targetType: 'targetType',
1480
- templateUuid: 'templateUuid',
1481
- };
1482
- }
1483
-
1484
- static types(): { [key: string]: any } {
1485
- return {
1486
- targetType: 'string',
1487
- templateUuid: 'string',
1488
- };
1489
- }
1490
-
1491
- constructor(map?: { [key: string]: any }) {
1492
- super(map);
1493
- }
1494
- }
1495
-
1496
- export class NotifyStrategyForModifyGroupingSetting extends $tea.Model {
1497
- groupingKeys?: string[];
1498
- periodMin?: number;
1499
- silenceSec?: number;
1500
- times?: number;
1501
- static names(): { [key: string]: string } {
1502
- return {
1503
- groupingKeys: 'groupingKeys',
1504
- periodMin: 'periodMin',
1505
- silenceSec: 'silenceSec',
1506
- times: 'times',
1507
- };
1508
- }
1509
-
1510
- static types(): { [key: string]: any } {
1511
- return {
1512
- groupingKeys: { 'type': 'array', 'itemType': 'string' },
1513
- periodMin: 'number',
1514
- silenceSec: 'number',
1515
- times: 'number',
1516
- };
1517
- }
1518
-
1519
- constructor(map?: { [key: string]: any }) {
1520
- super(map);
322
+ async deleteUmodelData(workspace: string, request: $_model.DeleteUmodelDataRequest): Promise<$_model.DeleteUmodelDataResponse> {
323
+ let runtime = new $dara.RuntimeOptions({ });
324
+ let headers : {[key: string ]: string} = { };
325
+ return await this.deleteUmodelDataWithOptions(workspace, request, headers, runtime);
1521
326
  }
1522
- }
1523
327
 
1524
- export class NotifyStrategyForModifyRoutesChannels extends $tea.Model {
1525
- /**
1526
- * @remarks
1527
- * This parameter is required.
1528
- */
1529
- channelType?: string;
1530
- enabledSubChannels?: string[];
1531
328
  /**
1532
- * @remarks
1533
- * This parameter is required.
329
+ * 删除工作空间
330
+ *
331
+ * @param headers - map
332
+ * @param runtime - runtime options for this request RuntimeOptions
333
+ * @returns DeleteWorkspaceResponse
1534
334
  */
1535
- receivers?: string[];
1536
- static names(): { [key: string]: string } {
1537
- return {
1538
- channelType: 'channelType',
1539
- enabledSubChannels: 'enabledSubChannels',
1540
- receivers: 'receivers',
1541
- };
1542
- }
1543
-
1544
- static types(): { [key: string]: any } {
1545
- return {
1546
- channelType: 'string',
1547
- enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
1548
- receivers: { 'type': 'array', 'itemType': 'string' },
1549
- };
1550
- }
1551
-
1552
- constructor(map?: { [key: string]: any }) {
1553
- super(map);
1554
- }
1555
- }
1556
-
1557
- export class NotifyStrategyForModifyRoutesEffectTimeRange extends $tea.Model {
1558
- dayInWeek?: number[];
1559
- endTimeInMinute?: number;
1560
- startTimeInMinute?: number;
1561
- timeZone?: string;
1562
- static names(): { [key: string]: string } {
1563
- return {
1564
- dayInWeek: 'dayInWeek',
1565
- endTimeInMinute: 'endTimeInMinute',
1566
- startTimeInMinute: 'startTimeInMinute',
1567
- timeZone: 'timeZone',
1568
- };
1569
- }
1570
-
1571
- static types(): { [key: string]: any } {
1572
- return {
1573
- dayInWeek: { 'type': 'array', 'itemType': 'number' },
1574
- endTimeInMinute: 'number',
1575
- startTimeInMinute: 'number',
1576
- timeZone: 'string',
1577
- };
1578
- }
1579
-
1580
- constructor(map?: { [key: string]: any }) {
1581
- super(map);
1582
- }
1583
- }
1584
-
1585
- export class NotifyStrategyForModifyRoutes extends $tea.Model {
1586
- channels?: NotifyStrategyForModifyRoutesChannels[];
1587
- effectTimeRange?: NotifyStrategyForModifyRoutesEffectTimeRange;
1588
- filterSetting?: FilterSetting;
1589
- severities?: string[];
1590
- static names(): { [key: string]: string } {
1591
- return {
1592
- channels: 'channels',
1593
- effectTimeRange: 'effectTimeRange',
1594
- filterSetting: 'filterSetting',
1595
- severities: 'severities',
1596
- };
1597
- }
1598
-
1599
- static types(): { [key: string]: any } {
1600
- return {
1601
- channels: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutesChannels },
1602
- effectTimeRange: NotifyStrategyForModifyRoutesEffectTimeRange,
1603
- filterSetting: FilterSetting,
1604
- severities: { 'type': 'array', 'itemType': 'string' },
1605
- };
1606
- }
1607
-
1608
- constructor(map?: { [key: string]: any }) {
1609
- super(map);
335
+ async deleteWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteWorkspaceResponse> {
336
+ let req = new $OpenApiUtil.OpenApiRequest({
337
+ headers: headers,
338
+ });
339
+ let params = new $OpenApiUtil.Params({
340
+ action: "DeleteWorkspace",
341
+ version: "2024-03-30",
342
+ protocol: "HTTPS",
343
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
344
+ method: "DELETE",
345
+ authType: "AK",
346
+ style: "ROA",
347
+ reqBodyType: "json",
348
+ bodyType: "json",
349
+ });
350
+ return $dara.cast<$_model.DeleteWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteWorkspaceResponse({}));
1610
351
  }
1611
- }
1612
352
 
1613
- export class NotifyStrategyForViewCustomTemplateEntries extends $tea.Model {
1614
- /**
1615
- * @remarks
1616
- * This parameter is required.
1617
- */
1618
- targetType?: string;
1619
353
  /**
1620
- * @remarks
1621
- * This parameter is required.
354
+ * 删除工作空间
355
+ * @returns DeleteWorkspaceResponse
1622
356
  */
1623
- templateUuid?: string;
1624
- static names(): { [key: string]: string } {
1625
- return {
1626
- targetType: 'targetType',
1627
- templateUuid: 'templateUuid',
1628
- };
1629
- }
1630
-
1631
- static types(): { [key: string]: any } {
1632
- return {
1633
- targetType: 'string',
1634
- templateUuid: 'string',
1635
- };
1636
- }
1637
-
1638
- constructor(map?: { [key: string]: any }) {
1639
- super(map);
1640
- }
1641
- }
1642
-
1643
- export class NotifyStrategyForViewGroupingSetting extends $tea.Model {
1644
- groupingKeys?: string[];
1645
- periodMin?: number;
1646
- silenceSec?: number;
1647
- times?: number;
1648
- static names(): { [key: string]: string } {
1649
- return {
1650
- groupingKeys: 'groupingKeys',
1651
- periodMin: 'periodMin',
1652
- silenceSec: 'silenceSec',
1653
- times: 'times',
1654
- };
1655
- }
1656
-
1657
- static types(): { [key: string]: any } {
1658
- return {
1659
- groupingKeys: { 'type': 'array', 'itemType': 'string' },
1660
- periodMin: 'number',
1661
- silenceSec: 'number',
1662
- times: 'number',
1663
- };
1664
- }
1665
-
1666
- constructor(map?: { [key: string]: any }) {
1667
- super(map);
357
+ async deleteWorkspace(workspaceName: string): Promise<$_model.DeleteWorkspaceResponse> {
358
+ let runtime = new $dara.RuntimeOptions({ });
359
+ let headers : {[key: string ]: string} = { };
360
+ return await this.deleteWorkspaceWithOptions(workspaceName, headers, runtime);
1668
361
  }
1669
- }
1670
362
 
1671
- export class NotifyStrategyForViewRoutesChannels extends $tea.Model {
1672
363
  /**
1673
- * @remarks
1674
- * This parameter is required.
1675
- */
1676
- channelType?: string;
1677
- enabledSubChannels?: string[];
1678
- /**
1679
- * @remarks
1680
- * This parameter is required.
364
+ * 获取EntityStore相关存储信息
365
+ *
366
+ * @param headers - map
367
+ * @param runtime - runtime options for this request RuntimeOptions
368
+ * @returns GetEntityStoreResponse
1681
369
  */
1682
- receivers?: string[];
1683
- static names(): { [key: string]: string } {
1684
- return {
1685
- channelType: 'channelType',
1686
- enabledSubChannels: 'enabledSubChannels',
1687
- receivers: 'receivers',
1688
- };
1689
- }
1690
-
1691
- static types(): { [key: string]: any } {
1692
- return {
1693
- channelType: 'string',
1694
- enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
1695
- receivers: { 'type': 'array', 'itemType': 'string' },
1696
- };
1697
- }
1698
-
1699
- constructor(map?: { [key: string]: any }) {
1700
- super(map);
1701
- }
1702
- }
1703
-
1704
- export class NotifyStrategyForViewRoutesEffectTimeRange extends $tea.Model {
1705
- dayInWeek?: number[];
1706
- endTimeInMinute?: number;
1707
- startTimeInMinute?: number;
1708
- timeZone?: string;
1709
- static names(): { [key: string]: string } {
1710
- return {
1711
- dayInWeek: 'dayInWeek',
1712
- endTimeInMinute: 'endTimeInMinute',
1713
- startTimeInMinute: 'startTimeInMinute',
1714
- timeZone: 'timeZone',
1715
- };
1716
- }
1717
-
1718
- static types(): { [key: string]: any } {
1719
- return {
1720
- dayInWeek: { 'type': 'array', 'itemType': 'number' },
1721
- endTimeInMinute: 'number',
1722
- startTimeInMinute: 'number',
1723
- timeZone: 'string',
1724
- };
370
+ async getEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreResponse> {
371
+ let req = new $OpenApiUtil.OpenApiRequest({
372
+ headers: headers,
373
+ });
374
+ let params = new $OpenApiUtil.Params({
375
+ action: "GetEntityStore",
376
+ version: "2024-03-30",
377
+ protocol: "HTTPS",
378
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
379
+ method: "GET",
380
+ authType: "AK",
381
+ style: "ROA",
382
+ reqBodyType: "json",
383
+ bodyType: "json",
384
+ });
385
+ return $dara.cast<$_model.GetEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreResponse({}));
1725
386
  }
1726
387
 
1727
- constructor(map?: { [key: string]: any }) {
1728
- super(map);
388
+ /**
389
+ * 获取EntityStore相关存储信息
390
+ * @returns GetEntityStoreResponse
391
+ */
392
+ async getEntityStore(workspaceName: string): Promise<$_model.GetEntityStoreResponse> {
393
+ let runtime = new $dara.RuntimeOptions({ });
394
+ let headers : {[key: string ]: string} = { };
395
+ return await this.getEntityStoreWithOptions(workspaceName, headers, runtime);
1729
396
  }
1730
- }
1731
397
 
1732
- export class NotifyStrategyForViewRoutes extends $tea.Model {
1733
- channels?: NotifyStrategyForViewRoutesChannels[];
1734
- effectTimeRange?: NotifyStrategyForViewRoutesEffectTimeRange;
1735
- filterSetting?: FilterSetting;
1736
- severities?: string[];
1737
- static names(): { [key: string]: string } {
1738
- return {
1739
- channels: 'channels',
1740
- effectTimeRange: 'effectTimeRange',
1741
- filterSetting: 'filterSetting',
1742
- severities: 'severities',
1743
- };
1744
- }
398
+ /**
399
+ * 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
400
+ *
401
+ * @param request - GetEntityStoreDataRequest
402
+ * @param headers - GetEntityStoreDataHeaders
403
+ * @param runtime - runtime options for this request RuntimeOptions
404
+ * @returns GetEntityStoreDataResponse
405
+ */
406
+ async getEntityStoreDataWithOptions(workspace: string, request: $_model.GetEntityStoreDataRequest, headers: $_model.GetEntityStoreDataHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreDataResponse> {
407
+ request.validate();
408
+ let body : {[key: string ]: any} = { };
409
+ if (!$dara.isNull(request.from)) {
410
+ body["from"] = request.from;
411
+ }
1745
412
 
1746
- static types(): { [key: string]: any } {
1747
- return {
1748
- channels: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutesChannels },
1749
- effectTimeRange: NotifyStrategyForViewRoutesEffectTimeRange,
1750
- filterSetting: FilterSetting,
1751
- severities: { 'type': 'array', 'itemType': 'string' },
1752
- };
1753
- }
413
+ if (!$dara.isNull(request.query)) {
414
+ body["query"] = request.query;
415
+ }
1754
416
 
1755
- constructor(map?: { [key: string]: any }) {
1756
- super(map);
1757
- }
1758
- }
417
+ if (!$dara.isNull(request.to)) {
418
+ body["to"] = request.to;
419
+ }
1759
420
 
1760
- export class SubscriptionForModifyPushingSetting extends $tea.Model {
1761
- alertActionIds?: string[];
1762
- responsePlanId?: string;
1763
- restoreActionIds?: string[];
1764
- templateUuid?: string;
1765
- static names(): { [key: string]: string } {
1766
- return {
1767
- alertActionIds: 'alertActionIds',
1768
- responsePlanId: 'responsePlanId',
1769
- restoreActionIds: 'restoreActionIds',
1770
- templateUuid: 'templateUuid',
1771
- };
1772
- }
421
+ let realHeaders : {[key: string ]: string} = { };
422
+ if (!$dara.isNull(headers.commonHeaders)) {
423
+ realHeaders = headers.commonHeaders;
424
+ }
1773
425
 
1774
- static types(): { [key: string]: any } {
1775
- return {
1776
- alertActionIds: { 'type': 'array', 'itemType': 'string' },
1777
- responsePlanId: 'string',
1778
- restoreActionIds: { 'type': 'array', 'itemType': 'string' },
1779
- templateUuid: 'string',
1780
- };
1781
- }
426
+ if (!$dara.isNull(headers.acceptEncoding)) {
427
+ realHeaders["acceptEncoding"] = String(headers.acceptEncoding);
428
+ }
1782
429
 
1783
- constructor(map?: { [key: string]: any }) {
1784
- super(map);
430
+ let req = new $OpenApiUtil.OpenApiRequest({
431
+ headers: realHeaders,
432
+ body: OpenApiUtil.parseToMap(body),
433
+ });
434
+ let params = new $OpenApiUtil.Params({
435
+ action: "GetEntityStoreData",
436
+ version: "2024-03-30",
437
+ protocol: "HTTPS",
438
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/entitiesAndRelations`,
439
+ method: "POST",
440
+ authType: "AK",
441
+ style: "ROA",
442
+ reqBodyType: "json",
443
+ bodyType: "json",
444
+ });
445
+ return $dara.cast<$_model.GetEntityStoreDataResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreDataResponse({}));
1785
446
  }
1786
- }
1787
447
 
1788
- export class SubscriptionForViewPushingSetting extends $tea.Model {
1789
- alertActionIds?: string[];
1790
- responsePlanId?: string;
1791
- restoreActionIds?: string[];
1792
- templateUuid?: string;
1793
- static names(): { [key: string]: string } {
1794
- return {
1795
- alertActionIds: 'alertActionIds',
1796
- responsePlanId: 'responsePlanId',
1797
- restoreActionIds: 'restoreActionIds',
1798
- templateUuid: 'templateUuid',
1799
- };
448
+ /**
449
+ * 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
450
+ *
451
+ * @param request - GetEntityStoreDataRequest
452
+ * @returns GetEntityStoreDataResponse
453
+ */
454
+ async getEntityStoreData(workspace: string, request: $_model.GetEntityStoreDataRequest): Promise<$_model.GetEntityStoreDataResponse> {
455
+ let runtime = new $dara.RuntimeOptions({ });
456
+ let headers = new $_model.GetEntityStoreDataHeaders({ });
457
+ return await this.getEntityStoreDataWithOptions(workspace, request, headers, runtime);
1800
458
  }
1801
459
 
1802
- static types(): { [key: string]: any } {
1803
- return {
1804
- alertActionIds: { 'type': 'array', 'itemType': 'string' },
1805
- responsePlanId: 'string',
1806
- restoreActionIds: { 'type': 'array', 'itemType': 'string' },
1807
- templateUuid: 'string',
1808
- };
460
+ /**
461
+ * 获取Umodel配置信息
462
+ *
463
+ * @param headers - map
464
+ * @param runtime - runtime options for this request RuntimeOptions
465
+ * @returns GetUmodelResponse
466
+ */
467
+ async getUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelResponse> {
468
+ let req = new $OpenApiUtil.OpenApiRequest({
469
+ headers: headers,
470
+ });
471
+ let params = new $OpenApiUtil.Params({
472
+ action: "GetUmodel",
473
+ version: "2024-03-30",
474
+ protocol: "HTTPS",
475
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
476
+ method: "GET",
477
+ authType: "AK",
478
+ style: "ROA",
479
+ reqBodyType: "json",
480
+ bodyType: "json",
481
+ });
482
+ return $dara.cast<$_model.GetUmodelResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelResponse({}));
1809
483
  }
1810
484
 
1811
- constructor(map?: { [key: string]: any }) {
1812
- super(map);
485
+ /**
486
+ * 获取Umodel配置信息
487
+ * @returns GetUmodelResponse
488
+ */
489
+ async getUmodel(workspace: string): Promise<$_model.GetUmodelResponse> {
490
+ let runtime = new $dara.RuntimeOptions({ });
491
+ let headers : {[key: string ]: string} = { };
492
+ return await this.getUmodelWithOptions(workspace, headers, runtime);
1813
493
  }
1814
- }
1815
494
 
1816
- export class ListAlertActionsResponseBodyAlertActionsEssParam extends $tea.Model {
1817
- essGroupId?: string;
1818
- essRuleId?: string;
1819
- regionId?: string;
1820
- static names(): { [key: string]: string } {
1821
- return {
1822
- essGroupId: 'essGroupId',
1823
- essRuleId: 'essRuleId',
1824
- regionId: 'regionId',
1825
- };
1826
- }
495
+ /**
496
+ * 获取相关联的 Umodel 图数据
497
+ *
498
+ * @param request - GetUmodelDataRequest
499
+ * @param headers - map
500
+ * @param runtime - runtime options for this request RuntimeOptions
501
+ * @returns GetUmodelDataResponse
502
+ */
503
+ async getUmodelDataWithOptions(workspace: string, request: $_model.GetUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelDataResponse> {
504
+ request.validate();
505
+ let query : {[key: string ]: any} = { };
506
+ if (!$dara.isNull(request.method)) {
507
+ query["method"] = request.method;
508
+ }
1827
509
 
1828
- static types(): { [key: string]: any } {
1829
- return {
1830
- essGroupId: 'string',
1831
- essRuleId: 'string',
1832
- regionId: 'string',
1833
- };
1834
- }
510
+ let body : {[key: string ]: any} = { };
511
+ if (!$dara.isNull(request.content)) {
512
+ body["content"] = request.content;
513
+ }
1835
514
 
1836
- constructor(map?: { [key: string]: any }) {
1837
- super(map);
515
+ let req = new $OpenApiUtil.OpenApiRequest({
516
+ headers: headers,
517
+ query: OpenApiUtil.query(query),
518
+ body: OpenApiUtil.parseToMap(body),
519
+ });
520
+ let params = new $OpenApiUtil.Params({
521
+ action: "GetUmodelData",
522
+ version: "2024-03-30",
523
+ protocol: "HTTPS",
524
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/graph`,
525
+ method: "POST",
526
+ authType: "AK",
527
+ style: "ROA",
528
+ reqBodyType: "json",
529
+ bodyType: "json",
530
+ });
531
+ return $dara.cast<$_model.GetUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelDataResponse({}));
1838
532
  }
1839
- }
1840
533
 
1841
- export class ListAlertActionsResponseBodyAlertActionsFcParam extends $tea.Model {
1842
- function?: string;
1843
- regionId?: string;
1844
- service?: string;
1845
- static names(): { [key: string]: string } {
1846
- return {
1847
- function: 'function',
1848
- regionId: 'regionId',
1849
- service: 'service',
1850
- };
534
+ /**
535
+ * 获取相关联的 Umodel 图数据
536
+ *
537
+ * @param request - GetUmodelDataRequest
538
+ * @returns GetUmodelDataResponse
539
+ */
540
+ async getUmodelData(workspace: string, request: $_model.GetUmodelDataRequest): Promise<$_model.GetUmodelDataResponse> {
541
+ let runtime = new $dara.RuntimeOptions({ });
542
+ let headers : {[key: string ]: string} = { };
543
+ return await this.getUmodelDataWithOptions(workspace, request, headers, runtime);
1851
544
  }
1852
545
 
1853
- static types(): { [key: string]: any } {
1854
- return {
1855
- function: 'string',
1856
- regionId: 'string',
1857
- service: 'string',
1858
- };
546
+ /**
547
+ * 获取工作空间
548
+ *
549
+ * @param headers - map
550
+ * @param runtime - runtime options for this request RuntimeOptions
551
+ * @returns GetWorkspaceResponse
552
+ */
553
+ async getWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceResponse> {
554
+ let req = new $OpenApiUtil.OpenApiRequest({
555
+ headers: headers,
556
+ });
557
+ let params = new $OpenApiUtil.Params({
558
+ action: "GetWorkspace",
559
+ version: "2024-03-30",
560
+ protocol: "HTTPS",
561
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
562
+ method: "GET",
563
+ authType: "AK",
564
+ style: "ROA",
565
+ reqBodyType: "json",
566
+ bodyType: "json",
567
+ });
568
+ return $dara.cast<$_model.GetWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.GetWorkspaceResponse({}));
1859
569
  }
1860
570
 
1861
- constructor(map?: { [key: string]: any }) {
1862
- super(map);
571
+ /**
572
+ * 获取工作空间
573
+ * @returns GetWorkspaceResponse
574
+ */
575
+ async getWorkspace(workspaceName: string): Promise<$_model.GetWorkspaceResponse> {
576
+ let runtime = new $dara.RuntimeOptions({ });
577
+ let headers : {[key: string ]: string} = { };
578
+ return await this.getWorkspaceWithOptions(workspaceName, headers, runtime);
1863
579
  }
1864
- }
1865
580
 
1866
- export class ListAlertActionsResponseBodyAlertActionsMnsParam extends $tea.Model {
1867
- mnsType?: string;
1868
- name?: string;
1869
- regionId?: string;
1870
- static names(): { [key: string]: string } {
1871
- return {
1872
- mnsType: 'mnsType',
1873
- name: 'name',
1874
- regionId: 'regionId',
1875
- };
1876
- }
581
+ /**
582
+ * 查询告警动作
583
+ *
584
+ * @param tmpReq - ListAlertActionsRequest
585
+ * @param headers - map
586
+ * @param runtime - runtime options for this request RuntimeOptions
587
+ * @returns ListAlertActionsResponse
588
+ */
589
+ async listAlertActionsWithOptions(tmpReq: $_model.ListAlertActionsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAlertActionsResponse> {
590
+ tmpReq.validate();
591
+ let request = new $_model.ListAlertActionsShrinkRequest({ });
592
+ OpenApiUtil.convert(tmpReq, request);
593
+ if (!$dara.isNull(tmpReq.alertActionIds)) {
594
+ request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
595
+ }
1877
596
 
1878
- static types(): { [key: string]: any } {
1879
- return {
1880
- mnsType: 'string',
1881
- name: 'string',
1882
- regionId: 'string',
1883
- };
1884
- }
597
+ let query : {[key: string ]: any} = { };
598
+ if (!$dara.isNull(request.alertActionIdsShrink)) {
599
+ query["alertActionIds"] = request.alertActionIdsShrink;
600
+ }
1885
601
 
1886
- constructor(map?: { [key: string]: any }) {
1887
- super(map);
1888
- }
1889
- }
602
+ if (!$dara.isNull(request.alertActionName)) {
603
+ query["alertActionName"] = request.alertActionName;
604
+ }
1890
605
 
1891
- export class ListAlertActionsResponseBodyAlertActionsPagerDutyParam extends $tea.Model {
1892
- key?: string;
1893
- url?: string;
1894
- static names(): { [key: string]: string } {
1895
- return {
1896
- key: 'key',
1897
- url: 'url',
1898
- };
1899
- }
606
+ if (!$dara.isNull(request.pageNumber)) {
607
+ query["pageNumber"] = request.pageNumber;
608
+ }
1900
609
 
1901
- static types(): { [key: string]: any } {
1902
- return {
1903
- key: 'string',
1904
- url: 'string',
1905
- };
1906
- }
610
+ if (!$dara.isNull(request.pageSize)) {
611
+ query["pageSize"] = request.pageSize;
612
+ }
1907
613
 
1908
- constructor(map?: { [key: string]: any }) {
1909
- super(map);
1910
- }
1911
- }
614
+ if (!$dara.isNull(request.type)) {
615
+ query["type"] = request.type;
616
+ }
1912
617
 
1913
- export class ListAlertActionsResponseBodyAlertActionsSlsParam extends $tea.Model {
1914
- logstore?: string;
1915
- project?: string;
1916
- regionId?: string;
1917
- static names(): { [key: string]: string } {
1918
- return {
1919
- logstore: 'logstore',
1920
- project: 'project',
1921
- regionId: 'regionId',
1922
- };
618
+ let req = new $OpenApiUtil.OpenApiRequest({
619
+ headers: headers,
620
+ query: OpenApiUtil.query(query),
621
+ });
622
+ let params = new $OpenApiUtil.Params({
623
+ action: "ListAlertActions",
624
+ version: "2024-03-30",
625
+ protocol: "HTTPS",
626
+ pathname: `/alertActions`,
627
+ method: "GET",
628
+ authType: "AK",
629
+ style: "ROA",
630
+ reqBodyType: "json",
631
+ bodyType: "json",
632
+ });
633
+ return $dara.cast<$_model.ListAlertActionsResponse>(await this.callApi(params, req, runtime), new $_model.ListAlertActionsResponse({}));
1923
634
  }
1924
635
 
1925
- static types(): { [key: string]: any } {
1926
- return {
1927
- logstore: 'string',
1928
- project: 'string',
1929
- regionId: 'string',
1930
- };
636
+ /**
637
+ * 查询告警动作
638
+ *
639
+ * @param request - ListAlertActionsRequest
640
+ * @returns ListAlertActionsResponse
641
+ */
642
+ async listAlertActions(request: $_model.ListAlertActionsRequest): Promise<$_model.ListAlertActionsResponse> {
643
+ let runtime = new $dara.RuntimeOptions({ });
644
+ let headers : {[key: string ]: string} = { };
645
+ return await this.listAlertActionsWithOptions(request, headers, runtime);
1931
646
  }
1932
647
 
1933
- constructor(map?: { [key: string]: any }) {
1934
- super(map);
1935
- }
1936
- }
648
+ /**
649
+ * 获取工作空间列表
650
+ *
651
+ * @param tmpReq - ListWorkspacesRequest
652
+ * @param headers - map
653
+ * @param runtime - runtime options for this request RuntimeOptions
654
+ * @returns ListWorkspacesResponse
655
+ */
656
+ async listWorkspacesWithOptions(tmpReq: $_model.ListWorkspacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListWorkspacesResponse> {
657
+ tmpReq.validate();
658
+ let request = new $_model.ListWorkspacesShrinkRequest({ });
659
+ OpenApiUtil.convert(tmpReq, request);
660
+ if (!$dara.isNull(tmpReq.workspaceNameList)) {
661
+ request.workspaceNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
662
+ }
1937
663
 
1938
- export class ListAlertActionsResponseBodyAlertActionsWebhookParam extends $tea.Model {
1939
- contentType?: string;
1940
- headers?: { [key: string]: string };
1941
- method?: string;
1942
- url?: string;
1943
- static names(): { [key: string]: string } {
1944
- return {
1945
- contentType: 'contentType',
1946
- headers: 'headers',
1947
- method: 'method',
1948
- url: 'url',
1949
- };
1950
- }
664
+ let query : {[key: string ]: any} = { };
665
+ if (!$dara.isNull(request.maxResults)) {
666
+ query["maxResults"] = request.maxResults;
667
+ }
1951
668
 
1952
- static types(): { [key: string]: any } {
1953
- return {
1954
- contentType: 'string',
1955
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1956
- method: 'string',
1957
- url: 'string',
1958
- };
1959
- }
669
+ if (!$dara.isNull(request.nextToken)) {
670
+ query["nextToken"] = request.nextToken;
671
+ }
1960
672
 
1961
- constructor(map?: { [key: string]: any }) {
1962
- super(map);
1963
- }
1964
- }
673
+ if (!$dara.isNull(request.region)) {
674
+ query["region"] = request.region;
675
+ }
1965
676
 
1966
- export class ListAlertActionsResponseBodyAlertActions extends $tea.Model {
1967
- alertActionId?: string;
1968
- alertActionName?: string;
1969
- essParam?: ListAlertActionsResponseBodyAlertActionsEssParam;
1970
- fcParam?: ListAlertActionsResponseBodyAlertActionsFcParam;
1971
- mnsParam?: ListAlertActionsResponseBodyAlertActionsMnsParam;
1972
- pagerDutyParam?: ListAlertActionsResponseBodyAlertActionsPagerDutyParam;
1973
- slsParam?: ListAlertActionsResponseBodyAlertActionsSlsParam;
1974
- type?: string;
1975
- webhookParam?: ListAlertActionsResponseBodyAlertActionsWebhookParam;
1976
- static names(): { [key: string]: string } {
1977
- return {
1978
- alertActionId: 'alertActionId',
1979
- alertActionName: 'alertActionName',
1980
- essParam: 'essParam',
1981
- fcParam: 'fcParam',
1982
- mnsParam: 'mnsParam',
1983
- pagerDutyParam: 'pagerDutyParam',
1984
- slsParam: 'slsParam',
1985
- type: 'type',
1986
- webhookParam: 'webhookParam',
1987
- };
1988
- }
677
+ if (!$dara.isNull(request.workspaceName)) {
678
+ query["workspaceName"] = request.workspaceName;
679
+ }
1989
680
 
1990
- static types(): { [key: string]: any } {
1991
- return {
1992
- alertActionId: 'string',
1993
- alertActionName: 'string',
1994
- essParam: ListAlertActionsResponseBodyAlertActionsEssParam,
1995
- fcParam: ListAlertActionsResponseBodyAlertActionsFcParam,
1996
- mnsParam: ListAlertActionsResponseBodyAlertActionsMnsParam,
1997
- pagerDutyParam: ListAlertActionsResponseBodyAlertActionsPagerDutyParam,
1998
- slsParam: ListAlertActionsResponseBodyAlertActionsSlsParam,
1999
- type: 'string',
2000
- webhookParam: ListAlertActionsResponseBodyAlertActionsWebhookParam,
2001
- };
2002
- }
681
+ if (!$dara.isNull(request.workspaceNameListShrink)) {
682
+ query["workspaceNameList"] = request.workspaceNameListShrink;
683
+ }
2003
684
 
2004
- constructor(map?: { [key: string]: any }) {
2005
- super(map);
685
+ let req = new $OpenApiUtil.OpenApiRequest({
686
+ headers: headers,
687
+ query: OpenApiUtil.query(query),
688
+ });
689
+ let params = new $OpenApiUtil.Params({
690
+ action: "ListWorkspaces",
691
+ version: "2024-03-30",
692
+ protocol: "HTTPS",
693
+ pathname: `/workspace`,
694
+ method: "GET",
695
+ authType: "AK",
696
+ style: "ROA",
697
+ reqBodyType: "json",
698
+ bodyType: "json",
699
+ });
700
+ return $dara.cast<$_model.ListWorkspacesResponse>(await this.callApi(params, req, runtime), new $_model.ListWorkspacesResponse({}));
2006
701
  }
2007
- }
2008
702
 
2009
-
2010
- export default class Client extends OpenApi {
2011
-
2012
- constructor(config: $OpenApi.Config) {
2013
- super(config);
2014
- this._endpointRule = "";
2015
- this.checkConfig(config);
2016
- this._endpoint = this.getEndpoint("cms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
703
+ /**
704
+ * 获取工作空间列表
705
+ *
706
+ * @param request - ListWorkspacesRequest
707
+ * @returns ListWorkspacesResponse
708
+ */
709
+ async listWorkspaces(request: $_model.ListWorkspacesRequest): Promise<$_model.ListWorkspacesResponse> {
710
+ let runtime = new $dara.RuntimeOptions({ });
711
+ let headers : {[key: string ]: string} = { };
712
+ return await this.listWorkspacesWithOptions(request, headers, runtime);
2017
713
  }
2018
714
 
715
+ /**
716
+ * 创建工作空间
717
+ *
718
+ * @param request - PutWorkspaceRequest
719
+ * @param headers - map
720
+ * @param runtime - runtime options for this request RuntimeOptions
721
+ * @returns PutWorkspaceResponse
722
+ */
723
+ async putWorkspaceWithOptions(workspaceName: string, request: $_model.PutWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.PutWorkspaceResponse> {
724
+ request.validate();
725
+ let body : {[key: string ]: any} = { };
726
+ if (!$dara.isNull(request.description)) {
727
+ body["description"] = request.description;
728
+ }
2019
729
 
2020
- getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
2021
- if (!Util.empty(endpoint)) {
2022
- return endpoint;
730
+ if (!$dara.isNull(request.displayName)) {
731
+ body["displayName"] = request.displayName;
2023
732
  }
2024
733
 
2025
- if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
2026
- return endpointMap[regionId];
734
+ if (!$dara.isNull(request.slsProject)) {
735
+ body["slsProject"] = request.slsProject;
2027
736
  }
2028
737
 
2029
- return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
738
+ let req = new $OpenApiUtil.OpenApiRequest({
739
+ headers: headers,
740
+ body: OpenApiUtil.parseToMap(body),
741
+ });
742
+ let params = new $OpenApiUtil.Params({
743
+ action: "PutWorkspace",
744
+ version: "2024-03-30",
745
+ protocol: "HTTPS",
746
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
747
+ method: "POST",
748
+ authType: "AK",
749
+ style: "ROA",
750
+ reqBodyType: "json",
751
+ bodyType: "json",
752
+ });
753
+ return $dara.cast<$_model.PutWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.PutWorkspaceResponse({}));
754
+ }
755
+
756
+ /**
757
+ * 创建工作空间
758
+ *
759
+ * @param request - PutWorkspaceRequest
760
+ * @returns PutWorkspaceResponse
761
+ */
762
+ async putWorkspace(workspaceName: string, request: $_model.PutWorkspaceRequest): Promise<$_model.PutWorkspaceResponse> {
763
+ let runtime = new $dara.RuntimeOptions({ });
764
+ let headers : {[key: string ]: string} = { };
765
+ return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
2030
766
  }
2031
767
 
2032
768
  /**
2033
- * 查询告警动作
769
+ * 更新Umodel配置信息
2034
770
  *
2035
- * @param tmpReq - ListAlertActionsRequest
771
+ * @param request - UpdateUmodelRequest
2036
772
  * @param headers - map
2037
773
  * @param runtime - runtime options for this request RuntimeOptions
2038
- * @returns ListAlertActionsResponse
774
+ * @returns UpdateUmodelResponse
2039
775
  */
2040
- async listAlertActionsWithOptions(tmpReq: ListAlertActionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListAlertActionsResponse> {
2041
- Util.validateModel(tmpReq);
2042
- let request = new ListAlertActionsShrinkRequest({ });
2043
- OpenApiUtil.convert(tmpReq, request);
2044
- if (!Util.isUnset(tmpReq.alertActionIds)) {
2045
- request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
776
+ async updateUmodelWithOptions(workspace: string, request: $_model.UpdateUmodelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateUmodelResponse> {
777
+ request.validate();
778
+ let body : {[key: string ]: any} = { };
779
+ if (!$dara.isNull(request.commonSchemaRef)) {
780
+ body["commonSchemaRef"] = request.commonSchemaRef;
2046
781
  }
2047
782
 
2048
- let query : {[key: string ]: any} = { };
2049
- if (!Util.isUnset(request.alertActionIdsShrink)) {
2050
- query["alertActionIds"] = request.alertActionIdsShrink;
783
+ if (!$dara.isNull(request.description)) {
784
+ body["description"] = request.description;
2051
785
  }
2052
786
 
2053
- if (!Util.isUnset(request.alertActionName)) {
2054
- query["alertActionName"] = request.alertActionName;
2055
- }
787
+ let req = new $OpenApiUtil.OpenApiRequest({
788
+ headers: headers,
789
+ body: OpenApiUtil.parseToMap(body),
790
+ });
791
+ let params = new $OpenApiUtil.Params({
792
+ action: "UpdateUmodel",
793
+ version: "2024-03-30",
794
+ protocol: "HTTPS",
795
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
796
+ method: "PUT",
797
+ authType: "AK",
798
+ style: "ROA",
799
+ reqBodyType: "json",
800
+ bodyType: "json",
801
+ });
802
+ return $dara.cast<$_model.UpdateUmodelResponse>(await this.callApi(params, req, runtime), new $_model.UpdateUmodelResponse({}));
803
+ }
2056
804
 
2057
- if (!Util.isUnset(request.pageNumber)) {
2058
- query["pageNumber"] = request.pageNumber;
2059
- }
805
+ /**
806
+ * 更新Umodel配置信息
807
+ *
808
+ * @param request - UpdateUmodelRequest
809
+ * @returns UpdateUmodelResponse
810
+ */
811
+ async updateUmodel(workspace: string, request: $_model.UpdateUmodelRequest): Promise<$_model.UpdateUmodelResponse> {
812
+ let runtime = new $dara.RuntimeOptions({ });
813
+ let headers : {[key: string ]: string} = { };
814
+ return await this.updateUmodelWithOptions(workspace, request, headers, runtime);
815
+ }
2060
816
 
2061
- if (!Util.isUnset(request.pageSize)) {
2062
- query["pageSize"] = request.pageSize;
817
+ /**
818
+ * 写入 Umodel Elements
819
+ *
820
+ * @param request - UpsertUmodelDataRequest
821
+ * @param headers - map
822
+ * @param runtime - runtime options for this request RuntimeOptions
823
+ * @returns UpsertUmodelDataResponse
824
+ */
825
+ async upsertUmodelDataWithOptions(workspace: string, request: $_model.UpsertUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpsertUmodelDataResponse> {
826
+ request.validate();
827
+ let query : {[key: string ]: any} = { };
828
+ if (!$dara.isNull(request.method)) {
829
+ query["method"] = request.method;
2063
830
  }
2064
831
 
2065
- if (!Util.isUnset(request.type)) {
2066
- query["type"] = request.type;
832
+ let body : {[key: string ]: any} = { };
833
+ if (!$dara.isNull(request.elements)) {
834
+ body["elements"] = request.elements;
2067
835
  }
2068
836
 
2069
- let req = new $OpenApi.OpenApiRequest({
837
+ let req = new $OpenApiUtil.OpenApiRequest({
2070
838
  headers: headers,
2071
839
  query: OpenApiUtil.query(query),
840
+ body: OpenApiUtil.parseToMap(body),
2072
841
  });
2073
- let params = new $OpenApi.Params({
2074
- action: "ListAlertActions",
842
+ let params = new $OpenApiUtil.Params({
843
+ action: "UpsertUmodelData",
2075
844
  version: "2024-03-30",
2076
845
  protocol: "HTTPS",
2077
- pathname: `/alertActions`,
2078
- method: "GET",
846
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/data`,
847
+ method: "PATCH",
2079
848
  authType: "AK",
2080
849
  style: "ROA",
2081
850
  reqBodyType: "json",
2082
851
  bodyType: "json",
2083
852
  });
2084
- return $tea.cast<ListAlertActionsResponse>(await this.callApi(params, req, runtime), new ListAlertActionsResponse({}));
853
+ return $dara.cast<$_model.UpsertUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.UpsertUmodelDataResponse({}));
2085
854
  }
2086
855
 
2087
856
  /**
2088
- * 查询告警动作
857
+ * 写入 Umodel Elements
2089
858
  *
2090
- * @param request - ListAlertActionsRequest
2091
- * @returns ListAlertActionsResponse
859
+ * @param request - UpsertUmodelDataRequest
860
+ * @returns UpsertUmodelDataResponse
2092
861
  */
2093
- async listAlertActions(request: ListAlertActionsRequest): Promise<ListAlertActionsResponse> {
2094
- let runtime = new $Util.RuntimeOptions({ });
862
+ async upsertUmodelData(workspace: string, request: $_model.UpsertUmodelDataRequest): Promise<$_model.UpsertUmodelDataResponse> {
863
+ let runtime = new $dara.RuntimeOptions({ });
2095
864
  let headers : {[key: string ]: string} = { };
2096
- return await this.listAlertActionsWithOptions(request, headers, runtime);
865
+ return await this.upsertUmodelDataWithOptions(workspace, request, headers, runtime);
2097
866
  }
2098
867
 
2099
868
  }