@alicloud/cms20240330 3.0.0 → 3.1.0

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 (369) hide show
  1. package/dist/client.d.ts +522 -0
  2. package/dist/client.js +1709 -150
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AlertRuleCondition.d.ts +2 -0
  5. package/dist/models/AlertRuleCondition.js +4 -0
  6. package/dist/models/AlertRuleCondition.js.map +1 -1
  7. package/dist/models/AlertRuleQuery.d.ts +1 -0
  8. package/dist/models/AlertRuleQuery.js +5 -0
  9. package/dist/models/AlertRuleQuery.js.map +1 -1
  10. package/dist/models/CreateAddonReleaseRequest.d.ts +66 -0
  11. package/dist/models/CreateAddonReleaseRequest.js +80 -0
  12. package/dist/models/CreateAddonReleaseRequest.js.map +1 -0
  13. package/dist/models/CreateAddonReleaseResponse.d.ts +19 -0
  14. package/dist/models/CreateAddonReleaseResponse.js +69 -0
  15. package/dist/models/CreateAddonReleaseResponse.js.map +1 -0
  16. package/dist/models/CreateAddonReleaseResponseBody.d.ts +186 -0
  17. package/dist/models/CreateAddonReleaseResponseBody.js +164 -0
  18. package/dist/models/CreateAddonReleaseResponseBody.js.map +1 -0
  19. package/dist/models/CreateAggTaskGroupRequest.d.ts +131 -0
  20. package/dist/models/CreateAggTaskGroupRequest.js +114 -0
  21. package/dist/models/CreateAggTaskGroupRequest.js.map +1 -0
  22. package/dist/models/CreateAggTaskGroupResponse.d.ts +19 -0
  23. package/dist/models/CreateAggTaskGroupResponse.js +69 -0
  24. package/dist/models/CreateAggTaskGroupResponse.js.map +1 -0
  25. package/dist/models/CreateAggTaskGroupResponseBody.d.ts +43 -0
  26. package/dist/models/CreateAggTaskGroupResponseBody.js +68 -0
  27. package/dist/models/CreateAggTaskGroupResponseBody.js.map +1 -0
  28. package/dist/models/CreateIntegrationPolicyRequest.d.ts +92 -0
  29. package/dist/models/CreateIntegrationPolicyRequest.js +120 -0
  30. package/dist/models/CreateIntegrationPolicyRequest.js.map +1 -0
  31. package/dist/models/CreateIntegrationPolicyResponse.d.ts +19 -0
  32. package/dist/models/CreateIntegrationPolicyResponse.js +69 -0
  33. package/dist/models/CreateIntegrationPolicyResponse.js.map +1 -0
  34. package/dist/models/CreateIntegrationPolicyResponseBody.d.ts +67 -0
  35. package/dist/models/CreateIntegrationPolicyResponseBody.js +96 -0
  36. package/dist/models/CreateIntegrationPolicyResponseBody.js.map +1 -0
  37. package/dist/models/CreatePrometheusViewRequest.d.ts +114 -0
  38. package/dist/models/CreatePrometheusViewRequest.js +126 -0
  39. package/dist/models/CreatePrometheusViewRequest.js.map +1 -0
  40. package/dist/models/CreatePrometheusViewResponse.d.ts +19 -0
  41. package/dist/models/CreatePrometheusViewResponse.js +69 -0
  42. package/dist/models/CreatePrometheusViewResponse.js.map +1 -0
  43. package/dist/models/CreatePrometheusViewResponseBody.d.ts +26 -0
  44. package/dist/models/CreatePrometheusViewResponseBody.js +60 -0
  45. package/dist/models/CreatePrometheusViewResponseBody.js.map +1 -0
  46. package/dist/models/CreatePrometheusVirtualInstanceRequest.d.ts +21 -0
  47. package/dist/models/CreatePrometheusVirtualInstanceRequest.js +58 -0
  48. package/dist/models/CreatePrometheusVirtualInstanceRequest.js.map +1 -0
  49. package/dist/models/CreatePrometheusVirtualInstanceResponse.d.ts +19 -0
  50. package/dist/models/CreatePrometheusVirtualInstanceResponse.js +69 -0
  51. package/dist/models/CreatePrometheusVirtualInstanceResponse.js.map +1 -0
  52. package/dist/models/CreatePrometheusVirtualInstanceResponseBody.d.ts +64 -0
  53. package/dist/models/CreatePrometheusVirtualInstanceResponseBody.js +92 -0
  54. package/dist/models/CreatePrometheusVirtualInstanceResponseBody.js.map +1 -0
  55. package/dist/models/DeleteAddonReleaseRequest.d.ts +28 -0
  56. package/dist/models/DeleteAddonReleaseRequest.js +62 -0
  57. package/dist/models/DeleteAddonReleaseRequest.js.map +1 -0
  58. package/dist/models/DeleteAddonReleaseResponse.d.ts +19 -0
  59. package/dist/models/DeleteAddonReleaseResponse.js +69 -0
  60. package/dist/models/DeleteAddonReleaseResponse.js.map +1 -0
  61. package/dist/models/DeleteAddonReleaseResponseBody.d.ts +18 -0
  62. package/dist/models/DeleteAddonReleaseResponseBody.js +58 -0
  63. package/dist/models/DeleteAddonReleaseResponseBody.js.map +1 -0
  64. package/dist/models/DeleteAggTaskGroupResponse.d.ts +19 -0
  65. package/dist/models/DeleteAggTaskGroupResponse.js +69 -0
  66. package/dist/models/DeleteAggTaskGroupResponse.js.map +1 -0
  67. package/dist/models/DeleteAggTaskGroupResponseBody.d.ts +18 -0
  68. package/dist/models/DeleteAggTaskGroupResponseBody.js +58 -0
  69. package/dist/models/DeleteAggTaskGroupResponseBody.js.map +1 -0
  70. package/dist/models/DeleteIntegrationPolicyRequest.d.ts +18 -0
  71. package/dist/models/DeleteIntegrationPolicyRequest.js +58 -0
  72. package/dist/models/DeleteIntegrationPolicyRequest.js.map +1 -0
  73. package/dist/models/DeleteIntegrationPolicyResponse.d.ts +19 -0
  74. package/dist/models/DeleteIntegrationPolicyResponse.js +69 -0
  75. package/dist/models/DeleteIntegrationPolicyResponse.js.map +1 -0
  76. package/dist/models/DeleteIntegrationPolicyResponseBody.d.ts +21 -0
  77. package/dist/models/DeleteIntegrationPolicyResponseBody.js +58 -0
  78. package/dist/models/DeleteIntegrationPolicyResponseBody.js.map +1 -0
  79. package/dist/models/DeletePrometheusInstanceResponse.d.ts +19 -0
  80. package/dist/models/DeletePrometheusInstanceResponse.js +69 -0
  81. package/dist/models/DeletePrometheusInstanceResponse.js.map +1 -0
  82. package/dist/models/DeletePrometheusInstanceResponseBody.d.ts +21 -0
  83. package/dist/models/DeletePrometheusInstanceResponseBody.js +58 -0
  84. package/dist/models/DeletePrometheusInstanceResponseBody.js.map +1 -0
  85. package/dist/models/DeletePrometheusViewResponse.d.ts +19 -0
  86. package/dist/models/DeletePrometheusViewResponse.js +69 -0
  87. package/dist/models/DeletePrometheusViewResponse.js.map +1 -0
  88. package/dist/models/DeletePrometheusViewResponseBody.d.ts +21 -0
  89. package/dist/models/DeletePrometheusViewResponseBody.js +58 -0
  90. package/dist/models/DeletePrometheusViewResponseBody.js.map +1 -0
  91. package/dist/models/GetAddonReleaseResponse.d.ts +19 -0
  92. package/dist/models/GetAddonReleaseResponse.js +69 -0
  93. package/dist/models/GetAddonReleaseResponse.js.map +1 -0
  94. package/dist/models/GetAddonReleaseResponseBody.d.ts +194 -0
  95. package/dist/models/GetAddonReleaseResponseBody.js +166 -0
  96. package/dist/models/GetAddonReleaseResponseBody.js.map +1 -0
  97. package/dist/models/GetAggTaskGroupResponse.d.ts +19 -0
  98. package/dist/models/GetAggTaskGroupResponse.js +69 -0
  99. package/dist/models/GetAggTaskGroupResponse.js.map +1 -0
  100. package/dist/models/GetAggTaskGroupResponseBody.d.ts +165 -0
  101. package/dist/models/GetAggTaskGroupResponseBody.js +148 -0
  102. package/dist/models/GetAggTaskGroupResponseBody.js.map +1 -0
  103. package/dist/models/GetEntityStoreDataResponseBody.d.ts +34 -0
  104. package/dist/models/GetEntityStoreDataResponseBody.js +61 -1
  105. package/dist/models/GetEntityStoreDataResponseBody.js.map +1 -1
  106. package/dist/models/GetIntegrationPolicyResponse.d.ts +19 -0
  107. package/dist/models/GetIntegrationPolicyResponse.js +69 -0
  108. package/dist/models/GetIntegrationPolicyResponse.js.map +1 -0
  109. package/dist/models/GetIntegrationPolicyResponseBody.d.ts +336 -0
  110. package/dist/models/GetIntegrationPolicyResponseBody.js +401 -0
  111. package/dist/models/GetIntegrationPolicyResponseBody.js.map +1 -0
  112. package/dist/models/GetPrometheusInstanceRequest.d.ts +23 -0
  113. package/dist/models/GetPrometheusInstanceRequest.js +60 -0
  114. package/dist/models/GetPrometheusInstanceRequest.js.map +1 -0
  115. package/dist/models/GetPrometheusInstanceResponse.d.ts +19 -0
  116. package/dist/models/GetPrometheusInstanceResponse.js +69 -0
  117. package/dist/models/GetPrometheusInstanceResponse.js.map +1 -0
  118. package/dist/models/GetPrometheusInstanceResponseBody.d.ts +230 -0
  119. package/dist/models/GetPrometheusInstanceResponseBody.js +184 -0
  120. package/dist/models/GetPrometheusInstanceResponseBody.js.map +1 -0
  121. package/dist/models/GetPrometheusViewRequest.d.ts +23 -0
  122. package/dist/models/GetPrometheusViewRequest.js +60 -0
  123. package/dist/models/GetPrometheusViewRequest.js.map +1 -0
  124. package/dist/models/GetPrometheusViewResponse.d.ts +19 -0
  125. package/dist/models/GetPrometheusViewResponse.js +69 -0
  126. package/dist/models/GetPrometheusViewResponse.js.map +1 -0
  127. package/dist/models/GetPrometheusViewResponseBody.d.ts +206 -0
  128. package/dist/models/GetPrometheusViewResponseBody.js +187 -0
  129. package/dist/models/GetPrometheusViewResponseBody.js.map +1 -0
  130. package/dist/models/ListAddonReleasesRequest.d.ts +23 -0
  131. package/dist/models/ListAddonReleasesRequest.js +60 -0
  132. package/dist/models/ListAddonReleasesRequest.js.map +1 -0
  133. package/dist/models/ListAddonReleasesResponse.d.ts +19 -0
  134. package/dist/models/ListAddonReleasesResponse.js +69 -0
  135. package/dist/models/ListAddonReleasesResponse.js.map +1 -0
  136. package/dist/models/ListAddonReleasesResponseBody.d.ts +211 -0
  137. package/dist/models/ListAddonReleasesResponseBody.js +196 -0
  138. package/dist/models/ListAddonReleasesResponseBody.js.map +1 -0
  139. package/dist/models/ListAggTaskGroupsRequest.d.ts +71 -0
  140. package/dist/models/ListAggTaskGroupsRequest.js +96 -0
  141. package/dist/models/ListAggTaskGroupsRequest.js.map +1 -0
  142. package/dist/models/ListAggTaskGroupsResponse.d.ts +19 -0
  143. package/dist/models/ListAggTaskGroupsResponse.js +69 -0
  144. package/dist/models/ListAggTaskGroupsResponse.js.map +1 -0
  145. package/dist/models/ListAggTaskGroupsResponseBody.d.ts +159 -0
  146. package/dist/models/ListAggTaskGroupsResponseBody.js +148 -0
  147. package/dist/models/ListAggTaskGroupsResponseBody.js.map +1 -0
  148. package/dist/models/ListAggTaskGroupsShrinkRequest.d.ts +49 -0
  149. package/dist/models/ListAggTaskGroupsShrinkRequest.js +72 -0
  150. package/dist/models/ListAggTaskGroupsShrinkRequest.js.map +1 -0
  151. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.d.ts +24 -0
  152. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.js +62 -0
  153. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.js.map +1 -0
  154. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.d.ts +19 -0
  155. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.js +69 -0
  156. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.js.map +1 -0
  157. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.d.ts +139 -0
  158. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.js +143 -0
  159. package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.js.map +1 -0
  160. package/dist/models/ListIntegrationPolicyPodMonitorsRequest.d.ts +28 -0
  161. package/dist/models/ListIntegrationPolicyPodMonitorsRequest.js +62 -0
  162. package/dist/models/ListIntegrationPolicyPodMonitorsRequest.js.map +1 -0
  163. package/dist/models/ListIntegrationPolicyPodMonitorsResponse.d.ts +19 -0
  164. package/dist/models/ListIntegrationPolicyPodMonitorsResponse.js +69 -0
  165. package/dist/models/ListIntegrationPolicyPodMonitorsResponse.js.map +1 -0
  166. package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.d.ts +123 -0
  167. package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.js +134 -0
  168. package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.js.map +1 -0
  169. package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.d.ts +24 -0
  170. package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.js +62 -0
  171. package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.js.map +1 -0
  172. package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.d.ts +19 -0
  173. package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.js +69 -0
  174. package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.js.map +1 -0
  175. package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.d.ts +196 -0
  176. package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.js +215 -0
  177. package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.js.map +1 -0
  178. package/dist/models/ListPrometheusDashboardsRequest.d.ts +23 -0
  179. package/dist/models/ListPrometheusDashboardsRequest.js +60 -0
  180. package/dist/models/ListPrometheusDashboardsRequest.js.map +1 -0
  181. package/dist/models/ListPrometheusDashboardsResponse.d.ts +19 -0
  182. package/dist/models/ListPrometheusDashboardsResponse.js +69 -0
  183. package/dist/models/ListPrometheusDashboardsResponse.js.map +1 -0
  184. package/dist/models/ListPrometheusDashboardsResponseBody.d.ts +65 -0
  185. package/dist/models/ListPrometheusDashboardsResponseBody.js +97 -0
  186. package/dist/models/ListPrometheusDashboardsResponseBody.js.map +1 -0
  187. package/dist/models/ListPrometheusInstancesRequest.d.ts +97 -0
  188. package/dist/models/ListPrometheusInstancesRequest.js +98 -0
  189. package/dist/models/ListPrometheusInstancesRequest.js.map +1 -0
  190. package/dist/models/ListPrometheusInstancesResponse.d.ts +19 -0
  191. package/dist/models/ListPrometheusInstancesResponse.js +69 -0
  192. package/dist/models/ListPrometheusInstancesResponse.js.map +1 -0
  193. package/dist/models/ListPrometheusInstancesResponseBody.d.ts +146 -0
  194. package/dist/models/ListPrometheusInstancesResponseBody.js +145 -0
  195. package/dist/models/ListPrometheusInstancesResponseBody.js.map +1 -0
  196. package/dist/models/ListPrometheusInstancesShrinkRequest.d.ts +75 -0
  197. package/dist/models/ListPrometheusInstancesShrinkRequest.js +74 -0
  198. package/dist/models/ListPrometheusInstancesShrinkRequest.js.map +1 -0
  199. package/dist/models/ListPrometheusViewsRequest.d.ts +87 -0
  200. package/dist/models/ListPrometheusViewsRequest.js +100 -0
  201. package/dist/models/ListPrometheusViewsRequest.js.map +1 -0
  202. package/dist/models/ListPrometheusViewsResponse.d.ts +19 -0
  203. package/dist/models/ListPrometheusViewsResponse.js +69 -0
  204. package/dist/models/ListPrometheusViewsResponse.js.map +1 -0
  205. package/dist/models/ListPrometheusViewsResponseBody.d.ts +145 -0
  206. package/dist/models/ListPrometheusViewsResponseBody.js +140 -0
  207. package/dist/models/ListPrometheusViewsResponseBody.js.map +1 -0
  208. package/dist/models/ListPrometheusViewsShrinkRequest.d.ts +65 -0
  209. package/dist/models/ListPrometheusViewsShrinkRequest.js +76 -0
  210. package/dist/models/ListPrometheusViewsShrinkRequest.js.map +1 -0
  211. package/dist/models/ListPrometheusVirtualInstancesRequest.d.ts +18 -0
  212. package/dist/models/ListPrometheusVirtualInstancesRequest.js +58 -0
  213. package/dist/models/ListPrometheusVirtualInstancesRequest.js.map +1 -0
  214. package/dist/models/ListPrometheusVirtualInstancesResponse.d.ts +19 -0
  215. package/dist/models/ListPrometheusVirtualInstancesResponse.js +69 -0
  216. package/dist/models/ListPrometheusVirtualInstancesResponse.js.map +1 -0
  217. package/dist/models/ListPrometheusVirtualInstancesResponseBody.d.ts +64 -0
  218. package/dist/models/ListPrometheusVirtualInstancesResponseBody.js +92 -0
  219. package/dist/models/ListPrometheusVirtualInstancesResponseBody.js.map +1 -0
  220. package/dist/models/UpdateAddonReleaseRequest.d.ts +30 -0
  221. package/dist/models/UpdateAddonReleaseRequest.js +68 -0
  222. package/dist/models/UpdateAddonReleaseRequest.js.map +1 -0
  223. package/dist/models/UpdateAddonReleaseResponse.d.ts +19 -0
  224. package/dist/models/UpdateAddonReleaseResponse.js +69 -0
  225. package/dist/models/UpdateAddonReleaseResponse.js.map +1 -0
  226. package/dist/models/UpdateAddonReleaseResponseBody.d.ts +18 -0
  227. package/dist/models/UpdateAddonReleaseResponseBody.js +58 -0
  228. package/dist/models/UpdateAddonReleaseResponseBody.js.map +1 -0
  229. package/dist/models/UpdateAggTaskGroupRequest.d.ts +123 -0
  230. package/dist/models/UpdateAggTaskGroupRequest.js +112 -0
  231. package/dist/models/UpdateAggTaskGroupRequest.js.map +1 -0
  232. package/dist/models/UpdateAggTaskGroupResponse.d.ts +19 -0
  233. package/dist/models/UpdateAggTaskGroupResponse.js +69 -0
  234. package/dist/models/UpdateAggTaskGroupResponse.js.map +1 -0
  235. package/dist/models/UpdateAggTaskGroupResponseBody.d.ts +43 -0
  236. package/dist/models/UpdateAggTaskGroupResponseBody.js +68 -0
  237. package/dist/models/UpdateAggTaskGroupResponseBody.js.map +1 -0
  238. package/dist/models/UpdateAggTaskGroupStatusRequest.d.ts +21 -0
  239. package/dist/models/UpdateAggTaskGroupStatusRequest.js +58 -0
  240. package/dist/models/UpdateAggTaskGroupStatusRequest.js.map +1 -0
  241. package/dist/models/UpdateAggTaskGroupStatusResponse.d.ts +19 -0
  242. package/dist/models/UpdateAggTaskGroupStatusResponse.js +69 -0
  243. package/dist/models/UpdateAggTaskGroupStatusResponse.js.map +1 -0
  244. package/dist/models/UpdateAggTaskGroupStatusResponseBody.d.ts +43 -0
  245. package/dist/models/UpdateAggTaskGroupStatusResponseBody.js +68 -0
  246. package/dist/models/UpdateAggTaskGroupStatusResponseBody.js.map +1 -0
  247. package/dist/models/UpdateIntegrationPolicyRequest.d.ts +51 -0
  248. package/dist/models/UpdateIntegrationPolicyRequest.js +88 -0
  249. package/dist/models/UpdateIntegrationPolicyRequest.js.map +1 -0
  250. package/dist/models/UpdateIntegrationPolicyResponse.d.ts +19 -0
  251. package/dist/models/UpdateIntegrationPolicyResponse.js +69 -0
  252. package/dist/models/UpdateIntegrationPolicyResponse.js.map +1 -0
  253. package/dist/models/UpdateIntegrationPolicyResponseBody.d.ts +21 -0
  254. package/dist/models/UpdateIntegrationPolicyResponseBody.js +58 -0
  255. package/dist/models/UpdateIntegrationPolicyResponseBody.js.map +1 -0
  256. package/dist/models/UpdatePrometheusInstanceRequest.d.ts +71 -0
  257. package/dist/models/UpdatePrometheusInstanceRequest.js +78 -0
  258. package/dist/models/UpdatePrometheusInstanceRequest.js.map +1 -0
  259. package/dist/models/UpdatePrometheusInstanceResponse.d.ts +19 -0
  260. package/dist/models/UpdatePrometheusInstanceResponse.js +69 -0
  261. package/dist/models/UpdatePrometheusInstanceResponse.js.map +1 -0
  262. package/dist/models/UpdatePrometheusInstanceResponseBody.d.ts +26 -0
  263. package/dist/models/UpdatePrometheusInstanceResponseBody.js +60 -0
  264. package/dist/models/UpdatePrometheusInstanceResponseBody.js.map +1 -0
  265. package/dist/models/UpdatePrometheusViewRequest.d.ts +71 -0
  266. package/dist/models/UpdatePrometheusViewRequest.js +96 -0
  267. package/dist/models/UpdatePrometheusViewRequest.js.map +1 -0
  268. package/dist/models/UpdatePrometheusViewResponse.d.ts +19 -0
  269. package/dist/models/UpdatePrometheusViewResponse.js +69 -0
  270. package/dist/models/UpdatePrometheusViewResponse.js.map +1 -0
  271. package/dist/models/UpdatePrometheusViewResponseBody.d.ts +26 -0
  272. package/dist/models/UpdatePrometheusViewResponseBody.js +60 -0
  273. package/dist/models/UpdatePrometheusViewResponseBody.js.map +1 -0
  274. package/dist/models/model.d.ts +143 -0
  275. package/dist/models/model.js +295 -6
  276. package/dist/models/model.js.map +1 -1
  277. package/package.json +1 -1
  278. package/src/client.ts +2123 -365
  279. package/src/models/AlertRuleCondition.ts +6 -0
  280. package/src/models/AlertRuleQuery.ts +6 -0
  281. package/src/models/CreateAddonReleaseRequest.ts +100 -0
  282. package/src/models/CreateAddonReleaseResponse.ts +40 -0
  283. package/src/models/CreateAddonReleaseResponseBody.ts +286 -0
  284. package/src/models/CreateAggTaskGroupRequest.ts +191 -0
  285. package/src/models/CreateAggTaskGroupResponse.ts +40 -0
  286. package/src/models/CreateAggTaskGroupResponseBody.ts +66 -0
  287. package/src/models/CreateIntegrationPolicyRequest.ts +149 -0
  288. package/src/models/CreateIntegrationPolicyResponse.ts +40 -0
  289. package/src/models/CreateIntegrationPolicyResponseBody.ts +109 -0
  290. package/src/models/CreatePrometheusViewRequest.ts +177 -0
  291. package/src/models/CreatePrometheusViewResponse.ts +40 -0
  292. package/src/models/CreatePrometheusViewResponseBody.ts +41 -0
  293. package/src/models/CreatePrometheusVirtualInstanceRequest.ts +34 -0
  294. package/src/models/CreatePrometheusVirtualInstanceResponse.ts +40 -0
  295. package/src/models/CreatePrometheusVirtualInstanceResponseBody.ts +102 -0
  296. package/src/models/DeleteAddonReleaseRequest.ts +45 -0
  297. package/src/models/DeleteAddonReleaseResponse.ts +40 -0
  298. package/src/models/DeleteAddonReleaseResponseBody.ts +31 -0
  299. package/src/models/DeleteAggTaskGroupResponse.ts +40 -0
  300. package/src/models/DeleteAggTaskGroupResponseBody.ts +31 -0
  301. package/src/models/DeleteIntegrationPolicyRequest.ts +31 -0
  302. package/src/models/DeleteIntegrationPolicyResponse.ts +40 -0
  303. package/src/models/DeleteIntegrationPolicyResponseBody.ts +34 -0
  304. package/src/models/DeletePrometheusInstanceResponse.ts +40 -0
  305. package/src/models/DeletePrometheusInstanceResponseBody.ts +34 -0
  306. package/src/models/DeletePrometheusViewResponse.ts +40 -0
  307. package/src/models/DeletePrometheusViewResponseBody.ts +34 -0
  308. package/src/models/GetAddonReleaseResponse.ts +40 -0
  309. package/src/models/GetAddonReleaseResponseBody.ts +296 -0
  310. package/src/models/GetAggTaskGroupResponse.ts +40 -0
  311. package/src/models/GetAggTaskGroupResponseBody.ts +250 -0
  312. package/src/models/GetEntityStoreDataResponseBody.ts +76 -0
  313. package/src/models/GetIntegrationPolicyResponse.ts +40 -0
  314. package/src/models/GetIntegrationPolicyResponseBody.ts +593 -0
  315. package/src/models/GetPrometheusInstanceRequest.ts +38 -0
  316. package/src/models/GetPrometheusInstanceResponse.ts +40 -0
  317. package/src/models/GetPrometheusInstanceResponseBody.ts +349 -0
  318. package/src/models/GetPrometheusViewRequest.ts +38 -0
  319. package/src/models/GetPrometheusViewResponse.ts +40 -0
  320. package/src/models/GetPrometheusViewResponseBody.ts +321 -0
  321. package/src/models/ListAddonReleasesRequest.ts +38 -0
  322. package/src/models/ListAddonReleasesResponse.ts +40 -0
  323. package/src/models/ListAddonReleasesResponseBody.ts +334 -0
  324. package/src/models/ListAggTaskGroupsRequest.ts +113 -0
  325. package/src/models/ListAggTaskGroupsResponse.ts +40 -0
  326. package/src/models/ListAggTaskGroupsResponseBody.ts +244 -0
  327. package/src/models/ListAggTaskGroupsShrinkRequest.ts +76 -0
  328. package/src/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.ts +41 -0
  329. package/src/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.ts +40 -0
  330. package/src/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.ts +219 -0
  331. package/src/models/ListIntegrationPolicyPodMonitorsRequest.ts +45 -0
  332. package/src/models/ListIntegrationPolicyPodMonitorsResponse.ts +40 -0
  333. package/src/models/ListIntegrationPolicyPodMonitorsResponseBody.ts +194 -0
  334. package/src/models/ListIntegrationPolicyStorageRequirementsRequest.ts +41 -0
  335. package/src/models/ListIntegrationPolicyStorageRequirementsResponse.ts +40 -0
  336. package/src/models/ListIntegrationPolicyStorageRequirementsResponseBody.ts +322 -0
  337. package/src/models/ListPrometheusDashboardsRequest.ts +38 -0
  338. package/src/models/ListPrometheusDashboardsResponse.ts +40 -0
  339. package/src/models/ListPrometheusDashboardsResponseBody.ts +108 -0
  340. package/src/models/ListPrometheusInstancesRequest.ts +141 -0
  341. package/src/models/ListPrometheusInstancesResponse.ts +40 -0
  342. package/src/models/ListPrometheusInstancesResponseBody.ts +228 -0
  343. package/src/models/ListPrometheusInstancesShrinkRequest.ts +104 -0
  344. package/src/models/ListPrometheusViewsRequest.ts +133 -0
  345. package/src/models/ListPrometheusViewsResponse.ts +40 -0
  346. package/src/models/ListPrometheusViewsResponseBody.ts +222 -0
  347. package/src/models/ListPrometheusViewsShrinkRequest.ts +96 -0
  348. package/src/models/ListPrometheusVirtualInstancesRequest.ts +31 -0
  349. package/src/models/ListPrometheusVirtualInstancesResponse.ts +40 -0
  350. package/src/models/ListPrometheusVirtualInstancesResponseBody.ts +102 -0
  351. package/src/models/UpdateAddonReleaseRequest.ts +52 -0
  352. package/src/models/UpdateAddonReleaseResponse.ts +40 -0
  353. package/src/models/UpdateAddonReleaseResponseBody.ts +31 -0
  354. package/src/models/UpdateAggTaskGroupRequest.ts +181 -0
  355. package/src/models/UpdateAggTaskGroupResponse.ts +40 -0
  356. package/src/models/UpdateAggTaskGroupResponseBody.ts +66 -0
  357. package/src/models/UpdateAggTaskGroupStatusRequest.ts +34 -0
  358. package/src/models/UpdateAggTaskGroupStatusResponse.ts +40 -0
  359. package/src/models/UpdateAggTaskGroupStatusResponseBody.ts +66 -0
  360. package/src/models/UpdateIntegrationPolicyRequest.ts +85 -0
  361. package/src/models/UpdateIntegrationPolicyResponse.ts +40 -0
  362. package/src/models/UpdateIntegrationPolicyResponseBody.ts +34 -0
  363. package/src/models/UpdatePrometheusInstanceRequest.ts +104 -0
  364. package/src/models/UpdatePrometheusInstanceResponse.ts +40 -0
  365. package/src/models/UpdatePrometheusInstanceResponseBody.ts +41 -0
  366. package/src/models/UpdatePrometheusViewRequest.ts +113 -0
  367. package/src/models/UpdatePrometheusViewResponse.ts +40 -0
  368. package/src/models/UpdatePrometheusViewResponseBody.ts +41 -0
  369. package/src/models/model.ts +143 -0
package/src/client.ts CHANGED
@@ -29,6 +29,198 @@ export default class Client extends OpenApi {
29
29
  return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
30
30
  }
31
31
 
32
+ /**
33
+ * 安装接入组件,代表进行一次接入
34
+ *
35
+ * @param request - CreateAddonReleaseRequest
36
+ * @param headers - map
37
+ * @param runtime - runtime options for this request RuntimeOptions
38
+ * @returns CreateAddonReleaseResponse
39
+ */
40
+ async createAddonReleaseWithOptions(policyId: string, request: $_model.CreateAddonReleaseRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAddonReleaseResponse> {
41
+ request.validate();
42
+ let body : {[key: string ]: any} = { };
43
+ if (!$dara.isNull(request.addonName)) {
44
+ body["addonName"] = request.addonName;
45
+ }
46
+
47
+ if (!$dara.isNull(request.aliyunLang)) {
48
+ body["aliyunLang"] = request.aliyunLang;
49
+ }
50
+
51
+ if (!$dara.isNull(request.dryRun)) {
52
+ body["dryRun"] = request.dryRun;
53
+ }
54
+
55
+ if (!$dara.isNull(request.entityRules)) {
56
+ body["entityRules"] = request.entityRules;
57
+ }
58
+
59
+ if (!$dara.isNull(request.envType)) {
60
+ body["envType"] = request.envType;
61
+ }
62
+
63
+ if (!$dara.isNull(request.parentAddonReleaseId)) {
64
+ body["parentAddonReleaseId"] = request.parentAddonReleaseId;
65
+ }
66
+
67
+ if (!$dara.isNull(request.releaseName)) {
68
+ body["releaseName"] = request.releaseName;
69
+ }
70
+
71
+ if (!$dara.isNull(request.values)) {
72
+ body["values"] = request.values;
73
+ }
74
+
75
+ if (!$dara.isNull(request.version)) {
76
+ body["version"] = request.version;
77
+ }
78
+
79
+ if (!$dara.isNull(request.workspace)) {
80
+ body["workspace"] = request.workspace;
81
+ }
82
+
83
+ let req = new $OpenApiUtil.OpenApiRequest({
84
+ headers: headers,
85
+ body: OpenApiUtil.parseToMap(body),
86
+ });
87
+ let params = new $OpenApiUtil.Params({
88
+ action: "CreateAddonRelease",
89
+ version: "2024-03-30",
90
+ protocol: "HTTPS",
91
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
92
+ method: "POST",
93
+ authType: "AK",
94
+ style: "ROA",
95
+ reqBodyType: "json",
96
+ bodyType: "json",
97
+ });
98
+ return $dara.cast<$_model.CreateAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.CreateAddonReleaseResponse({}));
99
+ }
100
+
101
+ /**
102
+ * 安装接入组件,代表进行一次接入
103
+ *
104
+ * @param request - CreateAddonReleaseRequest
105
+ * @returns CreateAddonReleaseResponse
106
+ */
107
+ async createAddonRelease(policyId: string, request: $_model.CreateAddonReleaseRequest): Promise<$_model.CreateAddonReleaseResponse> {
108
+ let runtime = new $dara.RuntimeOptions({ });
109
+ let headers : {[key: string ]: string} = { };
110
+ return await this.createAddonReleaseWithOptions(policyId, request, headers, runtime);
111
+ }
112
+
113
+ /**
114
+ * 创建聚合任务组
115
+ *
116
+ * @param request - CreateAggTaskGroupRequest
117
+ * @param headers - map
118
+ * @param runtime - runtime options for this request RuntimeOptions
119
+ * @returns CreateAggTaskGroupResponse
120
+ */
121
+ async createAggTaskGroupWithOptions(instanceId: string, request: $_model.CreateAggTaskGroupRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAggTaskGroupResponse> {
122
+ request.validate();
123
+ let query : {[key: string ]: any} = { };
124
+ if (!$dara.isNull(request.overrideIfExists)) {
125
+ query["overrideIfExists"] = request.overrideIfExists;
126
+ }
127
+
128
+ let body : {[key: string ]: any} = { };
129
+ if (!$dara.isNull(request.aggTaskGroupConfig)) {
130
+ body["aggTaskGroupConfig"] = request.aggTaskGroupConfig;
131
+ }
132
+
133
+ if (!$dara.isNull(request.aggTaskGroupConfigType)) {
134
+ body["aggTaskGroupConfigType"] = request.aggTaskGroupConfigType;
135
+ }
136
+
137
+ if (!$dara.isNull(request.aggTaskGroupName)) {
138
+ body["aggTaskGroupName"] = request.aggTaskGroupName;
139
+ }
140
+
141
+ if (!$dara.isNull(request.cronExpr)) {
142
+ body["cronExpr"] = request.cronExpr;
143
+ }
144
+
145
+ if (!$dara.isNull(request.delay)) {
146
+ body["delay"] = request.delay;
147
+ }
148
+
149
+ if (!$dara.isNull(request.description)) {
150
+ body["description"] = request.description;
151
+ }
152
+
153
+ if (!$dara.isNull(request.fromTime)) {
154
+ body["fromTime"] = request.fromTime;
155
+ }
156
+
157
+ if (!$dara.isNull(request.maxRetries)) {
158
+ body["maxRetries"] = request.maxRetries;
159
+ }
160
+
161
+ if (!$dara.isNull(request.maxRunTimeInSeconds)) {
162
+ body["maxRunTimeInSeconds"] = request.maxRunTimeInSeconds;
163
+ }
164
+
165
+ if (!$dara.isNull(request.precheckString)) {
166
+ body["precheckString"] = request.precheckString;
167
+ }
168
+
169
+ if (!$dara.isNull(request.scheduleMode)) {
170
+ body["scheduleMode"] = request.scheduleMode;
171
+ }
172
+
173
+ if (!$dara.isNull(request.scheduleTimeExpr)) {
174
+ body["scheduleTimeExpr"] = request.scheduleTimeExpr;
175
+ }
176
+
177
+ if (!$dara.isNull(request.status)) {
178
+ body["status"] = request.status;
179
+ }
180
+
181
+ if (!$dara.isNull(request.tags)) {
182
+ body["tags"] = request.tags;
183
+ }
184
+
185
+ if (!$dara.isNull(request.targetPrometheusId)) {
186
+ body["targetPrometheusId"] = request.targetPrometheusId;
187
+ }
188
+
189
+ if (!$dara.isNull(request.toTime)) {
190
+ body["toTime"] = request.toTime;
191
+ }
192
+
193
+ let req = new $OpenApiUtil.OpenApiRequest({
194
+ headers: headers,
195
+ query: OpenApiUtil.query(query),
196
+ body: OpenApiUtil.parseToMap(body),
197
+ });
198
+ let params = new $OpenApiUtil.Params({
199
+ action: "CreateAggTaskGroup",
200
+ version: "2024-03-30",
201
+ protocol: "HTTPS",
202
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups`,
203
+ method: "POST",
204
+ authType: "AK",
205
+ style: "ROA",
206
+ reqBodyType: "json",
207
+ bodyType: "json",
208
+ });
209
+ return $dara.cast<$_model.CreateAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateAggTaskGroupResponse({}));
210
+ }
211
+
212
+ /**
213
+ * 创建聚合任务组
214
+ *
215
+ * @param request - CreateAggTaskGroupRequest
216
+ * @returns CreateAggTaskGroupResponse
217
+ */
218
+ async createAggTaskGroup(instanceId: string, request: $_model.CreateAggTaskGroupRequest): Promise<$_model.CreateAggTaskGroupResponse> {
219
+ let runtime = new $dara.RuntimeOptions({ });
220
+ let headers : {[key: string ]: string} = { };
221
+ return await this.createAggTaskGroupWithOptions(instanceId, request, headers, runtime);
222
+ }
223
+
32
224
  /**
33
225
  * 创建EntityStore相关存储
34
226
  *
@@ -64,6 +256,71 @@ export default class Client extends OpenApi {
64
256
  return await this.createEntityStoreWithOptions(workspaceName, headers, runtime);
65
257
  }
66
258
 
259
+ /**
260
+ * 创建接入中心策略
261
+ *
262
+ * @param request - CreateIntegrationPolicyRequest
263
+ * @param headers - map
264
+ * @param runtime - runtime options for this request RuntimeOptions
265
+ * @returns CreateIntegrationPolicyResponse
266
+ */
267
+ async createIntegrationPolicyWithOptions(request: $_model.CreateIntegrationPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIntegrationPolicyResponse> {
268
+ request.validate();
269
+ let body : {[key: string ]: any} = { };
270
+ if (!$dara.isNull(request.entityGroup)) {
271
+ body["entityGroup"] = request.entityGroup;
272
+ }
273
+
274
+ if (!$dara.isNull(request.policyName)) {
275
+ body["policyName"] = request.policyName;
276
+ }
277
+
278
+ if (!$dara.isNull(request.policyType)) {
279
+ body["policyType"] = request.policyType;
280
+ }
281
+
282
+ if (!$dara.isNull(request.resourceGroupId)) {
283
+ body["resourceGroupId"] = request.resourceGroupId;
284
+ }
285
+
286
+ if (!$dara.isNull(request.tags)) {
287
+ body["tags"] = request.tags;
288
+ }
289
+
290
+ if (!$dara.isNull(request.workspace)) {
291
+ body["workspace"] = request.workspace;
292
+ }
293
+
294
+ let req = new $OpenApiUtil.OpenApiRequest({
295
+ headers: headers,
296
+ body: OpenApiUtil.parseToMap(body),
297
+ });
298
+ let params = new $OpenApiUtil.Params({
299
+ action: "CreateIntegrationPolicy",
300
+ version: "2024-03-30",
301
+ protocol: "HTTPS",
302
+ pathname: `/integration-policies`,
303
+ method: "POST",
304
+ authType: "AK",
305
+ style: "ROA",
306
+ reqBodyType: "json",
307
+ bodyType: "json",
308
+ });
309
+ return $dara.cast<$_model.CreateIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.CreateIntegrationPolicyResponse({}));
310
+ }
311
+
312
+ /**
313
+ * 创建接入中心策略
314
+ *
315
+ * @param request - CreateIntegrationPolicyRequest
316
+ * @returns CreateIntegrationPolicyResponse
317
+ */
318
+ async createIntegrationPolicy(request: $_model.CreateIntegrationPolicyRequest): Promise<$_model.CreateIntegrationPolicyResponse> {
319
+ let runtime = new $dara.RuntimeOptions({ });
320
+ let headers : {[key: string ]: string} = { };
321
+ return await this.createIntegrationPolicyWithOptions(request, headers, runtime);
322
+ }
323
+
67
324
  /**
68
325
  * 创建Prometheus监控实例
69
326
  *
@@ -154,42 +411,54 @@ export default class Client extends OpenApi {
154
411
  }
155
412
 
156
413
  /**
157
- * 创建Service
414
+ * 创建prometheus视图
158
415
  *
159
- * @param request - CreateServiceRequest
416
+ * @param request - CreatePrometheusViewRequest
160
417
  * @param headers - map
161
418
  * @param runtime - runtime options for this request RuntimeOptions
162
- * @returns CreateServiceResponse
419
+ * @returns CreatePrometheusViewResponse
163
420
  */
164
- async createServiceWithOptions(workspace: string, request: $_model.CreateServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceResponse> {
421
+ async createPrometheusViewWithOptions(request: $_model.CreatePrometheusViewRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePrometheusViewResponse> {
165
422
  request.validate();
166
423
  let body : {[key: string ]: any} = { };
167
- if (!$dara.isNull(request.attributes)) {
168
- body["attributes"] = request.attributes;
424
+ if (!$dara.isNull(request.authFreeReadPolicy)) {
425
+ body["authFreeReadPolicy"] = request.authFreeReadPolicy;
169
426
  }
170
427
 
171
- if (!$dara.isNull(request.description)) {
172
- body["description"] = request.description;
428
+ if (!$dara.isNull(request.enableAuthFreeRead)) {
429
+ body["enableAuthFreeRead"] = request.enableAuthFreeRead;
173
430
  }
174
431
 
175
- if (!$dara.isNull(request.displayName)) {
176
- body["displayName"] = request.displayName;
432
+ if (!$dara.isNull(request.enableAuthToken)) {
433
+ body["enableAuthToken"] = request.enableAuthToken;
177
434
  }
178
435
 
179
- if (!$dara.isNull(request.pid)) {
180
- body["pid"] = request.pid;
436
+ if (!$dara.isNull(request.prometheusInstances)) {
437
+ body["prometheusInstances"] = request.prometheusInstances;
181
438
  }
182
439
 
183
- if (!$dara.isNull(request.serviceName)) {
184
- body["serviceName"] = request.serviceName;
440
+ if (!$dara.isNull(request.prometheusViewName)) {
441
+ body["prometheusViewName"] = request.prometheusViewName;
185
442
  }
186
443
 
187
- if (!$dara.isNull(request.serviceStatus)) {
188
- body["serviceStatus"] = request.serviceStatus;
444
+ if (!$dara.isNull(request.resourceGroupId)) {
445
+ body["resourceGroupId"] = request.resourceGroupId;
189
446
  }
190
447
 
191
- if (!$dara.isNull(request.serviceType)) {
192
- body["serviceType"] = request.serviceType;
448
+ if (!$dara.isNull(request.status)) {
449
+ body["status"] = request.status;
450
+ }
451
+
452
+ if (!$dara.isNull(request.tags)) {
453
+ body["tags"] = request.tags;
454
+ }
455
+
456
+ if (!$dara.isNull(request.version)) {
457
+ body["version"] = request.version;
458
+ }
459
+
460
+ if (!$dara.isNull(request.workspace)) {
461
+ body["workspace"] = request.workspace;
193
462
  }
194
463
 
195
464
  let req = new $OpenApiUtil.OpenApiRequest({
@@ -197,251 +466,260 @@ export default class Client extends OpenApi {
197
466
  body: OpenApiUtil.parseToMap(body),
198
467
  });
199
468
  let params = new $OpenApiUtil.Params({
200
- action: "CreateService",
469
+ action: "CreatePrometheusView",
201
470
  version: "2024-03-30",
202
471
  protocol: "HTTPS",
203
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service`,
472
+ pathname: `/prometheus-views`,
204
473
  method: "POST",
205
474
  authType: "AK",
206
475
  style: "ROA",
207
476
  reqBodyType: "json",
208
477
  bodyType: "json",
209
478
  });
210
- return $dara.cast<$_model.CreateServiceResponse>(await this.callApi(params, req, runtime), new $_model.CreateServiceResponse({}));
479
+ return $dara.cast<$_model.CreatePrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.CreatePrometheusViewResponse({}));
211
480
  }
212
481
 
213
482
  /**
214
- * 创建Service
483
+ * 创建prometheus视图
215
484
  *
216
- * @param request - CreateServiceRequest
217
- * @returns CreateServiceResponse
485
+ * @param request - CreatePrometheusViewRequest
486
+ * @returns CreatePrometheusViewResponse
218
487
  */
219
- async createService(workspace: string, request: $_model.CreateServiceRequest): Promise<$_model.CreateServiceResponse> {
488
+ async createPrometheusView(request: $_model.CreatePrometheusViewRequest): Promise<$_model.CreatePrometheusViewResponse> {
220
489
  let runtime = new $dara.RuntimeOptions({ });
221
490
  let headers : {[key: string ]: string} = { };
222
- return await this.createServiceWithOptions(workspace, request, headers, runtime);
491
+ return await this.createPrometheusViewWithOptions(request, headers, runtime);
223
492
  }
224
493
 
225
494
  /**
226
- * 创建票据
495
+ * 创建Prometheus监控实例
227
496
  *
228
- * @param request - CreateTicketRequest
497
+ * @param request - CreatePrometheusVirtualInstanceRequest
229
498
  * @param headers - map
230
499
  * @param runtime - runtime options for this request RuntimeOptions
231
- * @returns CreateTicketResponse
500
+ * @returns CreatePrometheusVirtualInstanceResponse
232
501
  */
233
- async createTicketWithOptions(request: $_model.CreateTicketRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateTicketResponse> {
502
+ async createPrometheusVirtualInstanceWithOptions(request: $_model.CreatePrometheusVirtualInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePrometheusVirtualInstanceResponse> {
234
503
  request.validate();
235
- let query : {[key: string ]: any} = { };
236
- if (!$dara.isNull(request.accessTokenExpirationTime)) {
237
- query["accessTokenExpirationTime"] = request.accessTokenExpirationTime;
238
- }
239
-
240
- if (!$dara.isNull(request.expirationTime)) {
241
- query["expirationTime"] = request.expirationTime;
504
+ let body : {[key: string ]: any} = { };
505
+ if (!$dara.isNull(request.namespace)) {
506
+ body["namespace"] = request.namespace;
242
507
  }
243
508
 
244
509
  let req = new $OpenApiUtil.OpenApiRequest({
245
510
  headers: headers,
246
- query: OpenApiUtil.query(query),
511
+ body: OpenApiUtil.parseToMap(body),
247
512
  });
248
513
  let params = new $OpenApiUtil.Params({
249
- action: "CreateTicket",
514
+ action: "CreatePrometheusVirtualInstance",
250
515
  version: "2024-03-30",
251
516
  protocol: "HTTPS",
252
- pathname: `/tickets`,
517
+ pathname: `/virtual-instances`,
253
518
  method: "POST",
254
519
  authType: "AK",
255
520
  style: "ROA",
256
521
  reqBodyType: "json",
257
522
  bodyType: "json",
258
523
  });
259
- return $dara.cast<$_model.CreateTicketResponse>(await this.callApi(params, req, runtime), new $_model.CreateTicketResponse({}));
524
+ return $dara.cast<$_model.CreatePrometheusVirtualInstanceResponse>(await this.callApi(params, req, runtime), new $_model.CreatePrometheusVirtualInstanceResponse({}));
260
525
  }
261
526
 
262
527
  /**
263
- * 创建票据
528
+ * 创建Prometheus监控实例
264
529
  *
265
- * @param request - CreateTicketRequest
266
- * @returns CreateTicketResponse
530
+ * @param request - CreatePrometheusVirtualInstanceRequest
531
+ * @returns CreatePrometheusVirtualInstanceResponse
267
532
  */
268
- async createTicket(request: $_model.CreateTicketRequest): Promise<$_model.CreateTicketResponse> {
533
+ async createPrometheusVirtualInstance(request: $_model.CreatePrometheusVirtualInstanceRequest): Promise<$_model.CreatePrometheusVirtualInstanceResponse> {
269
534
  let runtime = new $dara.RuntimeOptions({ });
270
535
  let headers : {[key: string ]: string} = { };
271
- return await this.createTicketWithOptions(request, headers, runtime);
536
+ return await this.createPrometheusVirtualInstanceWithOptions(request, headers, runtime);
272
537
  }
273
538
 
274
539
  /**
275
- * 创建Umodel配置
540
+ * 创建Service
276
541
  *
277
- * @param request - CreateUmodelRequest
542
+ * @param request - CreateServiceRequest
278
543
  * @param headers - map
279
544
  * @param runtime - runtime options for this request RuntimeOptions
280
- * @returns CreateUmodelResponse
545
+ * @returns CreateServiceResponse
281
546
  */
282
- async createUmodelWithOptions(workspace: string, request: $_model.CreateUmodelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUmodelResponse> {
547
+ async createServiceWithOptions(workspace: string, request: $_model.CreateServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceResponse> {
283
548
  request.validate();
284
549
  let body : {[key: string ]: any} = { };
550
+ if (!$dara.isNull(request.attributes)) {
551
+ body["attributes"] = request.attributes;
552
+ }
553
+
285
554
  if (!$dara.isNull(request.description)) {
286
555
  body["description"] = request.description;
287
556
  }
288
557
 
289
- let req = new $OpenApiUtil.OpenApiRequest({
290
- headers: headers,
291
- body: OpenApiUtil.parseToMap(body),
292
- });
293
- let params = new $OpenApiUtil.Params({
294
- action: "CreateUmodel",
295
- version: "2024-03-30",
296
- protocol: "HTTPS",
297
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
298
- method: "POST",
299
- authType: "AK",
300
- style: "ROA",
301
- reqBodyType: "json",
302
- bodyType: "json",
303
- });
304
- return $dara.cast<$_model.CreateUmodelResponse>(await this.callApi(params, req, runtime), new $_model.CreateUmodelResponse({}));
305
- }
558
+ if (!$dara.isNull(request.displayName)) {
559
+ body["displayName"] = request.displayName;
560
+ }
306
561
 
307
- /**
308
- * 创建Umodel配置
309
- *
310
- * @param request - CreateUmodelRequest
311
- * @returns CreateUmodelResponse
312
- */
313
- async createUmodel(workspace: string, request: $_model.CreateUmodelRequest): Promise<$_model.CreateUmodelResponse> {
314
- let runtime = new $dara.RuntimeOptions({ });
315
- let headers : {[key: string ]: string} = { };
316
- return await this.createUmodelWithOptions(workspace, request, headers, runtime);
317
- }
562
+ if (!$dara.isNull(request.pid)) {
563
+ body["pid"] = request.pid;
564
+ }
565
+
566
+ if (!$dara.isNull(request.serviceName)) {
567
+ body["serviceName"] = request.serviceName;
568
+ }
569
+
570
+ if (!$dara.isNull(request.serviceStatus)) {
571
+ body["serviceStatus"] = request.serviceStatus;
572
+ }
573
+
574
+ if (!$dara.isNull(request.serviceType)) {
575
+ body["serviceType"] = request.serviceType;
576
+ }
318
577
 
319
- /**
320
- * 删除EntityStore相关存储
321
- *
322
- * @param headers - map
323
- * @param runtime - runtime options for this request RuntimeOptions
324
- * @returns DeleteEntityStoreResponse
325
- */
326
- async deleteEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEntityStoreResponse> {
327
578
  let req = new $OpenApiUtil.OpenApiRequest({
328
579
  headers: headers,
580
+ body: OpenApiUtil.parseToMap(body),
329
581
  });
330
582
  let params = new $OpenApiUtil.Params({
331
- action: "DeleteEntityStore",
583
+ action: "CreateService",
332
584
  version: "2024-03-30",
333
585
  protocol: "HTTPS",
334
- pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
335
- method: "DELETE",
586
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service`,
587
+ method: "POST",
336
588
  authType: "AK",
337
589
  style: "ROA",
338
590
  reqBodyType: "json",
339
591
  bodyType: "json",
340
592
  });
341
- return $dara.cast<$_model.DeleteEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEntityStoreResponse({}));
593
+ return $dara.cast<$_model.CreateServiceResponse>(await this.callApi(params, req, runtime), new $_model.CreateServiceResponse({}));
342
594
  }
343
595
 
344
596
  /**
345
- * 删除EntityStore相关存储
346
- * @returns DeleteEntityStoreResponse
597
+ * 创建Service
598
+ *
599
+ * @param request - CreateServiceRequest
600
+ * @returns CreateServiceResponse
347
601
  */
348
- async deleteEntityStore(workspaceName: string): Promise<$_model.DeleteEntityStoreResponse> {
602
+ async createService(workspace: string, request: $_model.CreateServiceRequest): Promise<$_model.CreateServiceResponse> {
349
603
  let runtime = new $dara.RuntimeOptions({ });
350
604
  let headers : {[key: string ]: string} = { };
351
- return await this.deleteEntityStoreWithOptions(workspaceName, headers, runtime);
605
+ return await this.createServiceWithOptions(workspace, request, headers, runtime);
352
606
  }
353
607
 
354
608
  /**
355
- * 删除Service
609
+ * 创建票据
356
610
  *
611
+ * @param request - CreateTicketRequest
357
612
  * @param headers - map
358
613
  * @param runtime - runtime options for this request RuntimeOptions
359
- * @returns DeleteServiceResponse
614
+ * @returns CreateTicketResponse
360
615
  */
361
- async deleteServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteServiceResponse> {
616
+ async createTicketWithOptions(request: $_model.CreateTicketRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateTicketResponse> {
617
+ request.validate();
618
+ let query : {[key: string ]: any} = { };
619
+ if (!$dara.isNull(request.accessTokenExpirationTime)) {
620
+ query["accessTokenExpirationTime"] = request.accessTokenExpirationTime;
621
+ }
622
+
623
+ if (!$dara.isNull(request.expirationTime)) {
624
+ query["expirationTime"] = request.expirationTime;
625
+ }
626
+
362
627
  let req = new $OpenApiUtil.OpenApiRequest({
363
628
  headers: headers,
629
+ query: OpenApiUtil.query(query),
364
630
  });
365
631
  let params = new $OpenApiUtil.Params({
366
- action: "DeleteService",
632
+ action: "CreateTicket",
367
633
  version: "2024-03-30",
368
634
  protocol: "HTTPS",
369
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
370
- method: "DELETE",
635
+ pathname: `/tickets`,
636
+ method: "POST",
371
637
  authType: "AK",
372
638
  style: "ROA",
373
639
  reqBodyType: "json",
374
640
  bodyType: "json",
375
641
  });
376
- return $dara.cast<$_model.DeleteServiceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteServiceResponse({}));
642
+ return $dara.cast<$_model.CreateTicketResponse>(await this.callApi(params, req, runtime), new $_model.CreateTicketResponse({}));
377
643
  }
378
644
 
379
645
  /**
380
- * 删除Service
381
- * @returns DeleteServiceResponse
646
+ * 创建票据
647
+ *
648
+ * @param request - CreateTicketRequest
649
+ * @returns CreateTicketResponse
382
650
  */
383
- async deleteService(workspace: string, serviceId: string): Promise<$_model.DeleteServiceResponse> {
651
+ async createTicket(request: $_model.CreateTicketRequest): Promise<$_model.CreateTicketResponse> {
384
652
  let runtime = new $dara.RuntimeOptions({ });
385
653
  let headers : {[key: string ]: string} = { };
386
- return await this.deleteServiceWithOptions(workspace, serviceId, headers, runtime);
654
+ return await this.createTicketWithOptions(request, headers, runtime);
387
655
  }
388
656
 
389
657
  /**
390
- * 删除Umodel配置信息
658
+ * 创建Umodel配置
391
659
  *
660
+ * @param request - CreateUmodelRequest
392
661
  * @param headers - map
393
662
  * @param runtime - runtime options for this request RuntimeOptions
394
- * @returns DeleteUmodelResponse
663
+ * @returns CreateUmodelResponse
395
664
  */
396
- async deleteUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelResponse> {
665
+ async createUmodelWithOptions(workspace: string, request: $_model.CreateUmodelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUmodelResponse> {
666
+ request.validate();
667
+ let body : {[key: string ]: any} = { };
668
+ if (!$dara.isNull(request.description)) {
669
+ body["description"] = request.description;
670
+ }
671
+
397
672
  let req = new $OpenApiUtil.OpenApiRequest({
398
673
  headers: headers,
674
+ body: OpenApiUtil.parseToMap(body),
399
675
  });
400
676
  let params = new $OpenApiUtil.Params({
401
- action: "DeleteUmodel",
677
+ action: "CreateUmodel",
402
678
  version: "2024-03-30",
403
679
  protocol: "HTTPS",
404
680
  pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
405
- method: "DELETE",
681
+ method: "POST",
406
682
  authType: "AK",
407
683
  style: "ROA",
408
684
  reqBodyType: "json",
409
685
  bodyType: "json",
410
686
  });
411
- return $dara.cast<$_model.DeleteUmodelResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelResponse({}));
687
+ return $dara.cast<$_model.CreateUmodelResponse>(await this.callApi(params, req, runtime), new $_model.CreateUmodelResponse({}));
412
688
  }
413
689
 
414
690
  /**
415
- * 删除Umodel配置信息
416
- * @returns DeleteUmodelResponse
691
+ * 创建Umodel配置
692
+ *
693
+ * @param request - CreateUmodelRequest
694
+ * @returns CreateUmodelResponse
417
695
  */
418
- async deleteUmodel(workspace: string): Promise<$_model.DeleteUmodelResponse> {
696
+ async createUmodel(workspace: string, request: $_model.CreateUmodelRequest): Promise<$_model.CreateUmodelResponse> {
419
697
  let runtime = new $dara.RuntimeOptions({ });
420
698
  let headers : {[key: string ]: string} = { };
421
- return await this.deleteUmodelWithOptions(workspace, headers, runtime);
699
+ return await this.createUmodelWithOptions(workspace, request, headers, runtime);
422
700
  }
423
701
 
424
702
  /**
425
- * 删除 Umodel Elements
703
+ * 删除addon release信息
426
704
  *
427
- * @param request - DeleteUmodelDataRequest
705
+ * @param request - DeleteAddonReleaseRequest
428
706
  * @param headers - map
429
707
  * @param runtime - runtime options for this request RuntimeOptions
430
- * @returns DeleteUmodelDataResponse
708
+ * @returns DeleteAddonReleaseResponse
431
709
  */
432
- async deleteUmodelDataWithOptions(workspace: string, request: $_model.DeleteUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelDataResponse> {
710
+ async deleteAddonReleaseWithOptions(policyId: string, request: $_model.DeleteAddonReleaseRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAddonReleaseResponse> {
433
711
  request.validate();
434
712
  let query : {[key: string ]: any} = { };
435
- if (!$dara.isNull(request.domain)) {
436
- query["domain"] = request.domain;
713
+ if (!$dara.isNull(request.addonName)) {
714
+ query["addonName"] = request.addonName;
437
715
  }
438
716
 
439
- if (!$dara.isNull(request.kind)) {
440
- query["kind"] = request.kind;
717
+ if (!$dara.isNull(request.force)) {
718
+ query["force"] = request.force;
441
719
  }
442
720
 
443
- if (!$dara.isNull(request.name)) {
444
- query["name"] = request.name;
721
+ if (!$dara.isNull(request.releaseName)) {
722
+ query["releaseName"] = request.releaseName;
445
723
  }
446
724
 
447
725
  let req = new $OpenApiUtil.OpenApiRequest({
@@ -449,562 +727,2042 @@ export default class Client extends OpenApi {
449
727
  query: OpenApiUtil.query(query),
450
728
  });
451
729
  let params = new $OpenApiUtil.Params({
452
- action: "DeleteUmodelData",
730
+ action: "DeleteAddonRelease",
453
731
  version: "2024-03-30",
454
732
  protocol: "HTTPS",
455
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/data`,
733
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
456
734
  method: "DELETE",
457
735
  authType: "AK",
458
736
  style: "ROA",
459
737
  reqBodyType: "json",
460
738
  bodyType: "json",
461
739
  });
462
- return $dara.cast<$_model.DeleteUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelDataResponse({}));
740
+ return $dara.cast<$_model.DeleteAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAddonReleaseResponse({}));
463
741
  }
464
742
 
465
743
  /**
466
- * 删除 Umodel Elements
744
+ * 删除addon release信息
467
745
  *
468
- * @param request - DeleteUmodelDataRequest
469
- * @returns DeleteUmodelDataResponse
746
+ * @param request - DeleteAddonReleaseRequest
747
+ * @returns DeleteAddonReleaseResponse
470
748
  */
471
- async deleteUmodelData(workspace: string, request: $_model.DeleteUmodelDataRequest): Promise<$_model.DeleteUmodelDataResponse> {
749
+ async deleteAddonRelease(policyId: string, request: $_model.DeleteAddonReleaseRequest): Promise<$_model.DeleteAddonReleaseResponse> {
472
750
  let runtime = new $dara.RuntimeOptions({ });
473
751
  let headers : {[key: string ]: string} = { };
474
- return await this.deleteUmodelDataWithOptions(workspace, request, headers, runtime);
752
+ return await this.deleteAddonReleaseWithOptions(policyId, request, headers, runtime);
475
753
  }
476
754
 
477
755
  /**
478
- * 删除工作空间
756
+ * 删除聚合任务组
479
757
  *
480
758
  * @param headers - map
481
759
  * @param runtime - runtime options for this request RuntimeOptions
482
- * @returns DeleteWorkspaceResponse
760
+ * @returns DeleteAggTaskGroupResponse
483
761
  */
484
- async deleteWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteWorkspaceResponse> {
762
+ async deleteAggTaskGroupWithOptions(instanceId: string, groupId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAggTaskGroupResponse> {
485
763
  let req = new $OpenApiUtil.OpenApiRequest({
486
764
  headers: headers,
487
765
  });
488
766
  let params = new $OpenApiUtil.Params({
489
- action: "DeleteWorkspace",
767
+ action: "DeleteAggTaskGroup",
490
768
  version: "2024-03-30",
491
769
  protocol: "HTTPS",
492
- pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
770
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
493
771
  method: "DELETE",
494
772
  authType: "AK",
495
773
  style: "ROA",
496
774
  reqBodyType: "json",
497
775
  bodyType: "json",
498
776
  });
499
- return $dara.cast<$_model.DeleteWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteWorkspaceResponse({}));
777
+ return $dara.cast<$_model.DeleteAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAggTaskGroupResponse({}));
500
778
  }
501
779
 
502
780
  /**
503
- * 删除工作空间
504
- * @returns DeleteWorkspaceResponse
781
+ * 删除聚合任务组
782
+ * @returns DeleteAggTaskGroupResponse
505
783
  */
506
- async deleteWorkspace(workspaceName: string): Promise<$_model.DeleteWorkspaceResponse> {
784
+ async deleteAggTaskGroup(instanceId: string, groupId: string): Promise<$_model.DeleteAggTaskGroupResponse> {
507
785
  let runtime = new $dara.RuntimeOptions({ });
508
786
  let headers : {[key: string ]: string} = { };
509
- return await this.deleteWorkspaceWithOptions(workspaceName, headers, runtime);
787
+ return await this.deleteAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
510
788
  }
511
789
 
512
790
  /**
513
- * 获取EntityStore相关存储信息
791
+ * 删除EntityStore相关存储
514
792
  *
515
793
  * @param headers - map
516
794
  * @param runtime - runtime options for this request RuntimeOptions
517
- * @returns GetEntityStoreResponse
795
+ * @returns DeleteEntityStoreResponse
518
796
  */
519
- async getEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreResponse> {
797
+ async deleteEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEntityStoreResponse> {
520
798
  let req = new $OpenApiUtil.OpenApiRequest({
521
799
  headers: headers,
522
800
  });
523
801
  let params = new $OpenApiUtil.Params({
524
- action: "GetEntityStore",
802
+ action: "DeleteEntityStore",
525
803
  version: "2024-03-30",
526
804
  protocol: "HTTPS",
527
805
  pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
528
- method: "GET",
806
+ method: "DELETE",
529
807
  authType: "AK",
530
808
  style: "ROA",
531
809
  reqBodyType: "json",
532
810
  bodyType: "json",
533
811
  });
534
- return $dara.cast<$_model.GetEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreResponse({}));
812
+ return $dara.cast<$_model.DeleteEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEntityStoreResponse({}));
535
813
  }
536
814
 
537
815
  /**
538
- * 获取EntityStore相关存储信息
539
- * @returns GetEntityStoreResponse
816
+ * 删除EntityStore相关存储
817
+ * @returns DeleteEntityStoreResponse
540
818
  */
541
- async getEntityStore(workspaceName: string): Promise<$_model.GetEntityStoreResponse> {
819
+ async deleteEntityStore(workspaceName: string): Promise<$_model.DeleteEntityStoreResponse> {
542
820
  let runtime = new $dara.RuntimeOptions({ });
543
821
  let headers : {[key: string ]: string} = { };
544
- return await this.getEntityStoreWithOptions(workspaceName, headers, runtime);
822
+ return await this.deleteEntityStoreWithOptions(workspaceName, headers, runtime);
545
823
  }
546
824
 
547
825
  /**
548
- * 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
826
+ * 删除接入中心策略
549
827
  *
550
- * @param request - GetEntityStoreDataRequest
551
- * @param headers - GetEntityStoreDataHeaders
828
+ * @param request - DeleteIntegrationPolicyRequest
829
+ * @param headers - map
552
830
  * @param runtime - runtime options for this request RuntimeOptions
553
- * @returns GetEntityStoreDataResponse
831
+ * @returns DeleteIntegrationPolicyResponse
554
832
  */
555
- async getEntityStoreDataWithOptions(workspace: string, request: $_model.GetEntityStoreDataRequest, headers: $_model.GetEntityStoreDataHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreDataResponse> {
833
+ async deleteIntegrationPolicyWithOptions(policyId: string, request: $_model.DeleteIntegrationPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteIntegrationPolicyResponse> {
556
834
  request.validate();
557
- let body : {[key: string ]: any} = { };
558
- if (!$dara.isNull(request.from)) {
559
- body["from"] = request.from;
560
- }
561
-
562
- if (!$dara.isNull(request.query)) {
563
- body["query"] = request.query;
564
- }
565
-
566
- if (!$dara.isNull(request.to)) {
567
- body["to"] = request.to;
568
- }
569
-
570
- let realHeaders : {[key: string ]: string} = { };
571
- if (!$dara.isNull(headers.commonHeaders)) {
572
- realHeaders = headers.commonHeaders;
573
- }
574
-
575
- if (!$dara.isNull(headers.acceptEncoding)) {
576
- realHeaders["acceptEncoding"] = String(headers.acceptEncoding);
835
+ let query : {[key: string ]: any} = { };
836
+ if (!$dara.isNull(request.force)) {
837
+ query["force"] = request.force;
577
838
  }
578
839
 
579
840
  let req = new $OpenApiUtil.OpenApiRequest({
580
- headers: realHeaders,
581
- body: OpenApiUtil.parseToMap(body),
841
+ headers: headers,
842
+ query: OpenApiUtil.query(query),
582
843
  });
583
844
  let params = new $OpenApiUtil.Params({
584
- action: "GetEntityStoreData",
845
+ action: "DeleteIntegrationPolicy",
585
846
  version: "2024-03-30",
586
847
  protocol: "HTTPS",
587
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/entitiesAndRelations`,
588
- method: "POST",
848
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}`,
849
+ method: "DELETE",
589
850
  authType: "AK",
590
851
  style: "ROA",
591
852
  reqBodyType: "json",
592
853
  bodyType: "json",
593
854
  });
594
- return $dara.cast<$_model.GetEntityStoreDataResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreDataResponse({}));
855
+ return $dara.cast<$_model.DeleteIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.DeleteIntegrationPolicyResponse({}));
595
856
  }
596
857
 
597
858
  /**
598
- * 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
859
+ * 删除接入中心策略
599
860
  *
600
- * @param request - GetEntityStoreDataRequest
601
- * @returns GetEntityStoreDataResponse
861
+ * @param request - DeleteIntegrationPolicyRequest
862
+ * @returns DeleteIntegrationPolicyResponse
602
863
  */
603
- async getEntityStoreData(workspace: string, request: $_model.GetEntityStoreDataRequest): Promise<$_model.GetEntityStoreDataResponse> {
864
+ async deleteIntegrationPolicy(policyId: string, request: $_model.DeleteIntegrationPolicyRequest): Promise<$_model.DeleteIntegrationPolicyResponse> {
604
865
  let runtime = new $dara.RuntimeOptions({ });
605
- let headers = new $_model.GetEntityStoreDataHeaders({ });
606
- return await this.getEntityStoreDataWithOptions(workspace, request, headers, runtime);
866
+ let headers : {[key: string ]: string} = { };
867
+ return await this.deleteIntegrationPolicyWithOptions(policyId, request, headers, runtime);
607
868
  }
608
869
 
609
870
  /**
610
- * 查询 Service
871
+ * 删除prom实例
611
872
  *
612
873
  * @param headers - map
613
874
  * @param runtime - runtime options for this request RuntimeOptions
614
- * @returns GetServiceResponse
875
+ * @returns DeletePrometheusInstanceResponse
615
876
  */
616
- async getServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceResponse> {
877
+ async deletePrometheusInstanceWithOptions(prometheusInstanceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePrometheusInstanceResponse> {
617
878
  let req = new $OpenApiUtil.OpenApiRequest({
618
879
  headers: headers,
619
880
  });
620
881
  let params = new $OpenApiUtil.Params({
621
- action: "GetService",
882
+ action: "DeletePrometheusInstance",
622
883
  version: "2024-03-30",
623
884
  protocol: "HTTPS",
624
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
625
- method: "GET",
885
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
886
+ method: "DELETE",
626
887
  authType: "AK",
627
888
  style: "ROA",
628
889
  reqBodyType: "json",
629
890
  bodyType: "json",
630
891
  });
631
- return $dara.cast<$_model.GetServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceResponse({}));
892
+ return $dara.cast<$_model.DeletePrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.DeletePrometheusInstanceResponse({}));
632
893
  }
633
894
 
634
895
  /**
635
- * 查询 Service
636
- * @returns GetServiceResponse
896
+ * 删除prom实例
897
+ * @returns DeletePrometheusInstanceResponse
637
898
  */
638
- async getService(workspace: string, serviceId: string): Promise<$_model.GetServiceResponse> {
899
+ async deletePrometheusInstance(prometheusInstanceId: string): Promise<$_model.DeletePrometheusInstanceResponse> {
639
900
  let runtime = new $dara.RuntimeOptions({ });
640
901
  let headers : {[key: string ]: string} = { };
641
- return await this.getServiceWithOptions(workspace, serviceId, headers, runtime);
902
+ return await this.deletePrometheusInstanceWithOptions(prometheusInstanceId, headers, runtime);
642
903
  }
643
904
 
644
905
  /**
645
- * 获取应用可观测实例
906
+ * 删除prometheus视图实例
646
907
  *
647
908
  * @param headers - map
648
909
  * @param runtime - runtime options for this request RuntimeOptions
649
- * @returns GetServiceObservabilityResponse
910
+ * @returns DeletePrometheusViewResponse
650
911
  */
651
- async getServiceObservabilityWithOptions(workspace: string, type: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceObservabilityResponse> {
912
+ async deletePrometheusViewWithOptions(prometheusViewId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePrometheusViewResponse> {
652
913
  let req = new $OpenApiUtil.OpenApiRequest({
653
914
  headers: headers,
654
915
  });
655
916
  let params = new $OpenApiUtil.Params({
656
- action: "GetServiceObservability",
917
+ action: "DeletePrometheusView",
657
918
  version: "2024-03-30",
658
919
  protocol: "HTTPS",
659
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service-observability/${$dara.URL.percentEncode(type)}`,
660
- method: "GET",
920
+ pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
921
+ method: "DELETE",
661
922
  authType: "AK",
662
923
  style: "ROA",
663
924
  reqBodyType: "json",
664
925
  bodyType: "json",
665
926
  });
666
- return $dara.cast<$_model.GetServiceObservabilityResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceObservabilityResponse({}));
927
+ return $dara.cast<$_model.DeletePrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.DeletePrometheusViewResponse({}));
667
928
  }
668
929
 
669
930
  /**
670
- * 获取应用可观测实例
671
- * @returns GetServiceObservabilityResponse
931
+ * 删除prometheus视图实例
932
+ * @returns DeletePrometheusViewResponse
672
933
  */
673
- async getServiceObservability(workspace: string, type: string): Promise<$_model.GetServiceObservabilityResponse> {
934
+ async deletePrometheusView(prometheusViewId: string): Promise<$_model.DeletePrometheusViewResponse> {
674
935
  let runtime = new $dara.RuntimeOptions({ });
675
936
  let headers : {[key: string ]: string} = { };
676
- return await this.getServiceObservabilityWithOptions(workspace, type, headers, runtime);
937
+ return await this.deletePrometheusViewWithOptions(prometheusViewId, headers, runtime);
677
938
  }
678
939
 
679
940
  /**
680
- * 获取Umodel配置信息
941
+ * 删除Service
681
942
  *
682
943
  * @param headers - map
683
944
  * @param runtime - runtime options for this request RuntimeOptions
684
- * @returns GetUmodelResponse
945
+ * @returns DeleteServiceResponse
685
946
  */
686
- async getUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelResponse> {
947
+ async deleteServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteServiceResponse> {
687
948
  let req = new $OpenApiUtil.OpenApiRequest({
688
949
  headers: headers,
689
950
  });
690
951
  let params = new $OpenApiUtil.Params({
691
- action: "GetUmodel",
952
+ action: "DeleteService",
692
953
  version: "2024-03-30",
693
954
  protocol: "HTTPS",
694
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
695
- method: "GET",
696
- authType: "AK",
955
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
956
+ method: "DELETE",
957
+ authType: "AK",
958
+ style: "ROA",
959
+ reqBodyType: "json",
960
+ bodyType: "json",
961
+ });
962
+ return $dara.cast<$_model.DeleteServiceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteServiceResponse({}));
963
+ }
964
+
965
+ /**
966
+ * 删除Service
967
+ * @returns DeleteServiceResponse
968
+ */
969
+ async deleteService(workspace: string, serviceId: string): Promise<$_model.DeleteServiceResponse> {
970
+ let runtime = new $dara.RuntimeOptions({ });
971
+ let headers : {[key: string ]: string} = { };
972
+ return await this.deleteServiceWithOptions(workspace, serviceId, headers, runtime);
973
+ }
974
+
975
+ /**
976
+ * 删除Umodel配置信息
977
+ *
978
+ * @param headers - map
979
+ * @param runtime - runtime options for this request RuntimeOptions
980
+ * @returns DeleteUmodelResponse
981
+ */
982
+ async deleteUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelResponse> {
983
+ let req = new $OpenApiUtil.OpenApiRequest({
984
+ headers: headers,
985
+ });
986
+ let params = new $OpenApiUtil.Params({
987
+ action: "DeleteUmodel",
988
+ version: "2024-03-30",
989
+ protocol: "HTTPS",
990
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
991
+ method: "DELETE",
992
+ authType: "AK",
993
+ style: "ROA",
994
+ reqBodyType: "json",
995
+ bodyType: "json",
996
+ });
997
+ return $dara.cast<$_model.DeleteUmodelResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelResponse({}));
998
+ }
999
+
1000
+ /**
1001
+ * 删除Umodel配置信息
1002
+ * @returns DeleteUmodelResponse
1003
+ */
1004
+ async deleteUmodel(workspace: string): Promise<$_model.DeleteUmodelResponse> {
1005
+ let runtime = new $dara.RuntimeOptions({ });
1006
+ let headers : {[key: string ]: string} = { };
1007
+ return await this.deleteUmodelWithOptions(workspace, headers, runtime);
1008
+ }
1009
+
1010
+ /**
1011
+ * 删除 Umodel Elements
1012
+ *
1013
+ * @param request - DeleteUmodelDataRequest
1014
+ * @param headers - map
1015
+ * @param runtime - runtime options for this request RuntimeOptions
1016
+ * @returns DeleteUmodelDataResponse
1017
+ */
1018
+ async deleteUmodelDataWithOptions(workspace: string, request: $_model.DeleteUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelDataResponse> {
1019
+ request.validate();
1020
+ let query : {[key: string ]: any} = { };
1021
+ if (!$dara.isNull(request.domain)) {
1022
+ query["domain"] = request.domain;
1023
+ }
1024
+
1025
+ if (!$dara.isNull(request.kind)) {
1026
+ query["kind"] = request.kind;
1027
+ }
1028
+
1029
+ if (!$dara.isNull(request.name)) {
1030
+ query["name"] = request.name;
1031
+ }
1032
+
1033
+ let req = new $OpenApiUtil.OpenApiRequest({
1034
+ headers: headers,
1035
+ query: OpenApiUtil.query(query),
1036
+ });
1037
+ let params = new $OpenApiUtil.Params({
1038
+ action: "DeleteUmodelData",
1039
+ version: "2024-03-30",
1040
+ protocol: "HTTPS",
1041
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/data`,
1042
+ method: "DELETE",
1043
+ authType: "AK",
1044
+ style: "ROA",
1045
+ reqBodyType: "json",
1046
+ bodyType: "json",
1047
+ });
1048
+ return $dara.cast<$_model.DeleteUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelDataResponse({}));
1049
+ }
1050
+
1051
+ /**
1052
+ * 删除 Umodel Elements
1053
+ *
1054
+ * @param request - DeleteUmodelDataRequest
1055
+ * @returns DeleteUmodelDataResponse
1056
+ */
1057
+ async deleteUmodelData(workspace: string, request: $_model.DeleteUmodelDataRequest): Promise<$_model.DeleteUmodelDataResponse> {
1058
+ let runtime = new $dara.RuntimeOptions({ });
1059
+ let headers : {[key: string ]: string} = { };
1060
+ return await this.deleteUmodelDataWithOptions(workspace, request, headers, runtime);
1061
+ }
1062
+
1063
+ /**
1064
+ * 删除工作空间
1065
+ *
1066
+ * @param headers - map
1067
+ * @param runtime - runtime options for this request RuntimeOptions
1068
+ * @returns DeleteWorkspaceResponse
1069
+ */
1070
+ async deleteWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteWorkspaceResponse> {
1071
+ let req = new $OpenApiUtil.OpenApiRequest({
1072
+ headers: headers,
1073
+ });
1074
+ let params = new $OpenApiUtil.Params({
1075
+ action: "DeleteWorkspace",
1076
+ version: "2024-03-30",
1077
+ protocol: "HTTPS",
1078
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
1079
+ method: "DELETE",
1080
+ authType: "AK",
1081
+ style: "ROA",
1082
+ reqBodyType: "json",
1083
+ bodyType: "json",
1084
+ });
1085
+ return $dara.cast<$_model.DeleteWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteWorkspaceResponse({}));
1086
+ }
1087
+
1088
+ /**
1089
+ * 删除工作空间
1090
+ * @returns DeleteWorkspaceResponse
1091
+ */
1092
+ async deleteWorkspace(workspaceName: string): Promise<$_model.DeleteWorkspaceResponse> {
1093
+ let runtime = new $dara.RuntimeOptions({ });
1094
+ let headers : {[key: string ]: string} = { };
1095
+ return await this.deleteWorkspaceWithOptions(workspaceName, headers, runtime);
1096
+ }
1097
+
1098
+ /**
1099
+ * 查看addon release(查看接入状态)
1100
+ *
1101
+ * @param headers - map
1102
+ * @param runtime - runtime options for this request RuntimeOptions
1103
+ * @returns GetAddonReleaseResponse
1104
+ */
1105
+ async getAddonReleaseWithOptions(releaseName: string, policyId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAddonReleaseResponse> {
1106
+ let req = new $OpenApiUtil.OpenApiRequest({
1107
+ headers: headers,
1108
+ });
1109
+ let params = new $OpenApiUtil.Params({
1110
+ action: "GetAddonRelease",
1111
+ version: "2024-03-30",
1112
+ protocol: "HTTPS",
1113
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases/${$dara.URL.percentEncode(releaseName)}`,
1114
+ method: "GET",
1115
+ authType: "AK",
1116
+ style: "ROA",
1117
+ reqBodyType: "json",
1118
+ bodyType: "json",
1119
+ });
1120
+ return $dara.cast<$_model.GetAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.GetAddonReleaseResponse({}));
1121
+ }
1122
+
1123
+ /**
1124
+ * 查看addon release(查看接入状态)
1125
+ * @returns GetAddonReleaseResponse
1126
+ */
1127
+ async getAddonRelease(releaseName: string, policyId: string): Promise<$_model.GetAddonReleaseResponse> {
1128
+ let runtime = new $dara.RuntimeOptions({ });
1129
+ let headers : {[key: string ]: string} = { };
1130
+ return await this.getAddonReleaseWithOptions(releaseName, policyId, headers, runtime);
1131
+ }
1132
+
1133
+ /**
1134
+ * 描述聚合任务组
1135
+ *
1136
+ * @param headers - map
1137
+ * @param runtime - runtime options for this request RuntimeOptions
1138
+ * @returns GetAggTaskGroupResponse
1139
+ */
1140
+ async getAggTaskGroupWithOptions(instanceId: string, groupId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAggTaskGroupResponse> {
1141
+ let req = new $OpenApiUtil.OpenApiRequest({
1142
+ headers: headers,
1143
+ });
1144
+ let params = new $OpenApiUtil.Params({
1145
+ action: "GetAggTaskGroup",
1146
+ version: "2024-03-30",
1147
+ protocol: "HTTPS",
1148
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
1149
+ method: "GET",
1150
+ authType: "AK",
1151
+ style: "ROA",
1152
+ reqBodyType: "json",
1153
+ bodyType: "json",
1154
+ });
1155
+ return $dara.cast<$_model.GetAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.GetAggTaskGroupResponse({}));
1156
+ }
1157
+
1158
+ /**
1159
+ * 描述聚合任务组
1160
+ * @returns GetAggTaskGroupResponse
1161
+ */
1162
+ async getAggTaskGroup(instanceId: string, groupId: string): Promise<$_model.GetAggTaskGroupResponse> {
1163
+ let runtime = new $dara.RuntimeOptions({ });
1164
+ let headers : {[key: string ]: string} = { };
1165
+ return await this.getAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
1166
+ }
1167
+
1168
+ /**
1169
+ * 获取EntityStore相关存储信息
1170
+ *
1171
+ * @param headers - map
1172
+ * @param runtime - runtime options for this request RuntimeOptions
1173
+ * @returns GetEntityStoreResponse
1174
+ */
1175
+ async getEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreResponse> {
1176
+ let req = new $OpenApiUtil.OpenApiRequest({
1177
+ headers: headers,
1178
+ });
1179
+ let params = new $OpenApiUtil.Params({
1180
+ action: "GetEntityStore",
1181
+ version: "2024-03-30",
1182
+ protocol: "HTTPS",
1183
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
1184
+ method: "GET",
1185
+ authType: "AK",
1186
+ style: "ROA",
1187
+ reqBodyType: "json",
1188
+ bodyType: "json",
1189
+ });
1190
+ return $dara.cast<$_model.GetEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreResponse({}));
1191
+ }
1192
+
1193
+ /**
1194
+ * 获取EntityStore相关存储信息
1195
+ * @returns GetEntityStoreResponse
1196
+ */
1197
+ async getEntityStore(workspaceName: string): Promise<$_model.GetEntityStoreResponse> {
1198
+ let runtime = new $dara.RuntimeOptions({ });
1199
+ let headers : {[key: string ]: string} = { };
1200
+ return await this.getEntityStoreWithOptions(workspaceName, headers, runtime);
1201
+ }
1202
+
1203
+ /**
1204
+ * 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
1205
+ *
1206
+ * @param request - GetEntityStoreDataRequest
1207
+ * @param headers - GetEntityStoreDataHeaders
1208
+ * @param runtime - runtime options for this request RuntimeOptions
1209
+ * @returns GetEntityStoreDataResponse
1210
+ */
1211
+ async getEntityStoreDataWithOptions(workspace: string, request: $_model.GetEntityStoreDataRequest, headers: $_model.GetEntityStoreDataHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreDataResponse> {
1212
+ request.validate();
1213
+ let body : {[key: string ]: any} = { };
1214
+ if (!$dara.isNull(request.from)) {
1215
+ body["from"] = request.from;
1216
+ }
1217
+
1218
+ if (!$dara.isNull(request.query)) {
1219
+ body["query"] = request.query;
1220
+ }
1221
+
1222
+ if (!$dara.isNull(request.to)) {
1223
+ body["to"] = request.to;
1224
+ }
1225
+
1226
+ let realHeaders : {[key: string ]: string} = { };
1227
+ if (!$dara.isNull(headers.commonHeaders)) {
1228
+ realHeaders = headers.commonHeaders;
1229
+ }
1230
+
1231
+ if (!$dara.isNull(headers.acceptEncoding)) {
1232
+ realHeaders["acceptEncoding"] = String(headers.acceptEncoding);
1233
+ }
1234
+
1235
+ let req = new $OpenApiUtil.OpenApiRequest({
1236
+ headers: realHeaders,
1237
+ body: OpenApiUtil.parseToMap(body),
1238
+ });
1239
+ let params = new $OpenApiUtil.Params({
1240
+ action: "GetEntityStoreData",
1241
+ version: "2024-03-30",
1242
+ protocol: "HTTPS",
1243
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/entitiesAndRelations`,
1244
+ method: "POST",
1245
+ authType: "AK",
1246
+ style: "ROA",
1247
+ reqBodyType: "json",
1248
+ bodyType: "json",
1249
+ });
1250
+ return $dara.cast<$_model.GetEntityStoreDataResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreDataResponse({}));
1251
+ }
1252
+
1253
+ /**
1254
+ * 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
1255
+ *
1256
+ * @param request - GetEntityStoreDataRequest
1257
+ * @returns GetEntityStoreDataResponse
1258
+ */
1259
+ async getEntityStoreData(workspace: string, request: $_model.GetEntityStoreDataRequest): Promise<$_model.GetEntityStoreDataResponse> {
1260
+ let runtime = new $dara.RuntimeOptions({ });
1261
+ let headers = new $_model.GetEntityStoreDataHeaders({ });
1262
+ return await this.getEntityStoreDataWithOptions(workspace, request, headers, runtime);
1263
+ }
1264
+
1265
+ /**
1266
+ * 查询接入中心策略列表信息
1267
+ *
1268
+ * @param headers - map
1269
+ * @param runtime - runtime options for this request RuntimeOptions
1270
+ * @returns GetIntegrationPolicyResponse
1271
+ */
1272
+ async getIntegrationPolicyWithOptions(policyId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetIntegrationPolicyResponse> {
1273
+ let req = new $OpenApiUtil.OpenApiRequest({
1274
+ headers: headers,
1275
+ });
1276
+ let params = new $OpenApiUtil.Params({
1277
+ action: "GetIntegrationPolicy",
1278
+ version: "2024-03-30",
1279
+ protocol: "HTTPS",
1280
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}`,
1281
+ method: "GET",
1282
+ authType: "AK",
1283
+ style: "ROA",
1284
+ reqBodyType: "json",
1285
+ bodyType: "json",
1286
+ });
1287
+ return $dara.cast<$_model.GetIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.GetIntegrationPolicyResponse({}));
1288
+ }
1289
+
1290
+ /**
1291
+ * 查询接入中心策略列表信息
1292
+ * @returns GetIntegrationPolicyResponse
1293
+ */
1294
+ async getIntegrationPolicy(policyId: string): Promise<$_model.GetIntegrationPolicyResponse> {
1295
+ let runtime = new $dara.RuntimeOptions({ });
1296
+ let headers : {[key: string ]: string} = { };
1297
+ return await this.getIntegrationPolicyWithOptions(policyId, headers, runtime);
1298
+ }
1299
+
1300
+ /**
1301
+ * 查询指定环境实例
1302
+ *
1303
+ * @param request - GetPrometheusInstanceRequest
1304
+ * @param headers - map
1305
+ * @param runtime - runtime options for this request RuntimeOptions
1306
+ * @returns GetPrometheusInstanceResponse
1307
+ */
1308
+ async getPrometheusInstanceWithOptions(prometheusInstanceId: string, request: $_model.GetPrometheusInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPrometheusInstanceResponse> {
1309
+ request.validate();
1310
+ let query : {[key: string ]: any} = { };
1311
+ if (!$dara.isNull(request.aliyunLang)) {
1312
+ query["aliyunLang"] = request.aliyunLang;
1313
+ }
1314
+
1315
+ if (!$dara.isNull(request.resourceGroupId)) {
1316
+ query["resourceGroupId"] = request.resourceGroupId;
1317
+ }
1318
+
1319
+ let req = new $OpenApiUtil.OpenApiRequest({
1320
+ headers: headers,
1321
+ query: OpenApiUtil.query(query),
1322
+ });
1323
+ let params = new $OpenApiUtil.Params({
1324
+ action: "GetPrometheusInstance",
1325
+ version: "2024-03-30",
1326
+ protocol: "HTTPS",
1327
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
1328
+ method: "GET",
1329
+ authType: "AK",
1330
+ style: "ROA",
1331
+ reqBodyType: "json",
1332
+ bodyType: "json",
1333
+ });
1334
+ return $dara.cast<$_model.GetPrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.GetPrometheusInstanceResponse({}));
1335
+ }
1336
+
1337
+ /**
1338
+ * 查询指定环境实例
1339
+ *
1340
+ * @param request - GetPrometheusInstanceRequest
1341
+ * @returns GetPrometheusInstanceResponse
1342
+ */
1343
+ async getPrometheusInstance(prometheusInstanceId: string, request: $_model.GetPrometheusInstanceRequest): Promise<$_model.GetPrometheusInstanceResponse> {
1344
+ let runtime = new $dara.RuntimeOptions({ });
1345
+ let headers : {[key: string ]: string} = { };
1346
+ return await this.getPrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
1347
+ }
1348
+
1349
+ /**
1350
+ * 查询指定Prometheus视图实例
1351
+ *
1352
+ * @param request - GetPrometheusViewRequest
1353
+ * @param headers - map
1354
+ * @param runtime - runtime options for this request RuntimeOptions
1355
+ * @returns GetPrometheusViewResponse
1356
+ */
1357
+ async getPrometheusViewWithOptions(prometheusViewId: string, request: $_model.GetPrometheusViewRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPrometheusViewResponse> {
1358
+ request.validate();
1359
+ let query : {[key: string ]: any} = { };
1360
+ if (!$dara.isNull(request.aliyunLang)) {
1361
+ query["aliyunLang"] = request.aliyunLang;
1362
+ }
1363
+
1364
+ if (!$dara.isNull(request.resourceGroupId)) {
1365
+ query["resourceGroupId"] = request.resourceGroupId;
1366
+ }
1367
+
1368
+ let req = new $OpenApiUtil.OpenApiRequest({
1369
+ headers: headers,
1370
+ query: OpenApiUtil.query(query),
1371
+ });
1372
+ let params = new $OpenApiUtil.Params({
1373
+ action: "GetPrometheusView",
1374
+ version: "2024-03-30",
1375
+ protocol: "HTTPS",
1376
+ pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
1377
+ method: "GET",
1378
+ authType: "AK",
1379
+ style: "ROA",
1380
+ reqBodyType: "json",
1381
+ bodyType: "json",
1382
+ });
1383
+ return $dara.cast<$_model.GetPrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.GetPrometheusViewResponse({}));
1384
+ }
1385
+
1386
+ /**
1387
+ * 查询指定Prometheus视图实例
1388
+ *
1389
+ * @param request - GetPrometheusViewRequest
1390
+ * @returns GetPrometheusViewResponse
1391
+ */
1392
+ async getPrometheusView(prometheusViewId: string, request: $_model.GetPrometheusViewRequest): Promise<$_model.GetPrometheusViewResponse> {
1393
+ let runtime = new $dara.RuntimeOptions({ });
1394
+ let headers : {[key: string ]: string} = { };
1395
+ return await this.getPrometheusViewWithOptions(prometheusViewId, request, headers, runtime);
1396
+ }
1397
+
1398
+ /**
1399
+ * 查询 Service
1400
+ *
1401
+ * @param headers - map
1402
+ * @param runtime - runtime options for this request RuntimeOptions
1403
+ * @returns GetServiceResponse
1404
+ */
1405
+ async getServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceResponse> {
1406
+ let req = new $OpenApiUtil.OpenApiRequest({
1407
+ headers: headers,
1408
+ });
1409
+ let params = new $OpenApiUtil.Params({
1410
+ action: "GetService",
1411
+ version: "2024-03-30",
1412
+ protocol: "HTTPS",
1413
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
1414
+ method: "GET",
1415
+ authType: "AK",
1416
+ style: "ROA",
1417
+ reqBodyType: "json",
1418
+ bodyType: "json",
1419
+ });
1420
+ return $dara.cast<$_model.GetServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceResponse({}));
1421
+ }
1422
+
1423
+ /**
1424
+ * 查询 Service
1425
+ * @returns GetServiceResponse
1426
+ */
1427
+ async getService(workspace: string, serviceId: string): Promise<$_model.GetServiceResponse> {
1428
+ let runtime = new $dara.RuntimeOptions({ });
1429
+ let headers : {[key: string ]: string} = { };
1430
+ return await this.getServiceWithOptions(workspace, serviceId, headers, runtime);
1431
+ }
1432
+
1433
+ /**
1434
+ * 获取应用可观测实例
1435
+ *
1436
+ * @param headers - map
1437
+ * @param runtime - runtime options for this request RuntimeOptions
1438
+ * @returns GetServiceObservabilityResponse
1439
+ */
1440
+ async getServiceObservabilityWithOptions(workspace: string, type: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceObservabilityResponse> {
1441
+ let req = new $OpenApiUtil.OpenApiRequest({
1442
+ headers: headers,
1443
+ });
1444
+ let params = new $OpenApiUtil.Params({
1445
+ action: "GetServiceObservability",
1446
+ version: "2024-03-30",
1447
+ protocol: "HTTPS",
1448
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service-observability/${$dara.URL.percentEncode(type)}`,
1449
+ method: "GET",
1450
+ authType: "AK",
1451
+ style: "ROA",
1452
+ reqBodyType: "json",
1453
+ bodyType: "json",
1454
+ });
1455
+ return $dara.cast<$_model.GetServiceObservabilityResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceObservabilityResponse({}));
1456
+ }
1457
+
1458
+ /**
1459
+ * 获取应用可观测实例
1460
+ * @returns GetServiceObservabilityResponse
1461
+ */
1462
+ async getServiceObservability(workspace: string, type: string): Promise<$_model.GetServiceObservabilityResponse> {
1463
+ let runtime = new $dara.RuntimeOptions({ });
1464
+ let headers : {[key: string ]: string} = { };
1465
+ return await this.getServiceObservabilityWithOptions(workspace, type, headers, runtime);
1466
+ }
1467
+
1468
+ /**
1469
+ * 获取Umodel配置信息
1470
+ *
1471
+ * @param headers - map
1472
+ * @param runtime - runtime options for this request RuntimeOptions
1473
+ * @returns GetUmodelResponse
1474
+ */
1475
+ async getUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelResponse> {
1476
+ let req = new $OpenApiUtil.OpenApiRequest({
1477
+ headers: headers,
1478
+ });
1479
+ let params = new $OpenApiUtil.Params({
1480
+ action: "GetUmodel",
1481
+ version: "2024-03-30",
1482
+ protocol: "HTTPS",
1483
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
1484
+ method: "GET",
1485
+ authType: "AK",
1486
+ style: "ROA",
1487
+ reqBodyType: "json",
1488
+ bodyType: "json",
1489
+ });
1490
+ return $dara.cast<$_model.GetUmodelResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelResponse({}));
1491
+ }
1492
+
1493
+ /**
1494
+ * 获取Umodel配置信息
1495
+ * @returns GetUmodelResponse
1496
+ */
1497
+ async getUmodel(workspace: string): Promise<$_model.GetUmodelResponse> {
1498
+ let runtime = new $dara.RuntimeOptions({ });
1499
+ let headers : {[key: string ]: string} = { };
1500
+ return await this.getUmodelWithOptions(workspace, headers, runtime);
1501
+ }
1502
+
1503
+ /**
1504
+ * 获取相关联的 Umodel 图数据
1505
+ *
1506
+ * @param request - GetUmodelDataRequest
1507
+ * @param headers - map
1508
+ * @param runtime - runtime options for this request RuntimeOptions
1509
+ * @returns GetUmodelDataResponse
1510
+ */
1511
+ async getUmodelDataWithOptions(workspace: string, request: $_model.GetUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelDataResponse> {
1512
+ request.validate();
1513
+ let query : {[key: string ]: any} = { };
1514
+ if (!$dara.isNull(request.method)) {
1515
+ query["method"] = request.method;
1516
+ }
1517
+
1518
+ let body : {[key: string ]: any} = { };
1519
+ if (!$dara.isNull(request.content)) {
1520
+ body["content"] = request.content;
1521
+ }
1522
+
1523
+ let req = new $OpenApiUtil.OpenApiRequest({
1524
+ headers: headers,
1525
+ query: OpenApiUtil.query(query),
1526
+ body: OpenApiUtil.parseToMap(body),
1527
+ });
1528
+ let params = new $OpenApiUtil.Params({
1529
+ action: "GetUmodelData",
1530
+ version: "2024-03-30",
1531
+ protocol: "HTTPS",
1532
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/graph`,
1533
+ method: "POST",
1534
+ authType: "AK",
1535
+ style: "ROA",
1536
+ reqBodyType: "json",
1537
+ bodyType: "json",
1538
+ });
1539
+ return $dara.cast<$_model.GetUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelDataResponse({}));
1540
+ }
1541
+
1542
+ /**
1543
+ * 获取相关联的 Umodel 图数据
1544
+ *
1545
+ * @param request - GetUmodelDataRequest
1546
+ * @returns GetUmodelDataResponse
1547
+ */
1548
+ async getUmodelData(workspace: string, request: $_model.GetUmodelDataRequest): Promise<$_model.GetUmodelDataResponse> {
1549
+ let runtime = new $dara.RuntimeOptions({ });
1550
+ let headers : {[key: string ]: string} = { };
1551
+ return await this.getUmodelDataWithOptions(workspace, request, headers, runtime);
1552
+ }
1553
+
1554
+ /**
1555
+ * 获取工作空间
1556
+ *
1557
+ * @param headers - map
1558
+ * @param runtime - runtime options for this request RuntimeOptions
1559
+ * @returns GetWorkspaceResponse
1560
+ */
1561
+ async getWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceResponse> {
1562
+ let req = new $OpenApiUtil.OpenApiRequest({
1563
+ headers: headers,
1564
+ });
1565
+ let params = new $OpenApiUtil.Params({
1566
+ action: "GetWorkspace",
1567
+ version: "2024-03-30",
1568
+ protocol: "HTTPS",
1569
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
1570
+ method: "GET",
1571
+ authType: "AK",
1572
+ style: "ROA",
1573
+ reqBodyType: "json",
1574
+ bodyType: "json",
1575
+ });
1576
+ return $dara.cast<$_model.GetWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.GetWorkspaceResponse({}));
1577
+ }
1578
+
1579
+ /**
1580
+ * 获取工作空间
1581
+ * @returns GetWorkspaceResponse
1582
+ */
1583
+ async getWorkspace(workspaceName: string): Promise<$_model.GetWorkspaceResponse> {
1584
+ let runtime = new $dara.RuntimeOptions({ });
1585
+ let headers : {[key: string ]: string} = { };
1586
+ return await this.getWorkspaceWithOptions(workspaceName, headers, runtime);
1587
+ }
1588
+
1589
+ /**
1590
+ * addon的release列表
1591
+ *
1592
+ * @param request - ListAddonReleasesRequest
1593
+ * @param headers - map
1594
+ * @param runtime - runtime options for this request RuntimeOptions
1595
+ * @returns ListAddonReleasesResponse
1596
+ */
1597
+ async listAddonReleasesWithOptions(policyId: string, request: $_model.ListAddonReleasesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAddonReleasesResponse> {
1598
+ request.validate();
1599
+ let query : {[key: string ]: any} = { };
1600
+ if (!$dara.isNull(request.addonName)) {
1601
+ query["addonName"] = request.addonName;
1602
+ }
1603
+
1604
+ if (!$dara.isNull(request.parentAddonReleaseId)) {
1605
+ query["parentAddonReleaseId"] = request.parentAddonReleaseId;
1606
+ }
1607
+
1608
+ let req = new $OpenApiUtil.OpenApiRequest({
1609
+ headers: headers,
1610
+ query: OpenApiUtil.query(query),
1611
+ });
1612
+ let params = new $OpenApiUtil.Params({
1613
+ action: "ListAddonReleases",
1614
+ version: "2024-03-30",
1615
+ protocol: "HTTPS",
1616
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
1617
+ method: "GET",
1618
+ authType: "AK",
1619
+ style: "ROA",
1620
+ reqBodyType: "json",
1621
+ bodyType: "json",
1622
+ });
1623
+ return $dara.cast<$_model.ListAddonReleasesResponse>(await this.callApi(params, req, runtime), new $_model.ListAddonReleasesResponse({}));
1624
+ }
1625
+
1626
+ /**
1627
+ * addon的release列表
1628
+ *
1629
+ * @param request - ListAddonReleasesRequest
1630
+ * @returns ListAddonReleasesResponse
1631
+ */
1632
+ async listAddonReleases(policyId: string, request: $_model.ListAddonReleasesRequest): Promise<$_model.ListAddonReleasesResponse> {
1633
+ let runtime = new $dara.RuntimeOptions({ });
1634
+ let headers : {[key: string ]: string} = { };
1635
+ return await this.listAddonReleasesWithOptions(policyId, request, headers, runtime);
1636
+ }
1637
+
1638
+ /**
1639
+ * 列举聚合任务组
1640
+ *
1641
+ * @param tmpReq - ListAggTaskGroupsRequest
1642
+ * @param headers - map
1643
+ * @param runtime - runtime options for this request RuntimeOptions
1644
+ * @returns ListAggTaskGroupsResponse
1645
+ */
1646
+ async listAggTaskGroupsWithOptions(instanceId: string, tmpReq: $_model.ListAggTaskGroupsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAggTaskGroupsResponse> {
1647
+ tmpReq.validate();
1648
+ let request = new $_model.ListAggTaskGroupsShrinkRequest({ });
1649
+ OpenApiUtil.convert(tmpReq, request);
1650
+ if (!$dara.isNull(tmpReq.tags)) {
1651
+ request.tagsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
1652
+ }
1653
+
1654
+ let query : {[key: string ]: any} = { };
1655
+ if (!$dara.isNull(request.filterAggTaskGroupIds)) {
1656
+ query["filterAggTaskGroupIds"] = request.filterAggTaskGroupIds;
1657
+ }
1658
+
1659
+ if (!$dara.isNull(request.filterAggTaskGroupNames)) {
1660
+ query["filterAggTaskGroupNames"] = request.filterAggTaskGroupNames;
1661
+ }
1662
+
1663
+ if (!$dara.isNull(request.maxResults)) {
1664
+ query["maxResults"] = request.maxResults;
1665
+ }
1666
+
1667
+ if (!$dara.isNull(request.nextToken)) {
1668
+ query["nextToken"] = request.nextToken;
1669
+ }
1670
+
1671
+ if (!$dara.isNull(request.query)) {
1672
+ query["query"] = request.query;
1673
+ }
1674
+
1675
+ if (!$dara.isNull(request.status)) {
1676
+ query["status"] = request.status;
1677
+ }
1678
+
1679
+ if (!$dara.isNull(request.tagsShrink)) {
1680
+ query["tags"] = request.tagsShrink;
1681
+ }
1682
+
1683
+ if (!$dara.isNull(request.targetPrometheusId)) {
1684
+ query["targetPrometheusId"] = request.targetPrometheusId;
1685
+ }
1686
+
1687
+ let req = new $OpenApiUtil.OpenApiRequest({
1688
+ headers: headers,
1689
+ query: OpenApiUtil.query(query),
1690
+ });
1691
+ let params = new $OpenApiUtil.Params({
1692
+ action: "ListAggTaskGroups",
1693
+ version: "2024-03-30",
1694
+ protocol: "HTTPS",
1695
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups`,
1696
+ method: "GET",
1697
+ authType: "AK",
1698
+ style: "ROA",
1699
+ reqBodyType: "json",
1700
+ bodyType: "json",
1701
+ });
1702
+ return $dara.cast<$_model.ListAggTaskGroupsResponse>(await this.callApi(params, req, runtime), new $_model.ListAggTaskGroupsResponse({}));
1703
+ }
1704
+
1705
+ /**
1706
+ * 列举聚合任务组
1707
+ *
1708
+ * @param request - ListAggTaskGroupsRequest
1709
+ * @returns ListAggTaskGroupsResponse
1710
+ */
1711
+ async listAggTaskGroups(instanceId: string, request: $_model.ListAggTaskGroupsRequest): Promise<$_model.ListAggTaskGroupsResponse> {
1712
+ let runtime = new $dara.RuntimeOptions({ });
1713
+ let headers : {[key: string ]: string} = { };
1714
+ return await this.listAggTaskGroupsWithOptions(instanceId, request, headers, runtime);
1715
+ }
1716
+
1717
+ /**
1718
+ * 查询告警动作
1719
+ *
1720
+ * @param tmpReq - ListAlertActionsRequest
1721
+ * @param headers - map
1722
+ * @param runtime - runtime options for this request RuntimeOptions
1723
+ * @returns ListAlertActionsResponse
1724
+ */
1725
+ async listAlertActionsWithOptions(tmpReq: $_model.ListAlertActionsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAlertActionsResponse> {
1726
+ tmpReq.validate();
1727
+ let request = new $_model.ListAlertActionsShrinkRequest({ });
1728
+ OpenApiUtil.convert(tmpReq, request);
1729
+ if (!$dara.isNull(tmpReq.alertActionIds)) {
1730
+ request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
1731
+ }
1732
+
1733
+ let query : {[key: string ]: any} = { };
1734
+ if (!$dara.isNull(request.alertActionIdsShrink)) {
1735
+ query["alertActionIds"] = request.alertActionIdsShrink;
1736
+ }
1737
+
1738
+ if (!$dara.isNull(request.alertActionName)) {
1739
+ query["alertActionName"] = request.alertActionName;
1740
+ }
1741
+
1742
+ if (!$dara.isNull(request.pageNumber)) {
1743
+ query["pageNumber"] = request.pageNumber;
1744
+ }
1745
+
1746
+ if (!$dara.isNull(request.pageSize)) {
1747
+ query["pageSize"] = request.pageSize;
1748
+ }
1749
+
1750
+ if (!$dara.isNull(request.type)) {
1751
+ query["type"] = request.type;
1752
+ }
1753
+
1754
+ let req = new $OpenApiUtil.OpenApiRequest({
1755
+ headers: headers,
1756
+ query: OpenApiUtil.query(query),
1757
+ });
1758
+ let params = new $OpenApiUtil.Params({
1759
+ action: "ListAlertActions",
1760
+ version: "2024-03-30",
1761
+ protocol: "HTTPS",
1762
+ pathname: `/alertActions`,
1763
+ method: "GET",
1764
+ authType: "AK",
1765
+ style: "ROA",
1766
+ reqBodyType: "json",
1767
+ bodyType: "json",
1768
+ });
1769
+ return $dara.cast<$_model.ListAlertActionsResponse>(await this.callApi(params, req, runtime), new $_model.ListAlertActionsResponse({}));
1770
+ }
1771
+
1772
+ /**
1773
+ * 查询告警动作
1774
+ *
1775
+ * @param request - ListAlertActionsRequest
1776
+ * @returns ListAlertActionsResponse
1777
+ */
1778
+ async listAlertActions(request: $_model.ListAlertActionsRequest): Promise<$_model.ListAlertActionsResponse> {
1779
+ let runtime = new $dara.RuntimeOptions({ });
1780
+ let headers : {[key: string ]: string} = { };
1781
+ return await this.listAlertActionsWithOptions(request, headers, runtime);
1782
+ }
1783
+
1784
+ /**
1785
+ * 获取接入中心策略的存储要求信息
1786
+ *
1787
+ * @param request - ListIntegrationPolicyCustomScrapeJobRulesRequest
1788
+ * @param headers - map
1789
+ * @param runtime - runtime options for this request RuntimeOptions
1790
+ * @returns ListIntegrationPolicyCustomScrapeJobRulesResponse
1791
+ */
1792
+ async listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId: string, request: $_model.ListIntegrationPolicyCustomScrapeJobRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyCustomScrapeJobRulesResponse> {
1793
+ request.validate();
1794
+ let query : {[key: string ]: any} = { };
1795
+ if (!$dara.isNull(request.addonReleaseName)) {
1796
+ query["addonReleaseName"] = request.addonReleaseName;
1797
+ }
1798
+
1799
+ if (!$dara.isNull(request.encryptYaml)) {
1800
+ query["encryptYaml"] = request.encryptYaml;
1801
+ }
1802
+
1803
+ if (!$dara.isNull(request.namespace)) {
1804
+ query["namespace"] = request.namespace;
1805
+ }
1806
+
1807
+ let req = new $OpenApiUtil.OpenApiRequest({
1808
+ headers: headers,
1809
+ query: OpenApiUtil.query(query),
1810
+ });
1811
+ let params = new $OpenApiUtil.Params({
1812
+ action: "ListIntegrationPolicyCustomScrapeJobRules",
1813
+ version: "2024-03-30",
1814
+ protocol: "HTTPS",
1815
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/custom-scrape-job-rules`,
1816
+ method: "GET",
1817
+ authType: "AK",
1818
+ style: "ROA",
1819
+ reqBodyType: "json",
1820
+ bodyType: "json",
1821
+ });
1822
+ return $dara.cast<$_model.ListIntegrationPolicyCustomScrapeJobRulesResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyCustomScrapeJobRulesResponse({}));
1823
+ }
1824
+
1825
+ /**
1826
+ * 获取接入中心策略的存储要求信息
1827
+ *
1828
+ * @param request - ListIntegrationPolicyCustomScrapeJobRulesRequest
1829
+ * @returns ListIntegrationPolicyCustomScrapeJobRulesResponse
1830
+ */
1831
+ async listIntegrationPolicyCustomScrapeJobRules(policyId: string, request: $_model.ListIntegrationPolicyCustomScrapeJobRulesRequest): Promise<$_model.ListIntegrationPolicyCustomScrapeJobRulesResponse> {
1832
+ let runtime = new $dara.RuntimeOptions({ });
1833
+ let headers : {[key: string ]: string} = { };
1834
+ return await this.listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId, request, headers, runtime);
1835
+ }
1836
+
1837
+ /**
1838
+ * 获取接入中心策略的PodMonitor资源
1839
+ *
1840
+ * @param request - ListIntegrationPolicyPodMonitorsRequest
1841
+ * @param headers - map
1842
+ * @param runtime - runtime options for this request RuntimeOptions
1843
+ * @returns ListIntegrationPolicyPodMonitorsResponse
1844
+ */
1845
+ async listIntegrationPolicyPodMonitorsWithOptions(policyId: string, request: $_model.ListIntegrationPolicyPodMonitorsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyPodMonitorsResponse> {
1846
+ request.validate();
1847
+ let query : {[key: string ]: any} = { };
1848
+ if (!$dara.isNull(request.addonReleaseName)) {
1849
+ query["addonReleaseName"] = request.addonReleaseName;
1850
+ }
1851
+
1852
+ if (!$dara.isNull(request.encryptYaml)) {
1853
+ query["encryptYaml"] = request.encryptYaml;
1854
+ }
1855
+
1856
+ if (!$dara.isNull(request.namespace)) {
1857
+ query["namespace"] = request.namespace;
1858
+ }
1859
+
1860
+ let req = new $OpenApiUtil.OpenApiRequest({
1861
+ headers: headers,
1862
+ query: OpenApiUtil.query(query),
1863
+ });
1864
+ let params = new $OpenApiUtil.Params({
1865
+ action: "ListIntegrationPolicyPodMonitors",
1866
+ version: "2024-03-30",
1867
+ protocol: "HTTPS",
1868
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/pod-monitors`,
1869
+ method: "GET",
1870
+ authType: "AK",
1871
+ style: "ROA",
1872
+ reqBodyType: "json",
1873
+ bodyType: "json",
1874
+ });
1875
+ return $dara.cast<$_model.ListIntegrationPolicyPodMonitorsResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyPodMonitorsResponse({}));
1876
+ }
1877
+
1878
+ /**
1879
+ * 获取接入中心策略的PodMonitor资源
1880
+ *
1881
+ * @param request - ListIntegrationPolicyPodMonitorsRequest
1882
+ * @returns ListIntegrationPolicyPodMonitorsResponse
1883
+ */
1884
+ async listIntegrationPolicyPodMonitors(policyId: string, request: $_model.ListIntegrationPolicyPodMonitorsRequest): Promise<$_model.ListIntegrationPolicyPodMonitorsResponse> {
1885
+ let runtime = new $dara.RuntimeOptions({ });
1886
+ let headers : {[key: string ]: string} = { };
1887
+ return await this.listIntegrationPolicyPodMonitorsWithOptions(policyId, request, headers, runtime);
1888
+ }
1889
+
1890
+ /**
1891
+ * 获取接入中心策略的存储要求信息
1892
+ *
1893
+ * @param request - ListIntegrationPolicyStorageRequirementsRequest
1894
+ * @param headers - map
1895
+ * @param runtime - runtime options for this request RuntimeOptions
1896
+ * @returns ListIntegrationPolicyStorageRequirementsResponse
1897
+ */
1898
+ async listIntegrationPolicyStorageRequirementsWithOptions(policyId: string, request: $_model.ListIntegrationPolicyStorageRequirementsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyStorageRequirementsResponse> {
1899
+ request.validate();
1900
+ let query : {[key: string ]: any} = { };
1901
+ if (!$dara.isNull(request.addonName)) {
1902
+ query["addonName"] = request.addonName;
1903
+ }
1904
+
1905
+ if (!$dara.isNull(request.addonReleaseName)) {
1906
+ query["addonReleaseName"] = request.addonReleaseName;
1907
+ }
1908
+
1909
+ if (!$dara.isNull(request.storageType)) {
1910
+ query["storageType"] = request.storageType;
1911
+ }
1912
+
1913
+ let req = new $OpenApiUtil.OpenApiRequest({
1914
+ headers: headers,
1915
+ query: OpenApiUtil.query(query),
1916
+ });
1917
+ let params = new $OpenApiUtil.Params({
1918
+ action: "ListIntegrationPolicyStorageRequirements",
1919
+ version: "2024-03-30",
1920
+ protocol: "HTTPS",
1921
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/storage-requirements`,
1922
+ method: "GET",
1923
+ authType: "AK",
1924
+ style: "ROA",
1925
+ reqBodyType: "json",
1926
+ bodyType: "json",
1927
+ });
1928
+ return $dara.cast<$_model.ListIntegrationPolicyStorageRequirementsResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyStorageRequirementsResponse({}));
1929
+ }
1930
+
1931
+ /**
1932
+ * 获取接入中心策略的存储要求信息
1933
+ *
1934
+ * @param request - ListIntegrationPolicyStorageRequirementsRequest
1935
+ * @returns ListIntegrationPolicyStorageRequirementsResponse
1936
+ */
1937
+ async listIntegrationPolicyStorageRequirements(policyId: string, request: $_model.ListIntegrationPolicyStorageRequirementsRequest): Promise<$_model.ListIntegrationPolicyStorageRequirementsResponse> {
1938
+ let runtime = new $dara.RuntimeOptions({ });
1939
+ let headers : {[key: string ]: string} = { };
1940
+ return await this.listIntegrationPolicyStorageRequirementsWithOptions(policyId, request, headers, runtime);
1941
+ }
1942
+
1943
+ /**
1944
+ * 获取Prometheus实例大盘列表
1945
+ *
1946
+ * @param request - ListPrometheusDashboardsRequest
1947
+ * @param headers - map
1948
+ * @param runtime - runtime options for this request RuntimeOptions
1949
+ * @returns ListPrometheusDashboardsResponse
1950
+ */
1951
+ async listPrometheusDashboardsWithOptions(prometheusInstanceId: string, request: $_model.ListPrometheusDashboardsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusDashboardsResponse> {
1952
+ request.validate();
1953
+ let query : {[key: string ]: any} = { };
1954
+ if (!$dara.isNull(request.aliyunLang)) {
1955
+ query["aliyunLang"] = request.aliyunLang;
1956
+ }
1957
+
1958
+ if (!$dara.isNull(request.resourceGroupId)) {
1959
+ query["resourceGroupId"] = request.resourceGroupId;
1960
+ }
1961
+
1962
+ let req = new $OpenApiUtil.OpenApiRequest({
1963
+ headers: headers,
1964
+ query: OpenApiUtil.query(query),
1965
+ });
1966
+ let params = new $OpenApiUtil.Params({
1967
+ action: "ListPrometheusDashboards",
1968
+ version: "2024-03-30",
1969
+ protocol: "HTTPS",
1970
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}/dashboards`,
1971
+ method: "GET",
1972
+ authType: "AK",
1973
+ style: "ROA",
1974
+ reqBodyType: "json",
1975
+ bodyType: "json",
1976
+ });
1977
+ return $dara.cast<$_model.ListPrometheusDashboardsResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusDashboardsResponse({}));
1978
+ }
1979
+
1980
+ /**
1981
+ * 获取Prometheus实例大盘列表
1982
+ *
1983
+ * @param request - ListPrometheusDashboardsRequest
1984
+ * @returns ListPrometheusDashboardsResponse
1985
+ */
1986
+ async listPrometheusDashboards(prometheusInstanceId: string, request: $_model.ListPrometheusDashboardsRequest): Promise<$_model.ListPrometheusDashboardsResponse> {
1987
+ let runtime = new $dara.RuntimeOptions({ });
1988
+ let headers : {[key: string ]: string} = { };
1989
+ return await this.listPrometheusDashboardsWithOptions(prometheusInstanceId, request, headers, runtime);
1990
+ }
1991
+
1992
+ /**
1993
+ * 获取Prometheus实例信息列表
1994
+ *
1995
+ * @param tmpReq - ListPrometheusInstancesRequest
1996
+ * @param headers - map
1997
+ * @param runtime - runtime options for this request RuntimeOptions
1998
+ * @returns ListPrometheusInstancesResponse
1999
+ */
2000
+ async listPrometheusInstancesWithOptions(tmpReq: $_model.ListPrometheusInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusInstancesResponse> {
2001
+ tmpReq.validate();
2002
+ let request = new $_model.ListPrometheusInstancesShrinkRequest({ });
2003
+ OpenApiUtil.convert(tmpReq, request);
2004
+ if (!$dara.isNull(tmpReq.tag)) {
2005
+ request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
2006
+ }
2007
+
2008
+ let query : {[key: string ]: any} = { };
2009
+ if (!$dara.isNull(request.filterRegionIds)) {
2010
+ query["filterRegionIds"] = request.filterRegionIds;
2011
+ }
2012
+
2013
+ if (!$dara.isNull(request.maxResults)) {
2014
+ query["maxResults"] = request.maxResults;
2015
+ }
2016
+
2017
+ if (!$dara.isNull(request.nextToken)) {
2018
+ query["nextToken"] = request.nextToken;
2019
+ }
2020
+
2021
+ if (!$dara.isNull(request.prometheusInstanceIds)) {
2022
+ query["prometheusInstanceIds"] = request.prometheusInstanceIds;
2023
+ }
2024
+
2025
+ if (!$dara.isNull(request.prometheusInstanceName)) {
2026
+ query["prometheusInstanceName"] = request.prometheusInstanceName;
2027
+ }
2028
+
2029
+ if (!$dara.isNull(request.resourceGroupId)) {
2030
+ query["resourceGroupId"] = request.resourceGroupId;
2031
+ }
2032
+
2033
+ if (!$dara.isNull(request.resourceType)) {
2034
+ query["resourceType"] = request.resourceType;
2035
+ }
2036
+
2037
+ if (!$dara.isNull(request.tagShrink)) {
2038
+ query["tag"] = request.tagShrink;
2039
+ }
2040
+
2041
+ if (!$dara.isNull(request.version)) {
2042
+ query["version"] = request.version;
2043
+ }
2044
+
2045
+ let req = new $OpenApiUtil.OpenApiRequest({
2046
+ headers: headers,
2047
+ query: OpenApiUtil.query(query),
2048
+ });
2049
+ let params = new $OpenApiUtil.Params({
2050
+ action: "ListPrometheusInstances",
2051
+ version: "2024-03-30",
2052
+ protocol: "HTTPS",
2053
+ pathname: `/prometheus-instances`,
2054
+ method: "GET",
2055
+ authType: "AK",
2056
+ style: "ROA",
2057
+ reqBodyType: "json",
2058
+ bodyType: "json",
2059
+ });
2060
+ return $dara.cast<$_model.ListPrometheusInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusInstancesResponse({}));
2061
+ }
2062
+
2063
+ /**
2064
+ * 获取Prometheus实例信息列表
2065
+ *
2066
+ * @param request - ListPrometheusInstancesRequest
2067
+ * @returns ListPrometheusInstancesResponse
2068
+ */
2069
+ async listPrometheusInstances(request: $_model.ListPrometheusInstancesRequest): Promise<$_model.ListPrometheusInstancesResponse> {
2070
+ let runtime = new $dara.RuntimeOptions({ });
2071
+ let headers : {[key: string ]: string} = { };
2072
+ return await this.listPrometheusInstancesWithOptions(request, headers, runtime);
2073
+ }
2074
+
2075
+ /**
2076
+ * 获取Prometheus视图实例信息列表
2077
+ *
2078
+ * @param tmpReq - ListPrometheusViewsRequest
2079
+ * @param headers - map
2080
+ * @param runtime - runtime options for this request RuntimeOptions
2081
+ * @returns ListPrometheusViewsResponse
2082
+ */
2083
+ async listPrometheusViewsWithOptions(tmpReq: $_model.ListPrometheusViewsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusViewsResponse> {
2084
+ tmpReq.validate();
2085
+ let request = new $_model.ListPrometheusViewsShrinkRequest({ });
2086
+ OpenApiUtil.convert(tmpReq, request);
2087
+ if (!$dara.isNull(tmpReq.tag)) {
2088
+ request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
2089
+ }
2090
+
2091
+ let query : {[key: string ]: any} = { };
2092
+ if (!$dara.isNull(request.filterRegionIds)) {
2093
+ query["filterRegionIds"] = request.filterRegionIds;
2094
+ }
2095
+
2096
+ if (!$dara.isNull(request.maxResults)) {
2097
+ query["maxResults"] = request.maxResults;
2098
+ }
2099
+
2100
+ if (!$dara.isNull(request.nextToken)) {
2101
+ query["nextToken"] = request.nextToken;
2102
+ }
2103
+
2104
+ if (!$dara.isNull(request.prometheusViewIds)) {
2105
+ query["prometheusViewIds"] = request.prometheusViewIds;
2106
+ }
2107
+
2108
+ if (!$dara.isNull(request.prometheusViewName)) {
2109
+ query["prometheusViewName"] = request.prometheusViewName;
2110
+ }
2111
+
2112
+ if (!$dara.isNull(request.resourceGroupId)) {
2113
+ query["resourceGroupId"] = request.resourceGroupId;
2114
+ }
2115
+
2116
+ if (!$dara.isNull(request.resourceType)) {
2117
+ query["resourceType"] = request.resourceType;
2118
+ }
2119
+
2120
+ if (!$dara.isNull(request.tagShrink)) {
2121
+ query["tag"] = request.tagShrink;
2122
+ }
2123
+
2124
+ if (!$dara.isNull(request.version)) {
2125
+ query["version"] = request.version;
2126
+ }
2127
+
2128
+ if (!$dara.isNull(request.workspace)) {
2129
+ query["workspace"] = request.workspace;
2130
+ }
2131
+
2132
+ let req = new $OpenApiUtil.OpenApiRequest({
2133
+ headers: headers,
2134
+ query: OpenApiUtil.query(query),
2135
+ });
2136
+ let params = new $OpenApiUtil.Params({
2137
+ action: "ListPrometheusViews",
2138
+ version: "2024-03-30",
2139
+ protocol: "HTTPS",
2140
+ pathname: `/prometheus-views`,
2141
+ method: "GET",
2142
+ authType: "AK",
697
2143
  style: "ROA",
698
2144
  reqBodyType: "json",
699
2145
  bodyType: "json",
700
2146
  });
701
- return $dara.cast<$_model.GetUmodelResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelResponse({}));
2147
+ return $dara.cast<$_model.ListPrometheusViewsResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusViewsResponse({}));
702
2148
  }
703
2149
 
704
2150
  /**
705
- * 获取Umodel配置信息
706
- * @returns GetUmodelResponse
2151
+ * 获取Prometheus视图实例信息列表
2152
+ *
2153
+ * @param request - ListPrometheusViewsRequest
2154
+ * @returns ListPrometheusViewsResponse
707
2155
  */
708
- async getUmodel(workspace: string): Promise<$_model.GetUmodelResponse> {
2156
+ async listPrometheusViews(request: $_model.ListPrometheusViewsRequest): Promise<$_model.ListPrometheusViewsResponse> {
709
2157
  let runtime = new $dara.RuntimeOptions({ });
710
2158
  let headers : {[key: string ]: string} = { };
711
- return await this.getUmodelWithOptions(workspace, headers, runtime);
2159
+ return await this.listPrometheusViewsWithOptions(request, headers, runtime);
712
2160
  }
713
2161
 
714
2162
  /**
715
- * 获取相关联的 Umodel 图数据
2163
+ * 获取Prometheus虚拟实例
716
2164
  *
717
- * @param request - GetUmodelDataRequest
2165
+ * @param request - ListPrometheusVirtualInstancesRequest
2166
+ * @param headers - map
2167
+ * @param runtime - runtime options for this request RuntimeOptions
2168
+ * @returns ListPrometheusVirtualInstancesResponse
2169
+ */
2170
+ async listPrometheusVirtualInstancesWithOptions(request: $_model.ListPrometheusVirtualInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusVirtualInstancesResponse> {
2171
+ request.validate();
2172
+ let query : {[key: string ]: any} = { };
2173
+ if (!$dara.isNull(request.namespace)) {
2174
+ query["namespace"] = request.namespace;
2175
+ }
2176
+
2177
+ let req = new $OpenApiUtil.OpenApiRequest({
2178
+ headers: headers,
2179
+ query: OpenApiUtil.query(query),
2180
+ });
2181
+ let params = new $OpenApiUtil.Params({
2182
+ action: "ListPrometheusVirtualInstances",
2183
+ version: "2024-03-30",
2184
+ protocol: "HTTPS",
2185
+ pathname: `/virtual-instances`,
2186
+ method: "GET",
2187
+ authType: "AK",
2188
+ style: "ROA",
2189
+ reqBodyType: "json",
2190
+ bodyType: "json",
2191
+ });
2192
+ return $dara.cast<$_model.ListPrometheusVirtualInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusVirtualInstancesResponse({}));
2193
+ }
2194
+
2195
+ /**
2196
+ * 获取Prometheus虚拟实例
2197
+ *
2198
+ * @param request - ListPrometheusVirtualInstancesRequest
2199
+ * @returns ListPrometheusVirtualInstancesResponse
2200
+ */
2201
+ async listPrometheusVirtualInstances(request: $_model.ListPrometheusVirtualInstancesRequest): Promise<$_model.ListPrometheusVirtualInstancesResponse> {
2202
+ let runtime = new $dara.RuntimeOptions({ });
2203
+ let headers : {[key: string ]: string} = { };
2204
+ return await this.listPrometheusVirtualInstancesWithOptions(request, headers, runtime);
2205
+ }
2206
+
2207
+ /**
2208
+ * 列出资源Service
2209
+ *
2210
+ * @param request - ListServicesRequest
2211
+ * @param headers - map
2212
+ * @param runtime - runtime options for this request RuntimeOptions
2213
+ * @returns ListServicesResponse
2214
+ */
2215
+ async listServicesWithOptions(workspace: string, request: $_model.ListServicesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServicesResponse> {
2216
+ request.validate();
2217
+ let query : {[key: string ]: any} = { };
2218
+ if (!$dara.isNull(request.maxResults)) {
2219
+ query["maxResults"] = request.maxResults;
2220
+ }
2221
+
2222
+ if (!$dara.isNull(request.nextToken)) {
2223
+ query["nextToken"] = request.nextToken;
2224
+ }
2225
+
2226
+ if (!$dara.isNull(request.serviceType)) {
2227
+ query["serviceType"] = request.serviceType;
2228
+ }
2229
+
2230
+ let req = new $OpenApiUtil.OpenApiRequest({
2231
+ headers: headers,
2232
+ query: OpenApiUtil.query(query),
2233
+ });
2234
+ let params = new $OpenApiUtil.Params({
2235
+ action: "ListServices",
2236
+ version: "2024-03-30",
2237
+ protocol: "HTTPS",
2238
+ pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/services`,
2239
+ method: "GET",
2240
+ authType: "AK",
2241
+ style: "ROA",
2242
+ reqBodyType: "json",
2243
+ bodyType: "json",
2244
+ });
2245
+ return $dara.cast<$_model.ListServicesResponse>(await this.callApi(params, req, runtime), new $_model.ListServicesResponse({}));
2246
+ }
2247
+
2248
+ /**
2249
+ * 列出资源Service
2250
+ *
2251
+ * @param request - ListServicesRequest
2252
+ * @returns ListServicesResponse
2253
+ */
2254
+ async listServices(workspace: string, request: $_model.ListServicesRequest): Promise<$_model.ListServicesResponse> {
2255
+ let runtime = new $dara.RuntimeOptions({ });
2256
+ let headers : {[key: string ]: string} = { };
2257
+ return await this.listServicesWithOptions(workspace, request, headers, runtime);
2258
+ }
2259
+
2260
+ /**
2261
+ * 获取工作空间列表
2262
+ *
2263
+ * @param tmpReq - ListWorkspacesRequest
2264
+ * @param headers - map
2265
+ * @param runtime - runtime options for this request RuntimeOptions
2266
+ * @returns ListWorkspacesResponse
2267
+ */
2268
+ async listWorkspacesWithOptions(tmpReq: $_model.ListWorkspacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListWorkspacesResponse> {
2269
+ tmpReq.validate();
2270
+ let request = new $_model.ListWorkspacesShrinkRequest({ });
2271
+ OpenApiUtil.convert(tmpReq, request);
2272
+ if (!$dara.isNull(tmpReq.workspaceNameList)) {
2273
+ request.workspaceNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
2274
+ }
2275
+
2276
+ let query : {[key: string ]: any} = { };
2277
+ if (!$dara.isNull(request.maxResults)) {
2278
+ query["maxResults"] = request.maxResults;
2279
+ }
2280
+
2281
+ if (!$dara.isNull(request.nextToken)) {
2282
+ query["nextToken"] = request.nextToken;
2283
+ }
2284
+
2285
+ if (!$dara.isNull(request.region)) {
2286
+ query["region"] = request.region;
2287
+ }
2288
+
2289
+ if (!$dara.isNull(request.workspaceName)) {
2290
+ query["workspaceName"] = request.workspaceName;
2291
+ }
2292
+
2293
+ if (!$dara.isNull(request.workspaceNameListShrink)) {
2294
+ query["workspaceNameList"] = request.workspaceNameListShrink;
2295
+ }
2296
+
2297
+ let req = new $OpenApiUtil.OpenApiRequest({
2298
+ headers: headers,
2299
+ query: OpenApiUtil.query(query),
2300
+ });
2301
+ let params = new $OpenApiUtil.Params({
2302
+ action: "ListWorkspaces",
2303
+ version: "2024-03-30",
2304
+ protocol: "HTTPS",
2305
+ pathname: `/workspace`,
2306
+ method: "GET",
2307
+ authType: "AK",
2308
+ style: "ROA",
2309
+ reqBodyType: "json",
2310
+ bodyType: "json",
2311
+ });
2312
+ return $dara.cast<$_model.ListWorkspacesResponse>(await this.callApi(params, req, runtime), new $_model.ListWorkspacesResponse({}));
2313
+ }
2314
+
2315
+ /**
2316
+ * 获取工作空间列表
2317
+ *
2318
+ * @param request - ListWorkspacesRequest
2319
+ * @returns ListWorkspacesResponse
2320
+ */
2321
+ async listWorkspaces(request: $_model.ListWorkspacesRequest): Promise<$_model.ListWorkspacesResponse> {
2322
+ let runtime = new $dara.RuntimeOptions({ });
2323
+ let headers : {[key: string ]: string} = { };
2324
+ return await this.listWorkspacesWithOptions(request, headers, runtime);
2325
+ }
2326
+
2327
+ /**
2328
+ * 创建工作空间
2329
+ *
2330
+ * @param request - PutWorkspaceRequest
2331
+ * @param headers - map
2332
+ * @param runtime - runtime options for this request RuntimeOptions
2333
+ * @returns PutWorkspaceResponse
2334
+ */
2335
+ async putWorkspaceWithOptions(workspaceName: string, request: $_model.PutWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.PutWorkspaceResponse> {
2336
+ request.validate();
2337
+ let body : {[key: string ]: any} = { };
2338
+ if (!$dara.isNull(request.description)) {
2339
+ body["description"] = request.description;
2340
+ }
2341
+
2342
+ if (!$dara.isNull(request.displayName)) {
2343
+ body["displayName"] = request.displayName;
2344
+ }
2345
+
2346
+ if (!$dara.isNull(request.slsProject)) {
2347
+ body["slsProject"] = request.slsProject;
2348
+ }
2349
+
2350
+ let req = new $OpenApiUtil.OpenApiRequest({
2351
+ headers: headers,
2352
+ body: OpenApiUtil.parseToMap(body),
2353
+ });
2354
+ let params = new $OpenApiUtil.Params({
2355
+ action: "PutWorkspace",
2356
+ version: "2024-03-30",
2357
+ protocol: "HTTPS",
2358
+ pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
2359
+ method: "POST",
2360
+ authType: "AK",
2361
+ style: "ROA",
2362
+ reqBodyType: "json",
2363
+ bodyType: "json",
2364
+ });
2365
+ return $dara.cast<$_model.PutWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.PutWorkspaceResponse({}));
2366
+ }
2367
+
2368
+ /**
2369
+ * 创建工作空间
2370
+ *
2371
+ * @param request - PutWorkspaceRequest
2372
+ * @returns PutWorkspaceResponse
2373
+ */
2374
+ async putWorkspace(workspaceName: string, request: $_model.PutWorkspaceRequest): Promise<$_model.PutWorkspaceResponse> {
2375
+ let runtime = new $dara.RuntimeOptions({ });
2376
+ let headers : {[key: string ]: string} = { };
2377
+ return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
2378
+ }
2379
+
2380
+ /**
2381
+ * 升级接入组件
2382
+ *
2383
+ * @param request - UpdateAddonReleaseRequest
718
2384
  * @param headers - map
719
2385
  * @param runtime - runtime options for this request RuntimeOptions
720
- * @returns GetUmodelDataResponse
2386
+ * @returns UpdateAddonReleaseResponse
721
2387
  */
722
- async getUmodelDataWithOptions(workspace: string, request: $_model.GetUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelDataResponse> {
2388
+ async updateAddonReleaseWithOptions(releaseName: string, policyId: string, request: $_model.UpdateAddonReleaseRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAddonReleaseResponse> {
723
2389
  request.validate();
724
- let query : {[key: string ]: any} = { };
725
- if (!$dara.isNull(request.method)) {
726
- query["method"] = request.method;
2390
+ let body : {[key: string ]: any} = { };
2391
+ if (!$dara.isNull(request.addonVersion)) {
2392
+ body["addonVersion"] = request.addonVersion;
727
2393
  }
728
2394
 
729
- let body : {[key: string ]: any} = { };
730
- if (!$dara.isNull(request.content)) {
731
- body["content"] = request.content;
2395
+ if (!$dara.isNull(request.dryRun)) {
2396
+ body["dryRun"] = request.dryRun;
2397
+ }
2398
+
2399
+ if (!$dara.isNull(request.entityRules)) {
2400
+ body["entityRules"] = request.entityRules;
2401
+ }
2402
+
2403
+ if (!$dara.isNull(request.values)) {
2404
+ body["values"] = request.values;
732
2405
  }
733
2406
 
734
2407
  let req = new $OpenApiUtil.OpenApiRequest({
735
2408
  headers: headers,
736
- query: OpenApiUtil.query(query),
737
2409
  body: OpenApiUtil.parseToMap(body),
738
2410
  });
739
2411
  let params = new $OpenApiUtil.Params({
740
- action: "GetUmodelData",
2412
+ action: "UpdateAddonRelease",
741
2413
  version: "2024-03-30",
742
2414
  protocol: "HTTPS",
743
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/graph`,
744
- method: "POST",
2415
+ pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases/${$dara.URL.percentEncode(releaseName)}`,
2416
+ method: "PUT",
745
2417
  authType: "AK",
746
2418
  style: "ROA",
747
2419
  reqBodyType: "json",
748
2420
  bodyType: "json",
749
2421
  });
750
- return $dara.cast<$_model.GetUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelDataResponse({}));
2422
+ return $dara.cast<$_model.UpdateAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAddonReleaseResponse({}));
751
2423
  }
752
2424
 
753
2425
  /**
754
- * 获取相关联的 Umodel 图数据
2426
+ * 升级接入组件
755
2427
  *
756
- * @param request - GetUmodelDataRequest
757
- * @returns GetUmodelDataResponse
2428
+ * @param request - UpdateAddonReleaseRequest
2429
+ * @returns UpdateAddonReleaseResponse
758
2430
  */
759
- async getUmodelData(workspace: string, request: $_model.GetUmodelDataRequest): Promise<$_model.GetUmodelDataResponse> {
2431
+ async updateAddonRelease(releaseName: string, policyId: string, request: $_model.UpdateAddonReleaseRequest): Promise<$_model.UpdateAddonReleaseResponse> {
760
2432
  let runtime = new $dara.RuntimeOptions({ });
761
2433
  let headers : {[key: string ]: string} = { };
762
- return await this.getUmodelDataWithOptions(workspace, request, headers, runtime);
2434
+ return await this.updateAddonReleaseWithOptions(releaseName, policyId, request, headers, runtime);
763
2435
  }
764
2436
 
765
2437
  /**
766
- * 获取工作空间
2438
+ * 应用聚合任务组
767
2439
  *
2440
+ * @param request - UpdateAggTaskGroupRequest
768
2441
  * @param headers - map
769
2442
  * @param runtime - runtime options for this request RuntimeOptions
770
- * @returns GetWorkspaceResponse
2443
+ * @returns UpdateAggTaskGroupResponse
771
2444
  */
772
- async getWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceResponse> {
2445
+ async updateAggTaskGroupWithOptions(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAggTaskGroupResponse> {
2446
+ request.validate();
2447
+ let body : {[key: string ]: any} = { };
2448
+ if (!$dara.isNull(request.aggTaskGroupConfig)) {
2449
+ body["aggTaskGroupConfig"] = request.aggTaskGroupConfig;
2450
+ }
2451
+
2452
+ if (!$dara.isNull(request.aggTaskGroupConfigType)) {
2453
+ body["aggTaskGroupConfigType"] = request.aggTaskGroupConfigType;
2454
+ }
2455
+
2456
+ if (!$dara.isNull(request.aggTaskGroupName)) {
2457
+ body["aggTaskGroupName"] = request.aggTaskGroupName;
2458
+ }
2459
+
2460
+ if (!$dara.isNull(request.cronExpr)) {
2461
+ body["cronExpr"] = request.cronExpr;
2462
+ }
2463
+
2464
+ if (!$dara.isNull(request.delay)) {
2465
+ body["delay"] = request.delay;
2466
+ }
2467
+
2468
+ if (!$dara.isNull(request.description)) {
2469
+ body["description"] = request.description;
2470
+ }
2471
+
2472
+ if (!$dara.isNull(request.fromTime)) {
2473
+ body["fromTime"] = request.fromTime;
2474
+ }
2475
+
2476
+ if (!$dara.isNull(request.maxRetries)) {
2477
+ body["maxRetries"] = request.maxRetries;
2478
+ }
2479
+
2480
+ if (!$dara.isNull(request.maxRunTimeInSeconds)) {
2481
+ body["maxRunTimeInSeconds"] = request.maxRunTimeInSeconds;
2482
+ }
2483
+
2484
+ if (!$dara.isNull(request.precheckString)) {
2485
+ body["precheckString"] = request.precheckString;
2486
+ }
2487
+
2488
+ if (!$dara.isNull(request.scheduleMode)) {
2489
+ body["scheduleMode"] = request.scheduleMode;
2490
+ }
2491
+
2492
+ if (!$dara.isNull(request.scheduleTimeExpr)) {
2493
+ body["scheduleTimeExpr"] = request.scheduleTimeExpr;
2494
+ }
2495
+
2496
+ if (!$dara.isNull(request.status)) {
2497
+ body["status"] = request.status;
2498
+ }
2499
+
2500
+ if (!$dara.isNull(request.tags)) {
2501
+ body["tags"] = request.tags;
2502
+ }
2503
+
2504
+ if (!$dara.isNull(request.targetPrometheusId)) {
2505
+ body["targetPrometheusId"] = request.targetPrometheusId;
2506
+ }
2507
+
2508
+ if (!$dara.isNull(request.toTime)) {
2509
+ body["toTime"] = request.toTime;
2510
+ }
2511
+
773
2512
  let req = new $OpenApiUtil.OpenApiRequest({
774
2513
  headers: headers,
2514
+ body: OpenApiUtil.parseToMap(body),
775
2515
  });
776
2516
  let params = new $OpenApiUtil.Params({
777
- action: "GetWorkspace",
2517
+ action: "UpdateAggTaskGroup",
778
2518
  version: "2024-03-30",
779
2519
  protocol: "HTTPS",
780
- pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
781
- method: "GET",
2520
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
2521
+ method: "PUT",
782
2522
  authType: "AK",
783
2523
  style: "ROA",
784
2524
  reqBodyType: "json",
785
2525
  bodyType: "json",
786
2526
  });
787
- return $dara.cast<$_model.GetWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.GetWorkspaceResponse({}));
2527
+ return $dara.cast<$_model.UpdateAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAggTaskGroupResponse({}));
788
2528
  }
789
2529
 
790
2530
  /**
791
- * 获取工作空间
792
- * @returns GetWorkspaceResponse
2531
+ * 应用聚合任务组
2532
+ *
2533
+ * @param request - UpdateAggTaskGroupRequest
2534
+ * @returns UpdateAggTaskGroupResponse
793
2535
  */
794
- async getWorkspace(workspaceName: string): Promise<$_model.GetWorkspaceResponse> {
2536
+ async updateAggTaskGroup(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupRequest): Promise<$_model.UpdateAggTaskGroupResponse> {
795
2537
  let runtime = new $dara.RuntimeOptions({ });
796
2538
  let headers : {[key: string ]: string} = { };
797
- return await this.getWorkspaceWithOptions(workspaceName, headers, runtime);
2539
+ return await this.updateAggTaskGroupWithOptions(instanceId, groupId, request, headers, runtime);
798
2540
  }
799
2541
 
800
2542
  /**
801
- * 查询告警动作
2543
+ * 更新聚合任务组状态
802
2544
  *
803
- * @param tmpReq - ListAlertActionsRequest
2545
+ * @param request - UpdateAggTaskGroupStatusRequest
804
2546
  * @param headers - map
805
2547
  * @param runtime - runtime options for this request RuntimeOptions
806
- * @returns ListAlertActionsResponse
2548
+ * @returns UpdateAggTaskGroupStatusResponse
807
2549
  */
808
- async listAlertActionsWithOptions(tmpReq: $_model.ListAlertActionsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAlertActionsResponse> {
809
- tmpReq.validate();
810
- let request = new $_model.ListAlertActionsShrinkRequest({ });
811
- OpenApiUtil.convert(tmpReq, request);
812
- if (!$dara.isNull(tmpReq.alertActionIds)) {
813
- request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
814
- }
815
-
816
- let query : {[key: string ]: any} = { };
817
- if (!$dara.isNull(request.alertActionIdsShrink)) {
818
- query["alertActionIds"] = request.alertActionIdsShrink;
819
- }
820
-
821
- if (!$dara.isNull(request.alertActionName)) {
822
- query["alertActionName"] = request.alertActionName;
823
- }
824
-
825
- if (!$dara.isNull(request.pageNumber)) {
826
- query["pageNumber"] = request.pageNumber;
827
- }
828
-
829
- if (!$dara.isNull(request.pageSize)) {
830
- query["pageSize"] = request.pageSize;
831
- }
832
-
833
- if (!$dara.isNull(request.type)) {
834
- query["type"] = request.type;
2550
+ async updateAggTaskGroupStatusWithOptions(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupStatusRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAggTaskGroupStatusResponse> {
2551
+ request.validate();
2552
+ let body : {[key: string ]: any} = { };
2553
+ if (!$dara.isNull(request.status)) {
2554
+ body["status"] = request.status;
835
2555
  }
836
2556
 
837
2557
  let req = new $OpenApiUtil.OpenApiRequest({
838
2558
  headers: headers,
839
- query: OpenApiUtil.query(query),
2559
+ body: OpenApiUtil.parseToMap(body),
840
2560
  });
841
2561
  let params = new $OpenApiUtil.Params({
842
- action: "ListAlertActions",
2562
+ action: "UpdateAggTaskGroupStatus",
843
2563
  version: "2024-03-30",
844
2564
  protocol: "HTTPS",
845
- pathname: `/alertActions`,
846
- method: "GET",
2565
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}/status`,
2566
+ method: "PUT",
847
2567
  authType: "AK",
848
2568
  style: "ROA",
849
2569
  reqBodyType: "json",
850
2570
  bodyType: "json",
851
2571
  });
852
- return $dara.cast<$_model.ListAlertActionsResponse>(await this.callApi(params, req, runtime), new $_model.ListAlertActionsResponse({}));
2572
+ return $dara.cast<$_model.UpdateAggTaskGroupStatusResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAggTaskGroupStatusResponse({}));
853
2573
  }
854
2574
 
855
2575
  /**
856
- * 查询告警动作
2576
+ * 更新聚合任务组状态
857
2577
  *
858
- * @param request - ListAlertActionsRequest
859
- * @returns ListAlertActionsResponse
2578
+ * @param request - UpdateAggTaskGroupStatusRequest
2579
+ * @returns UpdateAggTaskGroupStatusResponse
860
2580
  */
861
- async listAlertActions(request: $_model.ListAlertActionsRequest): Promise<$_model.ListAlertActionsResponse> {
2581
+ async updateAggTaskGroupStatus(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupStatusRequest): Promise<$_model.UpdateAggTaskGroupStatusResponse> {
862
2582
  let runtime = new $dara.RuntimeOptions({ });
863
2583
  let headers : {[key: string ]: string} = { };
864
- return await this.listAlertActionsWithOptions(request, headers, runtime);
2584
+ return await this.updateAggTaskGroupStatusWithOptions(instanceId, groupId, request, headers, runtime);
865
2585
  }
866
2586
 
867
2587
  /**
868
- * 列出资源Service
2588
+ * 更新指定策略
869
2589
  *
870
- * @param request - ListServicesRequest
2590
+ * @param request - UpdateIntegrationPolicyRequest
871
2591
  * @param headers - map
872
2592
  * @param runtime - runtime options for this request RuntimeOptions
873
- * @returns ListServicesResponse
2593
+ * @returns UpdateIntegrationPolicyResponse
874
2594
  */
875
- async listServicesWithOptions(workspace: string, request: $_model.ListServicesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServicesResponse> {
2595
+ async updateIntegrationPolicyWithOptions(integrationPolicyId: string, request: $_model.UpdateIntegrationPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateIntegrationPolicyResponse> {
876
2596
  request.validate();
877
- let query : {[key: string ]: any} = { };
878
- if (!$dara.isNull(request.maxResults)) {
879
- query["maxResults"] = request.maxResults;
2597
+ let body : {[key: string ]: any} = { };
2598
+ if (!$dara.isNull(request.feePackage)) {
2599
+ body["feePackage"] = request.feePackage;
880
2600
  }
881
2601
 
882
- if (!$dara.isNull(request.nextToken)) {
883
- query["nextToken"] = request.nextToken;
2602
+ if (!$dara.isNull(request.policyName)) {
2603
+ body["policyName"] = request.policyName;
884
2604
  }
885
2605
 
886
- if (!$dara.isNull(request.serviceType)) {
887
- query["serviceType"] = request.serviceType;
2606
+ if (!$dara.isNull(request.resourceGroupId)) {
2607
+ body["resourceGroupId"] = request.resourceGroupId;
2608
+ }
2609
+
2610
+ if (!$dara.isNull(request.tags)) {
2611
+ body["tags"] = request.tags;
888
2612
  }
889
2613
 
890
2614
  let req = new $OpenApiUtil.OpenApiRequest({
891
2615
  headers: headers,
892
- query: OpenApiUtil.query(query),
2616
+ body: OpenApiUtil.parseToMap(body),
893
2617
  });
894
2618
  let params = new $OpenApiUtil.Params({
895
- action: "ListServices",
2619
+ action: "UpdateIntegrationPolicy",
896
2620
  version: "2024-03-30",
897
2621
  protocol: "HTTPS",
898
- pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/services`,
899
- method: "GET",
2622
+ pathname: `/integration-policies/${$dara.URL.percentEncode(integrationPolicyId)}`,
2623
+ method: "PUT",
900
2624
  authType: "AK",
901
2625
  style: "ROA",
902
2626
  reqBodyType: "json",
903
2627
  bodyType: "json",
904
2628
  });
905
- return $dara.cast<$_model.ListServicesResponse>(await this.callApi(params, req, runtime), new $_model.ListServicesResponse({}));
2629
+ return $dara.cast<$_model.UpdateIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateIntegrationPolicyResponse({}));
906
2630
  }
907
2631
 
908
2632
  /**
909
- * 列出资源Service
2633
+ * 更新指定策略
910
2634
  *
911
- * @param request - ListServicesRequest
912
- * @returns ListServicesResponse
2635
+ * @param request - UpdateIntegrationPolicyRequest
2636
+ * @returns UpdateIntegrationPolicyResponse
913
2637
  */
914
- async listServices(workspace: string, request: $_model.ListServicesRequest): Promise<$_model.ListServicesResponse> {
2638
+ async updateIntegrationPolicy(integrationPolicyId: string, request: $_model.UpdateIntegrationPolicyRequest): Promise<$_model.UpdateIntegrationPolicyResponse> {
915
2639
  let runtime = new $dara.RuntimeOptions({ });
916
2640
  let headers : {[key: string ]: string} = { };
917
- return await this.listServicesWithOptions(workspace, request, headers, runtime);
2641
+ return await this.updateIntegrationPolicyWithOptions(integrationPolicyId, request, headers, runtime);
918
2642
  }
919
2643
 
920
2644
  /**
921
- * 获取工作空间列表
2645
+ * 更新Prom实例信息
922
2646
  *
923
- * @param tmpReq - ListWorkspacesRequest
2647
+ * @param request - UpdatePrometheusInstanceRequest
924
2648
  * @param headers - map
925
2649
  * @param runtime - runtime options for this request RuntimeOptions
926
- * @returns ListWorkspacesResponse
2650
+ * @returns UpdatePrometheusInstanceResponse
927
2651
  */
928
- async listWorkspacesWithOptions(tmpReq: $_model.ListWorkspacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListWorkspacesResponse> {
929
- tmpReq.validate();
930
- let request = new $_model.ListWorkspacesShrinkRequest({ });
931
- OpenApiUtil.convert(tmpReq, request);
932
- if (!$dara.isNull(tmpReq.workspaceNameList)) {
933
- request.workspaceNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
2652
+ async updatePrometheusInstanceWithOptions(prometheusInstanceId: string, request: $_model.UpdatePrometheusInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdatePrometheusInstanceResponse> {
2653
+ request.validate();
2654
+ let body : {[key: string ]: any} = { };
2655
+ if (!$dara.isNull(request.archiveDuration)) {
2656
+ body["archiveDuration"] = request.archiveDuration;
934
2657
  }
935
2658
 
936
- let query : {[key: string ]: any} = { };
937
- if (!$dara.isNull(request.maxResults)) {
938
- query["maxResults"] = request.maxResults;
2659
+ if (!$dara.isNull(request.authFreeReadPolicy)) {
2660
+ body["authFreeReadPolicy"] = request.authFreeReadPolicy;
939
2661
  }
940
2662
 
941
- if (!$dara.isNull(request.nextToken)) {
942
- query["nextToken"] = request.nextToken;
2663
+ if (!$dara.isNull(request.authFreeWritePolicy)) {
2664
+ body["authFreeWritePolicy"] = request.authFreeWritePolicy;
943
2665
  }
944
2666
 
945
- if (!$dara.isNull(request.region)) {
946
- query["region"] = request.region;
2667
+ if (!$dara.isNull(request.enableAuthFreeRead)) {
2668
+ body["enableAuthFreeRead"] = request.enableAuthFreeRead;
947
2669
  }
948
2670
 
949
- if (!$dara.isNull(request.workspaceName)) {
950
- query["workspaceName"] = request.workspaceName;
2671
+ if (!$dara.isNull(request.enableAuthFreeWrite)) {
2672
+ body["enableAuthFreeWrite"] = request.enableAuthFreeWrite;
951
2673
  }
952
2674
 
953
- if (!$dara.isNull(request.workspaceNameListShrink)) {
954
- query["workspaceNameList"] = request.workspaceNameListShrink;
2675
+ if (!$dara.isNull(request.enableAuthToken)) {
2676
+ body["enableAuthToken"] = request.enableAuthToken;
2677
+ }
2678
+
2679
+ if (!$dara.isNull(request.paymentType)) {
2680
+ body["paymentType"] = request.paymentType;
2681
+ }
2682
+
2683
+ if (!$dara.isNull(request.prometheusInstanceName)) {
2684
+ body["prometheusInstanceName"] = request.prometheusInstanceName;
2685
+ }
2686
+
2687
+ if (!$dara.isNull(request.status)) {
2688
+ body["status"] = request.status;
2689
+ }
2690
+
2691
+ if (!$dara.isNull(request.storageDuration)) {
2692
+ body["storageDuration"] = request.storageDuration;
2693
+ }
2694
+
2695
+ if (!$dara.isNull(request.workspace)) {
2696
+ body["workspace"] = request.workspace;
955
2697
  }
956
2698
 
957
2699
  let req = new $OpenApiUtil.OpenApiRequest({
958
2700
  headers: headers,
959
- query: OpenApiUtil.query(query),
2701
+ body: OpenApiUtil.parseToMap(body),
960
2702
  });
961
2703
  let params = new $OpenApiUtil.Params({
962
- action: "ListWorkspaces",
2704
+ action: "UpdatePrometheusInstance",
963
2705
  version: "2024-03-30",
964
2706
  protocol: "HTTPS",
965
- pathname: `/workspace`,
966
- method: "GET",
2707
+ pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
2708
+ method: "PUT",
967
2709
  authType: "AK",
968
2710
  style: "ROA",
969
2711
  reqBodyType: "json",
970
2712
  bodyType: "json",
971
2713
  });
972
- return $dara.cast<$_model.ListWorkspacesResponse>(await this.callApi(params, req, runtime), new $_model.ListWorkspacesResponse({}));
2714
+ return $dara.cast<$_model.UpdatePrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusInstanceResponse({}));
973
2715
  }
974
2716
 
975
2717
  /**
976
- * 获取工作空间列表
2718
+ * 更新Prom实例信息
977
2719
  *
978
- * @param request - ListWorkspacesRequest
979
- * @returns ListWorkspacesResponse
2720
+ * @param request - UpdatePrometheusInstanceRequest
2721
+ * @returns UpdatePrometheusInstanceResponse
980
2722
  */
981
- async listWorkspaces(request: $_model.ListWorkspacesRequest): Promise<$_model.ListWorkspacesResponse> {
2723
+ async updatePrometheusInstance(prometheusInstanceId: string, request: $_model.UpdatePrometheusInstanceRequest): Promise<$_model.UpdatePrometheusInstanceResponse> {
982
2724
  let runtime = new $dara.RuntimeOptions({ });
983
2725
  let headers : {[key: string ]: string} = { };
984
- return await this.listWorkspacesWithOptions(request, headers, runtime);
2726
+ return await this.updatePrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
985
2727
  }
986
2728
 
987
2729
  /**
988
- * 创建工作空间
2730
+ * 更新Prom视图实例信息
989
2731
  *
990
- * @param request - PutWorkspaceRequest
2732
+ * @param request - UpdatePrometheusViewRequest
991
2733
  * @param headers - map
992
2734
  * @param runtime - runtime options for this request RuntimeOptions
993
- * @returns PutWorkspaceResponse
2735
+ * @returns UpdatePrometheusViewResponse
994
2736
  */
995
- async putWorkspaceWithOptions(workspaceName: string, request: $_model.PutWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.PutWorkspaceResponse> {
2737
+ async updatePrometheusViewWithOptions(prometheusViewId: string, request: $_model.UpdatePrometheusViewRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdatePrometheusViewResponse> {
996
2738
  request.validate();
997
2739
  let body : {[key: string ]: any} = { };
998
- if (!$dara.isNull(request.description)) {
999
- body["description"] = request.description;
2740
+ if (!$dara.isNull(request.authFreeReadPolicy)) {
2741
+ body["authFreeReadPolicy"] = request.authFreeReadPolicy;
1000
2742
  }
1001
2743
 
1002
- if (!$dara.isNull(request.displayName)) {
1003
- body["displayName"] = request.displayName;
2744
+ if (!$dara.isNull(request.enableAuthFreeRead)) {
2745
+ body["enableAuthFreeRead"] = request.enableAuthFreeRead;
1004
2746
  }
1005
2747
 
1006
- if (!$dara.isNull(request.slsProject)) {
1007
- body["slsProject"] = request.slsProject;
2748
+ if (!$dara.isNull(request.enableAuthToken)) {
2749
+ body["enableAuthToken"] = request.enableAuthToken;
2750
+ }
2751
+
2752
+ if (!$dara.isNull(request.prometheusInstances)) {
2753
+ body["prometheusInstances"] = request.prometheusInstances;
2754
+ }
2755
+
2756
+ if (!$dara.isNull(request.prometheusViewName)) {
2757
+ body["prometheusViewName"] = request.prometheusViewName;
2758
+ }
2759
+
2760
+ if (!$dara.isNull(request.status)) {
2761
+ body["status"] = request.status;
2762
+ }
2763
+
2764
+ if (!$dara.isNull(request.workspace)) {
2765
+ body["workspace"] = request.workspace;
1008
2766
  }
1009
2767
 
1010
2768
  let req = new $OpenApiUtil.OpenApiRequest({
@@ -1012,29 +2770,29 @@ export default class Client extends OpenApi {
1012
2770
  body: OpenApiUtil.parseToMap(body),
1013
2771
  });
1014
2772
  let params = new $OpenApiUtil.Params({
1015
- action: "PutWorkspace",
2773
+ action: "UpdatePrometheusView",
1016
2774
  version: "2024-03-30",
1017
2775
  protocol: "HTTPS",
1018
- pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
1019
- method: "POST",
2776
+ pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
2777
+ method: "PUT",
1020
2778
  authType: "AK",
1021
2779
  style: "ROA",
1022
2780
  reqBodyType: "json",
1023
2781
  bodyType: "json",
1024
2782
  });
1025
- return $dara.cast<$_model.PutWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.PutWorkspaceResponse({}));
2783
+ return $dara.cast<$_model.UpdatePrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusViewResponse({}));
1026
2784
  }
1027
2785
 
1028
2786
  /**
1029
- * 创建工作空间
2787
+ * 更新Prom视图实例信息
1030
2788
  *
1031
- * @param request - PutWorkspaceRequest
1032
- * @returns PutWorkspaceResponse
2789
+ * @param request - UpdatePrometheusViewRequest
2790
+ * @returns UpdatePrometheusViewResponse
1033
2791
  */
1034
- async putWorkspace(workspaceName: string, request: $_model.PutWorkspaceRequest): Promise<$_model.PutWorkspaceResponse> {
2792
+ async updatePrometheusView(prometheusViewId: string, request: $_model.UpdatePrometheusViewRequest): Promise<$_model.UpdatePrometheusViewResponse> {
1035
2793
  let runtime = new $dara.RuntimeOptions({ });
1036
2794
  let headers : {[key: string ]: string} = { };
1037
- return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
2795
+ return await this.updatePrometheusViewWithOptions(prometheusViewId, request, headers, runtime);
1038
2796
  }
1039
2797
 
1040
2798
  /**