@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.
- package/dist/client.d.ts +522 -0
- package/dist/client.js +1709 -150
- package/dist/client.js.map +1 -1
- package/dist/models/AlertRuleCondition.d.ts +2 -0
- package/dist/models/AlertRuleCondition.js +4 -0
- package/dist/models/AlertRuleCondition.js.map +1 -1
- package/dist/models/AlertRuleQuery.d.ts +1 -0
- package/dist/models/AlertRuleQuery.js +5 -0
- package/dist/models/AlertRuleQuery.js.map +1 -1
- package/dist/models/CreateAddonReleaseRequest.d.ts +66 -0
- package/dist/models/CreateAddonReleaseRequest.js +80 -0
- package/dist/models/CreateAddonReleaseRequest.js.map +1 -0
- package/dist/models/CreateAddonReleaseResponse.d.ts +19 -0
- package/dist/models/CreateAddonReleaseResponse.js +69 -0
- package/dist/models/CreateAddonReleaseResponse.js.map +1 -0
- package/dist/models/CreateAddonReleaseResponseBody.d.ts +186 -0
- package/dist/models/CreateAddonReleaseResponseBody.js +164 -0
- package/dist/models/CreateAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/CreateAggTaskGroupRequest.d.ts +131 -0
- package/dist/models/CreateAggTaskGroupRequest.js +114 -0
- package/dist/models/CreateAggTaskGroupRequest.js.map +1 -0
- package/dist/models/CreateAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/CreateAggTaskGroupResponse.js +69 -0
- package/dist/models/CreateAggTaskGroupResponse.js.map +1 -0
- package/dist/models/CreateAggTaskGroupResponseBody.d.ts +43 -0
- package/dist/models/CreateAggTaskGroupResponseBody.js +68 -0
- package/dist/models/CreateAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/CreateIntegrationPolicyRequest.d.ts +92 -0
- package/dist/models/CreateIntegrationPolicyRequest.js +120 -0
- package/dist/models/CreateIntegrationPolicyRequest.js.map +1 -0
- package/dist/models/CreateIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/CreateIntegrationPolicyResponse.js +69 -0
- package/dist/models/CreateIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/CreateIntegrationPolicyResponseBody.d.ts +67 -0
- package/dist/models/CreateIntegrationPolicyResponseBody.js +96 -0
- package/dist/models/CreateIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/CreatePrometheusViewRequest.d.ts +114 -0
- package/dist/models/CreatePrometheusViewRequest.js +126 -0
- package/dist/models/CreatePrometheusViewRequest.js.map +1 -0
- package/dist/models/CreatePrometheusViewResponse.d.ts +19 -0
- package/dist/models/CreatePrometheusViewResponse.js +69 -0
- package/dist/models/CreatePrometheusViewResponse.js.map +1 -0
- package/dist/models/CreatePrometheusViewResponseBody.d.ts +26 -0
- package/dist/models/CreatePrometheusViewResponseBody.js +60 -0
- package/dist/models/CreatePrometheusViewResponseBody.js.map +1 -0
- package/dist/models/CreatePrometheusVirtualInstanceRequest.d.ts +21 -0
- package/dist/models/CreatePrometheusVirtualInstanceRequest.js +58 -0
- package/dist/models/CreatePrometheusVirtualInstanceRequest.js.map +1 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponse.d.ts +19 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponse.js +69 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponse.js.map +1 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponseBody.d.ts +64 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponseBody.js +92 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponseBody.js.map +1 -0
- package/dist/models/DeleteAddonReleaseRequest.d.ts +28 -0
- package/dist/models/DeleteAddonReleaseRequest.js +62 -0
- package/dist/models/DeleteAddonReleaseRequest.js.map +1 -0
- package/dist/models/DeleteAddonReleaseResponse.d.ts +19 -0
- package/dist/models/DeleteAddonReleaseResponse.js +69 -0
- package/dist/models/DeleteAddonReleaseResponse.js.map +1 -0
- package/dist/models/DeleteAddonReleaseResponseBody.d.ts +18 -0
- package/dist/models/DeleteAddonReleaseResponseBody.js +58 -0
- package/dist/models/DeleteAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/DeleteAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/DeleteAggTaskGroupResponse.js +69 -0
- package/dist/models/DeleteAggTaskGroupResponse.js.map +1 -0
- package/dist/models/DeleteAggTaskGroupResponseBody.d.ts +18 -0
- package/dist/models/DeleteAggTaskGroupResponseBody.js +58 -0
- package/dist/models/DeleteAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/DeleteIntegrationPolicyRequest.d.ts +18 -0
- package/dist/models/DeleteIntegrationPolicyRequest.js +58 -0
- package/dist/models/DeleteIntegrationPolicyRequest.js.map +1 -0
- package/dist/models/DeleteIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/DeleteIntegrationPolicyResponse.js +69 -0
- package/dist/models/DeleteIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/DeleteIntegrationPolicyResponseBody.d.ts +21 -0
- package/dist/models/DeleteIntegrationPolicyResponseBody.js +58 -0
- package/dist/models/DeleteIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/DeletePrometheusInstanceResponse.d.ts +19 -0
- package/dist/models/DeletePrometheusInstanceResponse.js +69 -0
- package/dist/models/DeletePrometheusInstanceResponse.js.map +1 -0
- package/dist/models/DeletePrometheusInstanceResponseBody.d.ts +21 -0
- package/dist/models/DeletePrometheusInstanceResponseBody.js +58 -0
- package/dist/models/DeletePrometheusInstanceResponseBody.js.map +1 -0
- package/dist/models/DeletePrometheusViewResponse.d.ts +19 -0
- package/dist/models/DeletePrometheusViewResponse.js +69 -0
- package/dist/models/DeletePrometheusViewResponse.js.map +1 -0
- package/dist/models/DeletePrometheusViewResponseBody.d.ts +21 -0
- package/dist/models/DeletePrometheusViewResponseBody.js +58 -0
- package/dist/models/DeletePrometheusViewResponseBody.js.map +1 -0
- package/dist/models/GetAddonReleaseResponse.d.ts +19 -0
- package/dist/models/GetAddonReleaseResponse.js +69 -0
- package/dist/models/GetAddonReleaseResponse.js.map +1 -0
- package/dist/models/GetAddonReleaseResponseBody.d.ts +194 -0
- package/dist/models/GetAddonReleaseResponseBody.js +166 -0
- package/dist/models/GetAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/GetAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/GetAggTaskGroupResponse.js +69 -0
- package/dist/models/GetAggTaskGroupResponse.js.map +1 -0
- package/dist/models/GetAggTaskGroupResponseBody.d.ts +165 -0
- package/dist/models/GetAggTaskGroupResponseBody.js +148 -0
- package/dist/models/GetAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/GetEntityStoreDataResponseBody.d.ts +34 -0
- package/dist/models/GetEntityStoreDataResponseBody.js +61 -1
- package/dist/models/GetEntityStoreDataResponseBody.js.map +1 -1
- package/dist/models/GetIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/GetIntegrationPolicyResponse.js +69 -0
- package/dist/models/GetIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/GetIntegrationPolicyResponseBody.d.ts +336 -0
- package/dist/models/GetIntegrationPolicyResponseBody.js +401 -0
- package/dist/models/GetIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/GetPrometheusInstanceRequest.d.ts +23 -0
- package/dist/models/GetPrometheusInstanceRequest.js +60 -0
- package/dist/models/GetPrometheusInstanceRequest.js.map +1 -0
- package/dist/models/GetPrometheusInstanceResponse.d.ts +19 -0
- package/dist/models/GetPrometheusInstanceResponse.js +69 -0
- package/dist/models/GetPrometheusInstanceResponse.js.map +1 -0
- package/dist/models/GetPrometheusInstanceResponseBody.d.ts +230 -0
- package/dist/models/GetPrometheusInstanceResponseBody.js +184 -0
- package/dist/models/GetPrometheusInstanceResponseBody.js.map +1 -0
- package/dist/models/GetPrometheusViewRequest.d.ts +23 -0
- package/dist/models/GetPrometheusViewRequest.js +60 -0
- package/dist/models/GetPrometheusViewRequest.js.map +1 -0
- package/dist/models/GetPrometheusViewResponse.d.ts +19 -0
- package/dist/models/GetPrometheusViewResponse.js +69 -0
- package/dist/models/GetPrometheusViewResponse.js.map +1 -0
- package/dist/models/GetPrometheusViewResponseBody.d.ts +206 -0
- package/dist/models/GetPrometheusViewResponseBody.js +187 -0
- package/dist/models/GetPrometheusViewResponseBody.js.map +1 -0
- package/dist/models/ListAddonReleasesRequest.d.ts +23 -0
- package/dist/models/ListAddonReleasesRequest.js +60 -0
- package/dist/models/ListAddonReleasesRequest.js.map +1 -0
- package/dist/models/ListAddonReleasesResponse.d.ts +19 -0
- package/dist/models/ListAddonReleasesResponse.js +69 -0
- package/dist/models/ListAddonReleasesResponse.js.map +1 -0
- package/dist/models/ListAddonReleasesResponseBody.d.ts +211 -0
- package/dist/models/ListAddonReleasesResponseBody.js +196 -0
- package/dist/models/ListAddonReleasesResponseBody.js.map +1 -0
- package/dist/models/ListAggTaskGroupsRequest.d.ts +71 -0
- package/dist/models/ListAggTaskGroupsRequest.js +96 -0
- package/dist/models/ListAggTaskGroupsRequest.js.map +1 -0
- package/dist/models/ListAggTaskGroupsResponse.d.ts +19 -0
- package/dist/models/ListAggTaskGroupsResponse.js +69 -0
- package/dist/models/ListAggTaskGroupsResponse.js.map +1 -0
- package/dist/models/ListAggTaskGroupsResponseBody.d.ts +159 -0
- package/dist/models/ListAggTaskGroupsResponseBody.js +148 -0
- package/dist/models/ListAggTaskGroupsResponseBody.js.map +1 -0
- package/dist/models/ListAggTaskGroupsShrinkRequest.d.ts +49 -0
- package/dist/models/ListAggTaskGroupsShrinkRequest.js +72 -0
- package/dist/models/ListAggTaskGroupsShrinkRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.d.ts +24 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.d.ts +139 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.js +143 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.js.map +1 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsRequest.d.ts +28 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.d.ts +123 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.js +134 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.js.map +1 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.d.ts +24 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.d.ts +196 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.js +215 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusDashboardsRequest.d.ts +23 -0
- package/dist/models/ListPrometheusDashboardsRequest.js +60 -0
- package/dist/models/ListPrometheusDashboardsRequest.js.map +1 -0
- package/dist/models/ListPrometheusDashboardsResponse.d.ts +19 -0
- package/dist/models/ListPrometheusDashboardsResponse.js +69 -0
- package/dist/models/ListPrometheusDashboardsResponse.js.map +1 -0
- package/dist/models/ListPrometheusDashboardsResponseBody.d.ts +65 -0
- package/dist/models/ListPrometheusDashboardsResponseBody.js +97 -0
- package/dist/models/ListPrometheusDashboardsResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusInstancesRequest.d.ts +97 -0
- package/dist/models/ListPrometheusInstancesRequest.js +98 -0
- package/dist/models/ListPrometheusInstancesRequest.js.map +1 -0
- package/dist/models/ListPrometheusInstancesResponse.d.ts +19 -0
- package/dist/models/ListPrometheusInstancesResponse.js +69 -0
- package/dist/models/ListPrometheusInstancesResponse.js.map +1 -0
- package/dist/models/ListPrometheusInstancesResponseBody.d.ts +146 -0
- package/dist/models/ListPrometheusInstancesResponseBody.js +145 -0
- package/dist/models/ListPrometheusInstancesResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusInstancesShrinkRequest.d.ts +75 -0
- package/dist/models/ListPrometheusInstancesShrinkRequest.js +74 -0
- package/dist/models/ListPrometheusInstancesShrinkRequest.js.map +1 -0
- package/dist/models/ListPrometheusViewsRequest.d.ts +87 -0
- package/dist/models/ListPrometheusViewsRequest.js +100 -0
- package/dist/models/ListPrometheusViewsRequest.js.map +1 -0
- package/dist/models/ListPrometheusViewsResponse.d.ts +19 -0
- package/dist/models/ListPrometheusViewsResponse.js +69 -0
- package/dist/models/ListPrometheusViewsResponse.js.map +1 -0
- package/dist/models/ListPrometheusViewsResponseBody.d.ts +145 -0
- package/dist/models/ListPrometheusViewsResponseBody.js +140 -0
- package/dist/models/ListPrometheusViewsResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusViewsShrinkRequest.d.ts +65 -0
- package/dist/models/ListPrometheusViewsShrinkRequest.js +76 -0
- package/dist/models/ListPrometheusViewsShrinkRequest.js.map +1 -0
- package/dist/models/ListPrometheusVirtualInstancesRequest.d.ts +18 -0
- package/dist/models/ListPrometheusVirtualInstancesRequest.js +58 -0
- package/dist/models/ListPrometheusVirtualInstancesRequest.js.map +1 -0
- package/dist/models/ListPrometheusVirtualInstancesResponse.d.ts +19 -0
- package/dist/models/ListPrometheusVirtualInstancesResponse.js +69 -0
- package/dist/models/ListPrometheusVirtualInstancesResponse.js.map +1 -0
- package/dist/models/ListPrometheusVirtualInstancesResponseBody.d.ts +64 -0
- package/dist/models/ListPrometheusVirtualInstancesResponseBody.js +92 -0
- package/dist/models/ListPrometheusVirtualInstancesResponseBody.js.map +1 -0
- package/dist/models/UpdateAddonReleaseRequest.d.ts +30 -0
- package/dist/models/UpdateAddonReleaseRequest.js +68 -0
- package/dist/models/UpdateAddonReleaseRequest.js.map +1 -0
- package/dist/models/UpdateAddonReleaseResponse.d.ts +19 -0
- package/dist/models/UpdateAddonReleaseResponse.js +69 -0
- package/dist/models/UpdateAddonReleaseResponse.js.map +1 -0
- package/dist/models/UpdateAddonReleaseResponseBody.d.ts +18 -0
- package/dist/models/UpdateAddonReleaseResponseBody.js +58 -0
- package/dist/models/UpdateAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupRequest.d.ts +123 -0
- package/dist/models/UpdateAggTaskGroupRequest.js +112 -0
- package/dist/models/UpdateAggTaskGroupRequest.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/UpdateAggTaskGroupResponse.js +69 -0
- package/dist/models/UpdateAggTaskGroupResponse.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupResponseBody.d.ts +43 -0
- package/dist/models/UpdateAggTaskGroupResponseBody.js +68 -0
- package/dist/models/UpdateAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupStatusRequest.d.ts +21 -0
- package/dist/models/UpdateAggTaskGroupStatusRequest.js +58 -0
- package/dist/models/UpdateAggTaskGroupStatusRequest.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupStatusResponse.d.ts +19 -0
- package/dist/models/UpdateAggTaskGroupStatusResponse.js +69 -0
- package/dist/models/UpdateAggTaskGroupStatusResponse.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupStatusResponseBody.d.ts +43 -0
- package/dist/models/UpdateAggTaskGroupStatusResponseBody.js +68 -0
- package/dist/models/UpdateAggTaskGroupStatusResponseBody.js.map +1 -0
- package/dist/models/UpdateIntegrationPolicyRequest.d.ts +51 -0
- package/dist/models/UpdateIntegrationPolicyRequest.js +88 -0
- package/dist/models/UpdateIntegrationPolicyRequest.js.map +1 -0
- package/dist/models/UpdateIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/UpdateIntegrationPolicyResponse.js +69 -0
- package/dist/models/UpdateIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/UpdateIntegrationPolicyResponseBody.d.ts +21 -0
- package/dist/models/UpdateIntegrationPolicyResponseBody.js +58 -0
- package/dist/models/UpdateIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/UpdatePrometheusInstanceRequest.d.ts +71 -0
- package/dist/models/UpdatePrometheusInstanceRequest.js +78 -0
- package/dist/models/UpdatePrometheusInstanceRequest.js.map +1 -0
- package/dist/models/UpdatePrometheusInstanceResponse.d.ts +19 -0
- package/dist/models/UpdatePrometheusInstanceResponse.js +69 -0
- package/dist/models/UpdatePrometheusInstanceResponse.js.map +1 -0
- package/dist/models/UpdatePrometheusInstanceResponseBody.d.ts +26 -0
- package/dist/models/UpdatePrometheusInstanceResponseBody.js +60 -0
- package/dist/models/UpdatePrometheusInstanceResponseBody.js.map +1 -0
- package/dist/models/UpdatePrometheusViewRequest.d.ts +71 -0
- package/dist/models/UpdatePrometheusViewRequest.js +96 -0
- package/dist/models/UpdatePrometheusViewRequest.js.map +1 -0
- package/dist/models/UpdatePrometheusViewResponse.d.ts +19 -0
- package/dist/models/UpdatePrometheusViewResponse.js +69 -0
- package/dist/models/UpdatePrometheusViewResponse.js.map +1 -0
- package/dist/models/UpdatePrometheusViewResponseBody.d.ts +26 -0
- package/dist/models/UpdatePrometheusViewResponseBody.js +60 -0
- package/dist/models/UpdatePrometheusViewResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +143 -0
- package/dist/models/model.js +295 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2123 -365
- package/src/models/AlertRuleCondition.ts +6 -0
- package/src/models/AlertRuleQuery.ts +6 -0
- package/src/models/CreateAddonReleaseRequest.ts +100 -0
- package/src/models/CreateAddonReleaseResponse.ts +40 -0
- package/src/models/CreateAddonReleaseResponseBody.ts +286 -0
- package/src/models/CreateAggTaskGroupRequest.ts +191 -0
- package/src/models/CreateAggTaskGroupResponse.ts +40 -0
- package/src/models/CreateAggTaskGroupResponseBody.ts +66 -0
- package/src/models/CreateIntegrationPolicyRequest.ts +149 -0
- package/src/models/CreateIntegrationPolicyResponse.ts +40 -0
- package/src/models/CreateIntegrationPolicyResponseBody.ts +109 -0
- package/src/models/CreatePrometheusViewRequest.ts +177 -0
- package/src/models/CreatePrometheusViewResponse.ts +40 -0
- package/src/models/CreatePrometheusViewResponseBody.ts +41 -0
- package/src/models/CreatePrometheusVirtualInstanceRequest.ts +34 -0
- package/src/models/CreatePrometheusVirtualInstanceResponse.ts +40 -0
- package/src/models/CreatePrometheusVirtualInstanceResponseBody.ts +102 -0
- package/src/models/DeleteAddonReleaseRequest.ts +45 -0
- package/src/models/DeleteAddonReleaseResponse.ts +40 -0
- package/src/models/DeleteAddonReleaseResponseBody.ts +31 -0
- package/src/models/DeleteAggTaskGroupResponse.ts +40 -0
- package/src/models/DeleteAggTaskGroupResponseBody.ts +31 -0
- package/src/models/DeleteIntegrationPolicyRequest.ts +31 -0
- package/src/models/DeleteIntegrationPolicyResponse.ts +40 -0
- package/src/models/DeleteIntegrationPolicyResponseBody.ts +34 -0
- package/src/models/DeletePrometheusInstanceResponse.ts +40 -0
- package/src/models/DeletePrometheusInstanceResponseBody.ts +34 -0
- package/src/models/DeletePrometheusViewResponse.ts +40 -0
- package/src/models/DeletePrometheusViewResponseBody.ts +34 -0
- package/src/models/GetAddonReleaseResponse.ts +40 -0
- package/src/models/GetAddonReleaseResponseBody.ts +296 -0
- package/src/models/GetAggTaskGroupResponse.ts +40 -0
- package/src/models/GetAggTaskGroupResponseBody.ts +250 -0
- package/src/models/GetEntityStoreDataResponseBody.ts +76 -0
- package/src/models/GetIntegrationPolicyResponse.ts +40 -0
- package/src/models/GetIntegrationPolicyResponseBody.ts +593 -0
- package/src/models/GetPrometheusInstanceRequest.ts +38 -0
- package/src/models/GetPrometheusInstanceResponse.ts +40 -0
- package/src/models/GetPrometheusInstanceResponseBody.ts +349 -0
- package/src/models/GetPrometheusViewRequest.ts +38 -0
- package/src/models/GetPrometheusViewResponse.ts +40 -0
- package/src/models/GetPrometheusViewResponseBody.ts +321 -0
- package/src/models/ListAddonReleasesRequest.ts +38 -0
- package/src/models/ListAddonReleasesResponse.ts +40 -0
- package/src/models/ListAddonReleasesResponseBody.ts +334 -0
- package/src/models/ListAggTaskGroupsRequest.ts +113 -0
- package/src/models/ListAggTaskGroupsResponse.ts +40 -0
- package/src/models/ListAggTaskGroupsResponseBody.ts +244 -0
- package/src/models/ListAggTaskGroupsShrinkRequest.ts +76 -0
- package/src/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.ts +41 -0
- package/src/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.ts +219 -0
- package/src/models/ListIntegrationPolicyPodMonitorsRequest.ts +45 -0
- package/src/models/ListIntegrationPolicyPodMonitorsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyPodMonitorsResponseBody.ts +194 -0
- package/src/models/ListIntegrationPolicyStorageRequirementsRequest.ts +41 -0
- package/src/models/ListIntegrationPolicyStorageRequirementsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyStorageRequirementsResponseBody.ts +322 -0
- package/src/models/ListPrometheusDashboardsRequest.ts +38 -0
- package/src/models/ListPrometheusDashboardsResponse.ts +40 -0
- package/src/models/ListPrometheusDashboardsResponseBody.ts +108 -0
- package/src/models/ListPrometheusInstancesRequest.ts +141 -0
- package/src/models/ListPrometheusInstancesResponse.ts +40 -0
- package/src/models/ListPrometheusInstancesResponseBody.ts +228 -0
- package/src/models/ListPrometheusInstancesShrinkRequest.ts +104 -0
- package/src/models/ListPrometheusViewsRequest.ts +133 -0
- package/src/models/ListPrometheusViewsResponse.ts +40 -0
- package/src/models/ListPrometheusViewsResponseBody.ts +222 -0
- package/src/models/ListPrometheusViewsShrinkRequest.ts +96 -0
- package/src/models/ListPrometheusVirtualInstancesRequest.ts +31 -0
- package/src/models/ListPrometheusVirtualInstancesResponse.ts +40 -0
- package/src/models/ListPrometheusVirtualInstancesResponseBody.ts +102 -0
- package/src/models/UpdateAddonReleaseRequest.ts +52 -0
- package/src/models/UpdateAddonReleaseResponse.ts +40 -0
- package/src/models/UpdateAddonReleaseResponseBody.ts +31 -0
- package/src/models/UpdateAggTaskGroupRequest.ts +181 -0
- package/src/models/UpdateAggTaskGroupResponse.ts +40 -0
- package/src/models/UpdateAggTaskGroupResponseBody.ts +66 -0
- package/src/models/UpdateAggTaskGroupStatusRequest.ts +34 -0
- package/src/models/UpdateAggTaskGroupStatusResponse.ts +40 -0
- package/src/models/UpdateAggTaskGroupStatusResponseBody.ts +66 -0
- package/src/models/UpdateIntegrationPolicyRequest.ts +85 -0
- package/src/models/UpdateIntegrationPolicyResponse.ts +40 -0
- package/src/models/UpdateIntegrationPolicyResponseBody.ts +34 -0
- package/src/models/UpdatePrometheusInstanceRequest.ts +104 -0
- package/src/models/UpdatePrometheusInstanceResponse.ts +40 -0
- package/src/models/UpdatePrometheusInstanceResponseBody.ts +41 -0
- package/src/models/UpdatePrometheusViewRequest.ts +113 -0
- package/src/models/UpdatePrometheusViewResponse.ts +40 -0
- package/src/models/UpdatePrometheusViewResponseBody.ts +41 -0
- package/src/models/model.ts +143 -0
package/dist/client.js
CHANGED
|
@@ -61,6 +61,167 @@ class Client extends openapi_core_1.default {
|
|
|
61
61
|
}
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* 安装接入组件,代表进行一次接入
|
|
66
|
+
*
|
|
67
|
+
* @param request - CreateAddonReleaseRequest
|
|
68
|
+
* @param headers - map
|
|
69
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
70
|
+
* @returns CreateAddonReleaseResponse
|
|
71
|
+
*/
|
|
72
|
+
async createAddonReleaseWithOptions(policyId, request, headers, runtime) {
|
|
73
|
+
request.validate();
|
|
74
|
+
let body = {};
|
|
75
|
+
if (!$dara.isNull(request.addonName)) {
|
|
76
|
+
body["addonName"] = request.addonName;
|
|
77
|
+
}
|
|
78
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
79
|
+
body["aliyunLang"] = request.aliyunLang;
|
|
80
|
+
}
|
|
81
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
82
|
+
body["dryRun"] = request.dryRun;
|
|
83
|
+
}
|
|
84
|
+
if (!$dara.isNull(request.entityRules)) {
|
|
85
|
+
body["entityRules"] = request.entityRules;
|
|
86
|
+
}
|
|
87
|
+
if (!$dara.isNull(request.envType)) {
|
|
88
|
+
body["envType"] = request.envType;
|
|
89
|
+
}
|
|
90
|
+
if (!$dara.isNull(request.parentAddonReleaseId)) {
|
|
91
|
+
body["parentAddonReleaseId"] = request.parentAddonReleaseId;
|
|
92
|
+
}
|
|
93
|
+
if (!$dara.isNull(request.releaseName)) {
|
|
94
|
+
body["releaseName"] = request.releaseName;
|
|
95
|
+
}
|
|
96
|
+
if (!$dara.isNull(request.values)) {
|
|
97
|
+
body["values"] = request.values;
|
|
98
|
+
}
|
|
99
|
+
if (!$dara.isNull(request.version)) {
|
|
100
|
+
body["version"] = request.version;
|
|
101
|
+
}
|
|
102
|
+
if (!$dara.isNull(request.workspace)) {
|
|
103
|
+
body["workspace"] = request.workspace;
|
|
104
|
+
}
|
|
105
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
106
|
+
headers: headers,
|
|
107
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
108
|
+
});
|
|
109
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
110
|
+
action: "CreateAddonRelease",
|
|
111
|
+
version: "2024-03-30",
|
|
112
|
+
protocol: "HTTPS",
|
|
113
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
|
|
114
|
+
method: "POST",
|
|
115
|
+
authType: "AK",
|
|
116
|
+
style: "ROA",
|
|
117
|
+
reqBodyType: "json",
|
|
118
|
+
bodyType: "json",
|
|
119
|
+
});
|
|
120
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAddonReleaseResponse({}));
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* 安装接入组件,代表进行一次接入
|
|
124
|
+
*
|
|
125
|
+
* @param request - CreateAddonReleaseRequest
|
|
126
|
+
* @returns CreateAddonReleaseResponse
|
|
127
|
+
*/
|
|
128
|
+
async createAddonRelease(policyId, request) {
|
|
129
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
130
|
+
let headers = {};
|
|
131
|
+
return await this.createAddonReleaseWithOptions(policyId, request, headers, runtime);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 创建聚合任务组
|
|
135
|
+
*
|
|
136
|
+
* @param request - CreateAggTaskGroupRequest
|
|
137
|
+
* @param headers - map
|
|
138
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
139
|
+
* @returns CreateAggTaskGroupResponse
|
|
140
|
+
*/
|
|
141
|
+
async createAggTaskGroupWithOptions(instanceId, request, headers, runtime) {
|
|
142
|
+
request.validate();
|
|
143
|
+
let query = {};
|
|
144
|
+
if (!$dara.isNull(request.overrideIfExists)) {
|
|
145
|
+
query["overrideIfExists"] = request.overrideIfExists;
|
|
146
|
+
}
|
|
147
|
+
let body = {};
|
|
148
|
+
if (!$dara.isNull(request.aggTaskGroupConfig)) {
|
|
149
|
+
body["aggTaskGroupConfig"] = request.aggTaskGroupConfig;
|
|
150
|
+
}
|
|
151
|
+
if (!$dara.isNull(request.aggTaskGroupConfigType)) {
|
|
152
|
+
body["aggTaskGroupConfigType"] = request.aggTaskGroupConfigType;
|
|
153
|
+
}
|
|
154
|
+
if (!$dara.isNull(request.aggTaskGroupName)) {
|
|
155
|
+
body["aggTaskGroupName"] = request.aggTaskGroupName;
|
|
156
|
+
}
|
|
157
|
+
if (!$dara.isNull(request.cronExpr)) {
|
|
158
|
+
body["cronExpr"] = request.cronExpr;
|
|
159
|
+
}
|
|
160
|
+
if (!$dara.isNull(request.delay)) {
|
|
161
|
+
body["delay"] = request.delay;
|
|
162
|
+
}
|
|
163
|
+
if (!$dara.isNull(request.description)) {
|
|
164
|
+
body["description"] = request.description;
|
|
165
|
+
}
|
|
166
|
+
if (!$dara.isNull(request.fromTime)) {
|
|
167
|
+
body["fromTime"] = request.fromTime;
|
|
168
|
+
}
|
|
169
|
+
if (!$dara.isNull(request.maxRetries)) {
|
|
170
|
+
body["maxRetries"] = request.maxRetries;
|
|
171
|
+
}
|
|
172
|
+
if (!$dara.isNull(request.maxRunTimeInSeconds)) {
|
|
173
|
+
body["maxRunTimeInSeconds"] = request.maxRunTimeInSeconds;
|
|
174
|
+
}
|
|
175
|
+
if (!$dara.isNull(request.precheckString)) {
|
|
176
|
+
body["precheckString"] = request.precheckString;
|
|
177
|
+
}
|
|
178
|
+
if (!$dara.isNull(request.scheduleMode)) {
|
|
179
|
+
body["scheduleMode"] = request.scheduleMode;
|
|
180
|
+
}
|
|
181
|
+
if (!$dara.isNull(request.scheduleTimeExpr)) {
|
|
182
|
+
body["scheduleTimeExpr"] = request.scheduleTimeExpr;
|
|
183
|
+
}
|
|
184
|
+
if (!$dara.isNull(request.status)) {
|
|
185
|
+
body["status"] = request.status;
|
|
186
|
+
}
|
|
187
|
+
if (!$dara.isNull(request.tags)) {
|
|
188
|
+
body["tags"] = request.tags;
|
|
189
|
+
}
|
|
190
|
+
if (!$dara.isNull(request.targetPrometheusId)) {
|
|
191
|
+
body["targetPrometheusId"] = request.targetPrometheusId;
|
|
192
|
+
}
|
|
193
|
+
if (!$dara.isNull(request.toTime)) {
|
|
194
|
+
body["toTime"] = request.toTime;
|
|
195
|
+
}
|
|
196
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
197
|
+
headers: headers,
|
|
198
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
199
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
200
|
+
});
|
|
201
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
202
|
+
action: "CreateAggTaskGroup",
|
|
203
|
+
version: "2024-03-30",
|
|
204
|
+
protocol: "HTTPS",
|
|
205
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups`,
|
|
206
|
+
method: "POST",
|
|
207
|
+
authType: "AK",
|
|
208
|
+
style: "ROA",
|
|
209
|
+
reqBodyType: "json",
|
|
210
|
+
bodyType: "json",
|
|
211
|
+
});
|
|
212
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAggTaskGroupResponse({}));
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* 创建聚合任务组
|
|
216
|
+
*
|
|
217
|
+
* @param request - CreateAggTaskGroupRequest
|
|
218
|
+
* @returns CreateAggTaskGroupResponse
|
|
219
|
+
*/
|
|
220
|
+
async createAggTaskGroup(instanceId, request) {
|
|
221
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
222
|
+
let headers = {};
|
|
223
|
+
return await this.createAggTaskGroupWithOptions(instanceId, request, headers, runtime);
|
|
224
|
+
}
|
|
64
225
|
/**
|
|
65
226
|
* 创建EntityStore相关存储
|
|
66
227
|
*
|
|
@@ -94,6 +255,63 @@ class Client extends openapi_core_1.default {
|
|
|
94
255
|
let headers = {};
|
|
95
256
|
return await this.createEntityStoreWithOptions(workspaceName, headers, runtime);
|
|
96
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* 创建接入中心策略
|
|
260
|
+
*
|
|
261
|
+
* @param request - CreateIntegrationPolicyRequest
|
|
262
|
+
* @param headers - map
|
|
263
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
264
|
+
* @returns CreateIntegrationPolicyResponse
|
|
265
|
+
*/
|
|
266
|
+
async createIntegrationPolicyWithOptions(request, headers, runtime) {
|
|
267
|
+
request.validate();
|
|
268
|
+
let body = {};
|
|
269
|
+
if (!$dara.isNull(request.entityGroup)) {
|
|
270
|
+
body["entityGroup"] = request.entityGroup;
|
|
271
|
+
}
|
|
272
|
+
if (!$dara.isNull(request.policyName)) {
|
|
273
|
+
body["policyName"] = request.policyName;
|
|
274
|
+
}
|
|
275
|
+
if (!$dara.isNull(request.policyType)) {
|
|
276
|
+
body["policyType"] = request.policyType;
|
|
277
|
+
}
|
|
278
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
279
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
280
|
+
}
|
|
281
|
+
if (!$dara.isNull(request.tags)) {
|
|
282
|
+
body["tags"] = request.tags;
|
|
283
|
+
}
|
|
284
|
+
if (!$dara.isNull(request.workspace)) {
|
|
285
|
+
body["workspace"] = request.workspace;
|
|
286
|
+
}
|
|
287
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
288
|
+
headers: headers,
|
|
289
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
290
|
+
});
|
|
291
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
292
|
+
action: "CreateIntegrationPolicy",
|
|
293
|
+
version: "2024-03-30",
|
|
294
|
+
protocol: "HTTPS",
|
|
295
|
+
pathname: `/integration-policies`,
|
|
296
|
+
method: "POST",
|
|
297
|
+
authType: "AK",
|
|
298
|
+
style: "ROA",
|
|
299
|
+
reqBodyType: "json",
|
|
300
|
+
bodyType: "json",
|
|
301
|
+
});
|
|
302
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIntegrationPolicyResponse({}));
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* 创建接入中心策略
|
|
306
|
+
*
|
|
307
|
+
* @param request - CreateIntegrationPolicyRequest
|
|
308
|
+
* @returns CreateIntegrationPolicyResponse
|
|
309
|
+
*/
|
|
310
|
+
async createIntegrationPolicy(request) {
|
|
311
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
312
|
+
let headers = {};
|
|
313
|
+
return await this.createIntegrationPolicyWithOptions(request, headers, runtime);
|
|
314
|
+
}
|
|
97
315
|
/**
|
|
98
316
|
* 创建Prometheus监控实例
|
|
99
317
|
*
|
|
@@ -169,6 +387,117 @@ class Client extends openapi_core_1.default {
|
|
|
169
387
|
let headers = {};
|
|
170
388
|
return await this.createPrometheusInstanceWithOptions(request, headers, runtime);
|
|
171
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* 创建prometheus视图
|
|
392
|
+
*
|
|
393
|
+
* @param request - CreatePrometheusViewRequest
|
|
394
|
+
* @param headers - map
|
|
395
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
396
|
+
* @returns CreatePrometheusViewResponse
|
|
397
|
+
*/
|
|
398
|
+
async createPrometheusViewWithOptions(request, headers, runtime) {
|
|
399
|
+
request.validate();
|
|
400
|
+
let body = {};
|
|
401
|
+
if (!$dara.isNull(request.authFreeReadPolicy)) {
|
|
402
|
+
body["authFreeReadPolicy"] = request.authFreeReadPolicy;
|
|
403
|
+
}
|
|
404
|
+
if (!$dara.isNull(request.enableAuthFreeRead)) {
|
|
405
|
+
body["enableAuthFreeRead"] = request.enableAuthFreeRead;
|
|
406
|
+
}
|
|
407
|
+
if (!$dara.isNull(request.enableAuthToken)) {
|
|
408
|
+
body["enableAuthToken"] = request.enableAuthToken;
|
|
409
|
+
}
|
|
410
|
+
if (!$dara.isNull(request.prometheusInstances)) {
|
|
411
|
+
body["prometheusInstances"] = request.prometheusInstances;
|
|
412
|
+
}
|
|
413
|
+
if (!$dara.isNull(request.prometheusViewName)) {
|
|
414
|
+
body["prometheusViewName"] = request.prometheusViewName;
|
|
415
|
+
}
|
|
416
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
417
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
418
|
+
}
|
|
419
|
+
if (!$dara.isNull(request.status)) {
|
|
420
|
+
body["status"] = request.status;
|
|
421
|
+
}
|
|
422
|
+
if (!$dara.isNull(request.tags)) {
|
|
423
|
+
body["tags"] = request.tags;
|
|
424
|
+
}
|
|
425
|
+
if (!$dara.isNull(request.version)) {
|
|
426
|
+
body["version"] = request.version;
|
|
427
|
+
}
|
|
428
|
+
if (!$dara.isNull(request.workspace)) {
|
|
429
|
+
body["workspace"] = request.workspace;
|
|
430
|
+
}
|
|
431
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
432
|
+
headers: headers,
|
|
433
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
434
|
+
});
|
|
435
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
436
|
+
action: "CreatePrometheusView",
|
|
437
|
+
version: "2024-03-30",
|
|
438
|
+
protocol: "HTTPS",
|
|
439
|
+
pathname: `/prometheus-views`,
|
|
440
|
+
method: "POST",
|
|
441
|
+
authType: "AK",
|
|
442
|
+
style: "ROA",
|
|
443
|
+
reqBodyType: "json",
|
|
444
|
+
bodyType: "json",
|
|
445
|
+
});
|
|
446
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePrometheusViewResponse({}));
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* 创建prometheus视图
|
|
450
|
+
*
|
|
451
|
+
* @param request - CreatePrometheusViewRequest
|
|
452
|
+
* @returns CreatePrometheusViewResponse
|
|
453
|
+
*/
|
|
454
|
+
async createPrometheusView(request) {
|
|
455
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
456
|
+
let headers = {};
|
|
457
|
+
return await this.createPrometheusViewWithOptions(request, headers, runtime);
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* 创建Prometheus监控实例
|
|
461
|
+
*
|
|
462
|
+
* @param request - CreatePrometheusVirtualInstanceRequest
|
|
463
|
+
* @param headers - map
|
|
464
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
465
|
+
* @returns CreatePrometheusVirtualInstanceResponse
|
|
466
|
+
*/
|
|
467
|
+
async createPrometheusVirtualInstanceWithOptions(request, headers, runtime) {
|
|
468
|
+
request.validate();
|
|
469
|
+
let body = {};
|
|
470
|
+
if (!$dara.isNull(request.namespace)) {
|
|
471
|
+
body["namespace"] = request.namespace;
|
|
472
|
+
}
|
|
473
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
474
|
+
headers: headers,
|
|
475
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
476
|
+
});
|
|
477
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
478
|
+
action: "CreatePrometheusVirtualInstance",
|
|
479
|
+
version: "2024-03-30",
|
|
480
|
+
protocol: "HTTPS",
|
|
481
|
+
pathname: `/virtual-instances`,
|
|
482
|
+
method: "POST",
|
|
483
|
+
authType: "AK",
|
|
484
|
+
style: "ROA",
|
|
485
|
+
reqBodyType: "json",
|
|
486
|
+
bodyType: "json",
|
|
487
|
+
});
|
|
488
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePrometheusVirtualInstanceResponse({}));
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* 创建Prometheus监控实例
|
|
492
|
+
*
|
|
493
|
+
* @param request - CreatePrometheusVirtualInstanceRequest
|
|
494
|
+
* @returns CreatePrometheusVirtualInstanceResponse
|
|
495
|
+
*/
|
|
496
|
+
async createPrometheusVirtualInstance(request) {
|
|
497
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
498
|
+
let headers = {};
|
|
499
|
+
return await this.createPrometheusVirtualInstanceWithOptions(request, headers, runtime);
|
|
500
|
+
}
|
|
172
501
|
/**
|
|
173
502
|
* 创建Service
|
|
174
503
|
*
|
|
@@ -317,108 +646,297 @@ class Client extends openapi_core_1.default {
|
|
|
317
646
|
return await this.createUmodelWithOptions(workspace, request, headers, runtime);
|
|
318
647
|
}
|
|
319
648
|
/**
|
|
320
|
-
* 删除
|
|
649
|
+
* 删除addon release信息
|
|
321
650
|
*
|
|
651
|
+
* @param request - DeleteAddonReleaseRequest
|
|
322
652
|
* @param headers - map
|
|
323
653
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
324
|
-
* @returns
|
|
654
|
+
* @returns DeleteAddonReleaseResponse
|
|
325
655
|
*/
|
|
326
|
-
async
|
|
656
|
+
async deleteAddonReleaseWithOptions(policyId, request, headers, runtime) {
|
|
657
|
+
request.validate();
|
|
658
|
+
let query = {};
|
|
659
|
+
if (!$dara.isNull(request.addonName)) {
|
|
660
|
+
query["addonName"] = request.addonName;
|
|
661
|
+
}
|
|
662
|
+
if (!$dara.isNull(request.force)) {
|
|
663
|
+
query["force"] = request.force;
|
|
664
|
+
}
|
|
665
|
+
if (!$dara.isNull(request.releaseName)) {
|
|
666
|
+
query["releaseName"] = request.releaseName;
|
|
667
|
+
}
|
|
327
668
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
328
669
|
headers: headers,
|
|
670
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
329
671
|
});
|
|
330
672
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
331
|
-
action: "
|
|
673
|
+
action: "DeleteAddonRelease",
|
|
332
674
|
version: "2024-03-30",
|
|
333
675
|
protocol: "HTTPS",
|
|
334
|
-
pathname: `/
|
|
676
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
|
|
335
677
|
method: "DELETE",
|
|
336
678
|
authType: "AK",
|
|
337
679
|
style: "ROA",
|
|
338
680
|
reqBodyType: "json",
|
|
339
681
|
bodyType: "json",
|
|
340
682
|
});
|
|
341
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
683
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAddonReleaseResponse({}));
|
|
342
684
|
}
|
|
343
685
|
/**
|
|
344
|
-
* 删除
|
|
345
|
-
*
|
|
686
|
+
* 删除addon release信息
|
|
687
|
+
*
|
|
688
|
+
* @param request - DeleteAddonReleaseRequest
|
|
689
|
+
* @returns DeleteAddonReleaseResponse
|
|
346
690
|
*/
|
|
347
|
-
async
|
|
691
|
+
async deleteAddonRelease(policyId, request) {
|
|
348
692
|
let runtime = new $dara.RuntimeOptions({});
|
|
349
693
|
let headers = {};
|
|
350
|
-
return await this.
|
|
694
|
+
return await this.deleteAddonReleaseWithOptions(policyId, request, headers, runtime);
|
|
351
695
|
}
|
|
352
696
|
/**
|
|
353
|
-
*
|
|
697
|
+
* 删除聚合任务组
|
|
354
698
|
*
|
|
355
699
|
* @param headers - map
|
|
356
700
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
357
|
-
* @returns
|
|
701
|
+
* @returns DeleteAggTaskGroupResponse
|
|
358
702
|
*/
|
|
359
|
-
async
|
|
703
|
+
async deleteAggTaskGroupWithOptions(instanceId, groupId, headers, runtime) {
|
|
360
704
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
361
705
|
headers: headers,
|
|
362
706
|
});
|
|
363
707
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
364
|
-
action: "
|
|
708
|
+
action: "DeleteAggTaskGroup",
|
|
365
709
|
version: "2024-03-30",
|
|
366
710
|
protocol: "HTTPS",
|
|
367
|
-
pathname: `/
|
|
711
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
|
|
368
712
|
method: "DELETE",
|
|
369
713
|
authType: "AK",
|
|
370
714
|
style: "ROA",
|
|
371
715
|
reqBodyType: "json",
|
|
372
716
|
bodyType: "json",
|
|
373
717
|
});
|
|
374
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
718
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAggTaskGroupResponse({}));
|
|
375
719
|
}
|
|
376
720
|
/**
|
|
377
|
-
*
|
|
378
|
-
* @returns
|
|
721
|
+
* 删除聚合任务组
|
|
722
|
+
* @returns DeleteAggTaskGroupResponse
|
|
379
723
|
*/
|
|
380
|
-
async
|
|
724
|
+
async deleteAggTaskGroup(instanceId, groupId) {
|
|
381
725
|
let runtime = new $dara.RuntimeOptions({});
|
|
382
726
|
let headers = {};
|
|
383
|
-
return await this.
|
|
727
|
+
return await this.deleteAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
384
728
|
}
|
|
385
729
|
/**
|
|
386
|
-
* 删除
|
|
730
|
+
* 删除EntityStore相关存储
|
|
387
731
|
*
|
|
388
732
|
* @param headers - map
|
|
389
733
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
390
|
-
* @returns
|
|
734
|
+
* @returns DeleteEntityStoreResponse
|
|
391
735
|
*/
|
|
392
|
-
async
|
|
736
|
+
async deleteEntityStoreWithOptions(workspaceName, headers, runtime) {
|
|
393
737
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
394
738
|
headers: headers,
|
|
395
739
|
});
|
|
396
740
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
397
|
-
action: "
|
|
741
|
+
action: "DeleteEntityStore",
|
|
398
742
|
version: "2024-03-30",
|
|
399
743
|
protocol: "HTTPS",
|
|
400
|
-
pathname: `/workspace/${$dara.URL.percentEncode(
|
|
744
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
|
|
401
745
|
method: "DELETE",
|
|
402
746
|
authType: "AK",
|
|
403
747
|
style: "ROA",
|
|
404
748
|
reqBodyType: "json",
|
|
405
749
|
bodyType: "json",
|
|
406
750
|
});
|
|
407
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
751
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteEntityStoreResponse({}));
|
|
408
752
|
}
|
|
409
753
|
/**
|
|
410
|
-
* 删除
|
|
411
|
-
* @returns
|
|
754
|
+
* 删除EntityStore相关存储
|
|
755
|
+
* @returns DeleteEntityStoreResponse
|
|
412
756
|
*/
|
|
413
|
-
async
|
|
757
|
+
async deleteEntityStore(workspaceName) {
|
|
414
758
|
let runtime = new $dara.RuntimeOptions({});
|
|
415
759
|
let headers = {};
|
|
416
|
-
return await this.
|
|
760
|
+
return await this.deleteEntityStoreWithOptions(workspaceName, headers, runtime);
|
|
417
761
|
}
|
|
418
762
|
/**
|
|
419
|
-
*
|
|
763
|
+
* 删除接入中心策略
|
|
420
764
|
*
|
|
421
|
-
* @param request -
|
|
765
|
+
* @param request - DeleteIntegrationPolicyRequest
|
|
766
|
+
* @param headers - map
|
|
767
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
768
|
+
* @returns DeleteIntegrationPolicyResponse
|
|
769
|
+
*/
|
|
770
|
+
async deleteIntegrationPolicyWithOptions(policyId, request, headers, runtime) {
|
|
771
|
+
request.validate();
|
|
772
|
+
let query = {};
|
|
773
|
+
if (!$dara.isNull(request.force)) {
|
|
774
|
+
query["force"] = request.force;
|
|
775
|
+
}
|
|
776
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
777
|
+
headers: headers,
|
|
778
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
779
|
+
});
|
|
780
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
781
|
+
action: "DeleteIntegrationPolicy",
|
|
782
|
+
version: "2024-03-30",
|
|
783
|
+
protocol: "HTTPS",
|
|
784
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}`,
|
|
785
|
+
method: "DELETE",
|
|
786
|
+
authType: "AK",
|
|
787
|
+
style: "ROA",
|
|
788
|
+
reqBodyType: "json",
|
|
789
|
+
bodyType: "json",
|
|
790
|
+
});
|
|
791
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIntegrationPolicyResponse({}));
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* 删除接入中心策略
|
|
795
|
+
*
|
|
796
|
+
* @param request - DeleteIntegrationPolicyRequest
|
|
797
|
+
* @returns DeleteIntegrationPolicyResponse
|
|
798
|
+
*/
|
|
799
|
+
async deleteIntegrationPolicy(policyId, request) {
|
|
800
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
801
|
+
let headers = {};
|
|
802
|
+
return await this.deleteIntegrationPolicyWithOptions(policyId, request, headers, runtime);
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* 删除prom实例
|
|
806
|
+
*
|
|
807
|
+
* @param headers - map
|
|
808
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
809
|
+
* @returns DeletePrometheusInstanceResponse
|
|
810
|
+
*/
|
|
811
|
+
async deletePrometheusInstanceWithOptions(prometheusInstanceId, headers, runtime) {
|
|
812
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
813
|
+
headers: headers,
|
|
814
|
+
});
|
|
815
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
816
|
+
action: "DeletePrometheusInstance",
|
|
817
|
+
version: "2024-03-30",
|
|
818
|
+
protocol: "HTTPS",
|
|
819
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
820
|
+
method: "DELETE",
|
|
821
|
+
authType: "AK",
|
|
822
|
+
style: "ROA",
|
|
823
|
+
reqBodyType: "json",
|
|
824
|
+
bodyType: "json",
|
|
825
|
+
});
|
|
826
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePrometheusInstanceResponse({}));
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* 删除prom实例
|
|
830
|
+
* @returns DeletePrometheusInstanceResponse
|
|
831
|
+
*/
|
|
832
|
+
async deletePrometheusInstance(prometheusInstanceId) {
|
|
833
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
834
|
+
let headers = {};
|
|
835
|
+
return await this.deletePrometheusInstanceWithOptions(prometheusInstanceId, headers, runtime);
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* 删除prometheus视图实例
|
|
839
|
+
*
|
|
840
|
+
* @param headers - map
|
|
841
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
842
|
+
* @returns DeletePrometheusViewResponse
|
|
843
|
+
*/
|
|
844
|
+
async deletePrometheusViewWithOptions(prometheusViewId, headers, runtime) {
|
|
845
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
846
|
+
headers: headers,
|
|
847
|
+
});
|
|
848
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
849
|
+
action: "DeletePrometheusView",
|
|
850
|
+
version: "2024-03-30",
|
|
851
|
+
protocol: "HTTPS",
|
|
852
|
+
pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
|
|
853
|
+
method: "DELETE",
|
|
854
|
+
authType: "AK",
|
|
855
|
+
style: "ROA",
|
|
856
|
+
reqBodyType: "json",
|
|
857
|
+
bodyType: "json",
|
|
858
|
+
});
|
|
859
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePrometheusViewResponse({}));
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* 删除prometheus视图实例
|
|
863
|
+
* @returns DeletePrometheusViewResponse
|
|
864
|
+
*/
|
|
865
|
+
async deletePrometheusView(prometheusViewId) {
|
|
866
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
867
|
+
let headers = {};
|
|
868
|
+
return await this.deletePrometheusViewWithOptions(prometheusViewId, headers, runtime);
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* 删除Service
|
|
872
|
+
*
|
|
873
|
+
* @param headers - map
|
|
874
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
875
|
+
* @returns DeleteServiceResponse
|
|
876
|
+
*/
|
|
877
|
+
async deleteServiceWithOptions(workspace, serviceId, headers, runtime) {
|
|
878
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
879
|
+
headers: headers,
|
|
880
|
+
});
|
|
881
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
882
|
+
action: "DeleteService",
|
|
883
|
+
version: "2024-03-30",
|
|
884
|
+
protocol: "HTTPS",
|
|
885
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
886
|
+
method: "DELETE",
|
|
887
|
+
authType: "AK",
|
|
888
|
+
style: "ROA",
|
|
889
|
+
reqBodyType: "json",
|
|
890
|
+
bodyType: "json",
|
|
891
|
+
});
|
|
892
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteServiceResponse({}));
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* 删除Service
|
|
896
|
+
* @returns DeleteServiceResponse
|
|
897
|
+
*/
|
|
898
|
+
async deleteService(workspace, serviceId) {
|
|
899
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
900
|
+
let headers = {};
|
|
901
|
+
return await this.deleteServiceWithOptions(workspace, serviceId, headers, runtime);
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* 删除Umodel配置信息
|
|
905
|
+
*
|
|
906
|
+
* @param headers - map
|
|
907
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
908
|
+
* @returns DeleteUmodelResponse
|
|
909
|
+
*/
|
|
910
|
+
async deleteUmodelWithOptions(workspace, headers, runtime) {
|
|
911
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
912
|
+
headers: headers,
|
|
913
|
+
});
|
|
914
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
915
|
+
action: "DeleteUmodel",
|
|
916
|
+
version: "2024-03-30",
|
|
917
|
+
protocol: "HTTPS",
|
|
918
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
|
|
919
|
+
method: "DELETE",
|
|
920
|
+
authType: "AK",
|
|
921
|
+
style: "ROA",
|
|
922
|
+
reqBodyType: "json",
|
|
923
|
+
bodyType: "json",
|
|
924
|
+
});
|
|
925
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteUmodelResponse({}));
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* 删除Umodel配置信息
|
|
929
|
+
* @returns DeleteUmodelResponse
|
|
930
|
+
*/
|
|
931
|
+
async deleteUmodel(workspace) {
|
|
932
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
933
|
+
let headers = {};
|
|
934
|
+
return await this.deleteUmodelWithOptions(workspace, headers, runtime);
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* 删除 Umodel Elements
|
|
938
|
+
*
|
|
939
|
+
* @param request - DeleteUmodelDataRequest
|
|
422
940
|
* @param headers - map
|
|
423
941
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
424
942
|
* @returns DeleteUmodelDataResponse
|
|
@@ -496,6 +1014,72 @@ class Client extends openapi_core_1.default {
|
|
|
496
1014
|
let headers = {};
|
|
497
1015
|
return await this.deleteWorkspaceWithOptions(workspaceName, headers, runtime);
|
|
498
1016
|
}
|
|
1017
|
+
/**
|
|
1018
|
+
* 查看addon release(查看接入状态)
|
|
1019
|
+
*
|
|
1020
|
+
* @param headers - map
|
|
1021
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1022
|
+
* @returns GetAddonReleaseResponse
|
|
1023
|
+
*/
|
|
1024
|
+
async getAddonReleaseWithOptions(releaseName, policyId, headers, runtime) {
|
|
1025
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1026
|
+
headers: headers,
|
|
1027
|
+
});
|
|
1028
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1029
|
+
action: "GetAddonRelease",
|
|
1030
|
+
version: "2024-03-30",
|
|
1031
|
+
protocol: "HTTPS",
|
|
1032
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases/${$dara.URL.percentEncode(releaseName)}`,
|
|
1033
|
+
method: "GET",
|
|
1034
|
+
authType: "AK",
|
|
1035
|
+
style: "ROA",
|
|
1036
|
+
reqBodyType: "json",
|
|
1037
|
+
bodyType: "json",
|
|
1038
|
+
});
|
|
1039
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAddonReleaseResponse({}));
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* 查看addon release(查看接入状态)
|
|
1043
|
+
* @returns GetAddonReleaseResponse
|
|
1044
|
+
*/
|
|
1045
|
+
async getAddonRelease(releaseName, policyId) {
|
|
1046
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1047
|
+
let headers = {};
|
|
1048
|
+
return await this.getAddonReleaseWithOptions(releaseName, policyId, headers, runtime);
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* 描述聚合任务组
|
|
1052
|
+
*
|
|
1053
|
+
* @param headers - map
|
|
1054
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1055
|
+
* @returns GetAggTaskGroupResponse
|
|
1056
|
+
*/
|
|
1057
|
+
async getAggTaskGroupWithOptions(instanceId, groupId, headers, runtime) {
|
|
1058
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1059
|
+
headers: headers,
|
|
1060
|
+
});
|
|
1061
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1062
|
+
action: "GetAggTaskGroup",
|
|
1063
|
+
version: "2024-03-30",
|
|
1064
|
+
protocol: "HTTPS",
|
|
1065
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
|
|
1066
|
+
method: "GET",
|
|
1067
|
+
authType: "AK",
|
|
1068
|
+
style: "ROA",
|
|
1069
|
+
reqBodyType: "json",
|
|
1070
|
+
bodyType: "json",
|
|
1071
|
+
});
|
|
1072
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAggTaskGroupResponse({}));
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* 描述聚合任务组
|
|
1076
|
+
* @returns GetAggTaskGroupResponse
|
|
1077
|
+
*/
|
|
1078
|
+
async getAggTaskGroup(instanceId, groupId) {
|
|
1079
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1080
|
+
let headers = {};
|
|
1081
|
+
return await this.getAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
1082
|
+
}
|
|
499
1083
|
/**
|
|
500
1084
|
* 获取EntityStore相关存储信息
|
|
501
1085
|
*
|
|
@@ -585,139 +1169,262 @@ class Client extends openapi_core_1.default {
|
|
|
585
1169
|
return await this.getEntityStoreDataWithOptions(workspace, request, headers, runtime);
|
|
586
1170
|
}
|
|
587
1171
|
/**
|
|
588
|
-
*
|
|
1172
|
+
* 查询接入中心策略列表信息
|
|
589
1173
|
*
|
|
590
1174
|
* @param headers - map
|
|
591
1175
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
592
|
-
* @returns
|
|
1176
|
+
* @returns GetIntegrationPolicyResponse
|
|
593
1177
|
*/
|
|
594
|
-
async
|
|
1178
|
+
async getIntegrationPolicyWithOptions(policyId, headers, runtime) {
|
|
595
1179
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
596
1180
|
headers: headers,
|
|
597
1181
|
});
|
|
598
1182
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
599
|
-
action: "
|
|
1183
|
+
action: "GetIntegrationPolicy",
|
|
600
1184
|
version: "2024-03-30",
|
|
601
1185
|
protocol: "HTTPS",
|
|
602
|
-
pathname: `/
|
|
1186
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}`,
|
|
603
1187
|
method: "GET",
|
|
604
1188
|
authType: "AK",
|
|
605
1189
|
style: "ROA",
|
|
606
1190
|
reqBodyType: "json",
|
|
607
1191
|
bodyType: "json",
|
|
608
1192
|
});
|
|
609
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1193
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIntegrationPolicyResponse({}));
|
|
610
1194
|
}
|
|
611
1195
|
/**
|
|
612
|
-
*
|
|
613
|
-
* @returns
|
|
1196
|
+
* 查询接入中心策略列表信息
|
|
1197
|
+
* @returns GetIntegrationPolicyResponse
|
|
614
1198
|
*/
|
|
615
|
-
async
|
|
1199
|
+
async getIntegrationPolicy(policyId) {
|
|
616
1200
|
let runtime = new $dara.RuntimeOptions({});
|
|
617
1201
|
let headers = {};
|
|
618
|
-
return await this.
|
|
1202
|
+
return await this.getIntegrationPolicyWithOptions(policyId, headers, runtime);
|
|
619
1203
|
}
|
|
620
1204
|
/**
|
|
621
|
-
*
|
|
1205
|
+
* 查询指定环境实例
|
|
622
1206
|
*
|
|
1207
|
+
* @param request - GetPrometheusInstanceRequest
|
|
623
1208
|
* @param headers - map
|
|
624
1209
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
625
|
-
* @returns
|
|
1210
|
+
* @returns GetPrometheusInstanceResponse
|
|
626
1211
|
*/
|
|
627
|
-
async
|
|
1212
|
+
async getPrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime) {
|
|
1213
|
+
request.validate();
|
|
1214
|
+
let query = {};
|
|
1215
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1216
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1217
|
+
}
|
|
1218
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1219
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1220
|
+
}
|
|
628
1221
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
629
1222
|
headers: headers,
|
|
1223
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
630
1224
|
});
|
|
631
1225
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
632
|
-
action: "
|
|
1226
|
+
action: "GetPrometheusInstance",
|
|
633
1227
|
version: "2024-03-30",
|
|
634
1228
|
protocol: "HTTPS",
|
|
635
|
-
pathname: `/
|
|
1229
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
636
1230
|
method: "GET",
|
|
637
1231
|
authType: "AK",
|
|
638
1232
|
style: "ROA",
|
|
639
1233
|
reqBodyType: "json",
|
|
640
1234
|
bodyType: "json",
|
|
641
1235
|
});
|
|
642
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1236
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPrometheusInstanceResponse({}));
|
|
643
1237
|
}
|
|
644
1238
|
/**
|
|
645
|
-
*
|
|
646
|
-
*
|
|
1239
|
+
* 查询指定环境实例
|
|
1240
|
+
*
|
|
1241
|
+
* @param request - GetPrometheusInstanceRequest
|
|
1242
|
+
* @returns GetPrometheusInstanceResponse
|
|
647
1243
|
*/
|
|
648
|
-
async
|
|
1244
|
+
async getPrometheusInstance(prometheusInstanceId, request) {
|
|
649
1245
|
let runtime = new $dara.RuntimeOptions({});
|
|
650
1246
|
let headers = {};
|
|
651
|
-
return await this.
|
|
1247
|
+
return await this.getPrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
652
1248
|
}
|
|
653
1249
|
/**
|
|
654
|
-
*
|
|
1250
|
+
* 查询指定Prometheus视图实例
|
|
655
1251
|
*
|
|
1252
|
+
* @param request - GetPrometheusViewRequest
|
|
656
1253
|
* @param headers - map
|
|
657
1254
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
658
|
-
* @returns
|
|
1255
|
+
* @returns GetPrometheusViewResponse
|
|
659
1256
|
*/
|
|
660
|
-
async
|
|
1257
|
+
async getPrometheusViewWithOptions(prometheusViewId, request, headers, runtime) {
|
|
1258
|
+
request.validate();
|
|
1259
|
+
let query = {};
|
|
1260
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1261
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1262
|
+
}
|
|
1263
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1264
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1265
|
+
}
|
|
661
1266
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
662
1267
|
headers: headers,
|
|
1268
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
663
1269
|
});
|
|
664
1270
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
665
|
-
action: "
|
|
1271
|
+
action: "GetPrometheusView",
|
|
666
1272
|
version: "2024-03-30",
|
|
667
1273
|
protocol: "HTTPS",
|
|
668
|
-
pathname: `/
|
|
1274
|
+
pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
|
|
669
1275
|
method: "GET",
|
|
670
1276
|
authType: "AK",
|
|
671
1277
|
style: "ROA",
|
|
672
1278
|
reqBodyType: "json",
|
|
673
1279
|
bodyType: "json",
|
|
674
1280
|
});
|
|
675
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1281
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPrometheusViewResponse({}));
|
|
676
1282
|
}
|
|
677
1283
|
/**
|
|
678
|
-
*
|
|
679
|
-
*
|
|
1284
|
+
* 查询指定Prometheus视图实例
|
|
1285
|
+
*
|
|
1286
|
+
* @param request - GetPrometheusViewRequest
|
|
1287
|
+
* @returns GetPrometheusViewResponse
|
|
680
1288
|
*/
|
|
681
|
-
async
|
|
1289
|
+
async getPrometheusView(prometheusViewId, request) {
|
|
682
1290
|
let runtime = new $dara.RuntimeOptions({});
|
|
683
1291
|
let headers = {};
|
|
684
|
-
return await this.
|
|
1292
|
+
return await this.getPrometheusViewWithOptions(prometheusViewId, request, headers, runtime);
|
|
685
1293
|
}
|
|
686
1294
|
/**
|
|
687
|
-
*
|
|
1295
|
+
* 查询 Service
|
|
688
1296
|
*
|
|
689
|
-
* @param request - GetUmodelDataRequest
|
|
690
1297
|
* @param headers - map
|
|
691
1298
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
692
|
-
* @returns
|
|
1299
|
+
* @returns GetServiceResponse
|
|
693
1300
|
*/
|
|
694
|
-
async
|
|
695
|
-
request.validate();
|
|
696
|
-
let query = {};
|
|
697
|
-
if (!$dara.isNull(request.method)) {
|
|
698
|
-
query["method"] = request.method;
|
|
699
|
-
}
|
|
700
|
-
let body = {};
|
|
701
|
-
if (!$dara.isNull(request.content)) {
|
|
702
|
-
body["content"] = request.content;
|
|
703
|
-
}
|
|
1301
|
+
async getServiceWithOptions(workspace, serviceId, headers, runtime) {
|
|
704
1302
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
705
1303
|
headers: headers,
|
|
706
|
-
query: openapi_core_2.OpenApiUtil.query(query),
|
|
707
|
-
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
708
1304
|
});
|
|
709
1305
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
710
|
-
action: "
|
|
1306
|
+
action: "GetService",
|
|
711
1307
|
version: "2024-03-30",
|
|
712
1308
|
protocol: "HTTPS",
|
|
713
|
-
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/
|
|
714
|
-
method: "
|
|
1309
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
1310
|
+
method: "GET",
|
|
715
1311
|
authType: "AK",
|
|
716
1312
|
style: "ROA",
|
|
717
1313
|
reqBodyType: "json",
|
|
718
1314
|
bodyType: "json",
|
|
719
1315
|
});
|
|
720
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1316
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetServiceResponse({}));
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* 查询 Service
|
|
1320
|
+
* @returns GetServiceResponse
|
|
1321
|
+
*/
|
|
1322
|
+
async getService(workspace, serviceId) {
|
|
1323
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1324
|
+
let headers = {};
|
|
1325
|
+
return await this.getServiceWithOptions(workspace, serviceId, headers, runtime);
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* 获取应用可观测实例
|
|
1329
|
+
*
|
|
1330
|
+
* @param headers - map
|
|
1331
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1332
|
+
* @returns GetServiceObservabilityResponse
|
|
1333
|
+
*/
|
|
1334
|
+
async getServiceObservabilityWithOptions(workspace, type, headers, runtime) {
|
|
1335
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1336
|
+
headers: headers,
|
|
1337
|
+
});
|
|
1338
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1339
|
+
action: "GetServiceObservability",
|
|
1340
|
+
version: "2024-03-30",
|
|
1341
|
+
protocol: "HTTPS",
|
|
1342
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service-observability/${$dara.URL.percentEncode(type)}`,
|
|
1343
|
+
method: "GET",
|
|
1344
|
+
authType: "AK",
|
|
1345
|
+
style: "ROA",
|
|
1346
|
+
reqBodyType: "json",
|
|
1347
|
+
bodyType: "json",
|
|
1348
|
+
});
|
|
1349
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetServiceObservabilityResponse({}));
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* 获取应用可观测实例
|
|
1353
|
+
* @returns GetServiceObservabilityResponse
|
|
1354
|
+
*/
|
|
1355
|
+
async getServiceObservability(workspace, type) {
|
|
1356
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1357
|
+
let headers = {};
|
|
1358
|
+
return await this.getServiceObservabilityWithOptions(workspace, type, headers, runtime);
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* 获取Umodel配置信息
|
|
1362
|
+
*
|
|
1363
|
+
* @param headers - map
|
|
1364
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1365
|
+
* @returns GetUmodelResponse
|
|
1366
|
+
*/
|
|
1367
|
+
async getUmodelWithOptions(workspace, headers, runtime) {
|
|
1368
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1369
|
+
headers: headers,
|
|
1370
|
+
});
|
|
1371
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1372
|
+
action: "GetUmodel",
|
|
1373
|
+
version: "2024-03-30",
|
|
1374
|
+
protocol: "HTTPS",
|
|
1375
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
|
|
1376
|
+
method: "GET",
|
|
1377
|
+
authType: "AK",
|
|
1378
|
+
style: "ROA",
|
|
1379
|
+
reqBodyType: "json",
|
|
1380
|
+
bodyType: "json",
|
|
1381
|
+
});
|
|
1382
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUmodelResponse({}));
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* 获取Umodel配置信息
|
|
1386
|
+
* @returns GetUmodelResponse
|
|
1387
|
+
*/
|
|
1388
|
+
async getUmodel(workspace) {
|
|
1389
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1390
|
+
let headers = {};
|
|
1391
|
+
return await this.getUmodelWithOptions(workspace, headers, runtime);
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* 获取相关联的 Umodel 图数据
|
|
1395
|
+
*
|
|
1396
|
+
* @param request - GetUmodelDataRequest
|
|
1397
|
+
* @param headers - map
|
|
1398
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1399
|
+
* @returns GetUmodelDataResponse
|
|
1400
|
+
*/
|
|
1401
|
+
async getUmodelDataWithOptions(workspace, request, headers, runtime) {
|
|
1402
|
+
request.validate();
|
|
1403
|
+
let query = {};
|
|
1404
|
+
if (!$dara.isNull(request.method)) {
|
|
1405
|
+
query["method"] = request.method;
|
|
1406
|
+
}
|
|
1407
|
+
let body = {};
|
|
1408
|
+
if (!$dara.isNull(request.content)) {
|
|
1409
|
+
body["content"] = request.content;
|
|
1410
|
+
}
|
|
1411
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1412
|
+
headers: headers,
|
|
1413
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1414
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1415
|
+
});
|
|
1416
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1417
|
+
action: "GetUmodelData",
|
|
1418
|
+
version: "2024-03-30",
|
|
1419
|
+
protocol: "HTTPS",
|
|
1420
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/graph`,
|
|
1421
|
+
method: "POST",
|
|
1422
|
+
authType: "AK",
|
|
1423
|
+
style: "ROA",
|
|
1424
|
+
reqBodyType: "json",
|
|
1425
|
+
bodyType: "json",
|
|
1426
|
+
});
|
|
1427
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUmodelDataResponse({}));
|
|
721
1428
|
}
|
|
722
1429
|
/**
|
|
723
1430
|
* 获取相关联的 Umodel 图数据
|
|
@@ -763,6 +1470,119 @@ class Client extends openapi_core_1.default {
|
|
|
763
1470
|
let headers = {};
|
|
764
1471
|
return await this.getWorkspaceWithOptions(workspaceName, headers, runtime);
|
|
765
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* addon的release列表
|
|
1475
|
+
*
|
|
1476
|
+
* @param request - ListAddonReleasesRequest
|
|
1477
|
+
* @param headers - map
|
|
1478
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1479
|
+
* @returns ListAddonReleasesResponse
|
|
1480
|
+
*/
|
|
1481
|
+
async listAddonReleasesWithOptions(policyId, request, headers, runtime) {
|
|
1482
|
+
request.validate();
|
|
1483
|
+
let query = {};
|
|
1484
|
+
if (!$dara.isNull(request.addonName)) {
|
|
1485
|
+
query["addonName"] = request.addonName;
|
|
1486
|
+
}
|
|
1487
|
+
if (!$dara.isNull(request.parentAddonReleaseId)) {
|
|
1488
|
+
query["parentAddonReleaseId"] = request.parentAddonReleaseId;
|
|
1489
|
+
}
|
|
1490
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1491
|
+
headers: headers,
|
|
1492
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1493
|
+
});
|
|
1494
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1495
|
+
action: "ListAddonReleases",
|
|
1496
|
+
version: "2024-03-30",
|
|
1497
|
+
protocol: "HTTPS",
|
|
1498
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
|
|
1499
|
+
method: "GET",
|
|
1500
|
+
authType: "AK",
|
|
1501
|
+
style: "ROA",
|
|
1502
|
+
reqBodyType: "json",
|
|
1503
|
+
bodyType: "json",
|
|
1504
|
+
});
|
|
1505
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAddonReleasesResponse({}));
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* addon的release列表
|
|
1509
|
+
*
|
|
1510
|
+
* @param request - ListAddonReleasesRequest
|
|
1511
|
+
* @returns ListAddonReleasesResponse
|
|
1512
|
+
*/
|
|
1513
|
+
async listAddonReleases(policyId, request) {
|
|
1514
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1515
|
+
let headers = {};
|
|
1516
|
+
return await this.listAddonReleasesWithOptions(policyId, request, headers, runtime);
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* 列举聚合任务组
|
|
1520
|
+
*
|
|
1521
|
+
* @param tmpReq - ListAggTaskGroupsRequest
|
|
1522
|
+
* @param headers - map
|
|
1523
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1524
|
+
* @returns ListAggTaskGroupsResponse
|
|
1525
|
+
*/
|
|
1526
|
+
async listAggTaskGroupsWithOptions(instanceId, tmpReq, headers, runtime) {
|
|
1527
|
+
tmpReq.validate();
|
|
1528
|
+
let request = new $_model.ListAggTaskGroupsShrinkRequest({});
|
|
1529
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1530
|
+
if (!$dara.isNull(tmpReq.tags)) {
|
|
1531
|
+
request.tagsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
1532
|
+
}
|
|
1533
|
+
let query = {};
|
|
1534
|
+
if (!$dara.isNull(request.filterAggTaskGroupIds)) {
|
|
1535
|
+
query["filterAggTaskGroupIds"] = request.filterAggTaskGroupIds;
|
|
1536
|
+
}
|
|
1537
|
+
if (!$dara.isNull(request.filterAggTaskGroupNames)) {
|
|
1538
|
+
query["filterAggTaskGroupNames"] = request.filterAggTaskGroupNames;
|
|
1539
|
+
}
|
|
1540
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1541
|
+
query["maxResults"] = request.maxResults;
|
|
1542
|
+
}
|
|
1543
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1544
|
+
query["nextToken"] = request.nextToken;
|
|
1545
|
+
}
|
|
1546
|
+
if (!$dara.isNull(request.query)) {
|
|
1547
|
+
query["query"] = request.query;
|
|
1548
|
+
}
|
|
1549
|
+
if (!$dara.isNull(request.status)) {
|
|
1550
|
+
query["status"] = request.status;
|
|
1551
|
+
}
|
|
1552
|
+
if (!$dara.isNull(request.tagsShrink)) {
|
|
1553
|
+
query["tags"] = request.tagsShrink;
|
|
1554
|
+
}
|
|
1555
|
+
if (!$dara.isNull(request.targetPrometheusId)) {
|
|
1556
|
+
query["targetPrometheusId"] = request.targetPrometheusId;
|
|
1557
|
+
}
|
|
1558
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1559
|
+
headers: headers,
|
|
1560
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1561
|
+
});
|
|
1562
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1563
|
+
action: "ListAggTaskGroups",
|
|
1564
|
+
version: "2024-03-30",
|
|
1565
|
+
protocol: "HTTPS",
|
|
1566
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups`,
|
|
1567
|
+
method: "GET",
|
|
1568
|
+
authType: "AK",
|
|
1569
|
+
style: "ROA",
|
|
1570
|
+
reqBodyType: "json",
|
|
1571
|
+
bodyType: "json",
|
|
1572
|
+
});
|
|
1573
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAggTaskGroupsResponse({}));
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* 列举聚合任务组
|
|
1577
|
+
*
|
|
1578
|
+
* @param request - ListAggTaskGroupsRequest
|
|
1579
|
+
* @returns ListAggTaskGroupsResponse
|
|
1580
|
+
*/
|
|
1581
|
+
async listAggTaskGroups(instanceId, request) {
|
|
1582
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1583
|
+
let headers = {};
|
|
1584
|
+
return await this.listAggTaskGroupsWithOptions(instanceId, request, headers, runtime);
|
|
1585
|
+
}
|
|
766
1586
|
/**
|
|
767
1587
|
* 查询告警动作
|
|
768
1588
|
*
|
|
@@ -823,159 +1643,898 @@ class Client extends openapi_core_1.default {
|
|
|
823
1643
|
return await this.listAlertActionsWithOptions(request, headers, runtime);
|
|
824
1644
|
}
|
|
825
1645
|
/**
|
|
826
|
-
*
|
|
1646
|
+
* 获取接入中心策略的存储要求信息
|
|
827
1647
|
*
|
|
828
|
-
* @param request -
|
|
1648
|
+
* @param request - ListIntegrationPolicyCustomScrapeJobRulesRequest
|
|
829
1649
|
* @param headers - map
|
|
830
1650
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
831
|
-
* @returns
|
|
1651
|
+
* @returns ListIntegrationPolicyCustomScrapeJobRulesResponse
|
|
832
1652
|
*/
|
|
833
|
-
async
|
|
1653
|
+
async listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId, request, headers, runtime) {
|
|
834
1654
|
request.validate();
|
|
835
1655
|
let query = {};
|
|
836
|
-
if (!$dara.isNull(request.
|
|
837
|
-
query["
|
|
1656
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
1657
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
838
1658
|
}
|
|
839
|
-
if (!$dara.isNull(request.
|
|
840
|
-
query["
|
|
1659
|
+
if (!$dara.isNull(request.encryptYaml)) {
|
|
1660
|
+
query["encryptYaml"] = request.encryptYaml;
|
|
841
1661
|
}
|
|
842
|
-
if (!$dara.isNull(request.
|
|
843
|
-
query["
|
|
1662
|
+
if (!$dara.isNull(request.namespace)) {
|
|
1663
|
+
query["namespace"] = request.namespace;
|
|
844
1664
|
}
|
|
845
1665
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
846
1666
|
headers: headers,
|
|
847
1667
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
848
1668
|
});
|
|
849
1669
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
850
|
-
action: "
|
|
1670
|
+
action: "ListIntegrationPolicyCustomScrapeJobRules",
|
|
851
1671
|
version: "2024-03-30",
|
|
852
1672
|
protocol: "HTTPS",
|
|
853
|
-
pathname: `/
|
|
1673
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/custom-scrape-job-rules`,
|
|
854
1674
|
method: "GET",
|
|
855
1675
|
authType: "AK",
|
|
856
1676
|
style: "ROA",
|
|
857
1677
|
reqBodyType: "json",
|
|
858
1678
|
bodyType: "json",
|
|
859
1679
|
});
|
|
860
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1680
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyCustomScrapeJobRulesResponse({}));
|
|
861
1681
|
}
|
|
862
1682
|
/**
|
|
863
|
-
*
|
|
1683
|
+
* 获取接入中心策略的存储要求信息
|
|
864
1684
|
*
|
|
865
|
-
* @param request -
|
|
866
|
-
* @returns
|
|
1685
|
+
* @param request - ListIntegrationPolicyCustomScrapeJobRulesRequest
|
|
1686
|
+
* @returns ListIntegrationPolicyCustomScrapeJobRulesResponse
|
|
867
1687
|
*/
|
|
868
|
-
async
|
|
1688
|
+
async listIntegrationPolicyCustomScrapeJobRules(policyId, request) {
|
|
869
1689
|
let runtime = new $dara.RuntimeOptions({});
|
|
870
1690
|
let headers = {};
|
|
871
|
-
return await this.
|
|
1691
|
+
return await this.listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId, request, headers, runtime);
|
|
872
1692
|
}
|
|
873
1693
|
/**
|
|
874
|
-
*
|
|
1694
|
+
* 获取接入中心策略的PodMonitor资源
|
|
875
1695
|
*
|
|
876
|
-
* @param
|
|
1696
|
+
* @param request - ListIntegrationPolicyPodMonitorsRequest
|
|
877
1697
|
* @param headers - map
|
|
878
1698
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
879
|
-
* @returns
|
|
1699
|
+
* @returns ListIntegrationPolicyPodMonitorsResponse
|
|
880
1700
|
*/
|
|
881
|
-
async
|
|
882
|
-
|
|
883
|
-
let request = new $_model.ListWorkspacesShrinkRequest({});
|
|
884
|
-
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
885
|
-
if (!$dara.isNull(tmpReq.workspaceNameList)) {
|
|
886
|
-
request.workspaceNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
|
|
887
|
-
}
|
|
1701
|
+
async listIntegrationPolicyPodMonitorsWithOptions(policyId, request, headers, runtime) {
|
|
1702
|
+
request.validate();
|
|
888
1703
|
let query = {};
|
|
889
|
-
if (!$dara.isNull(request.
|
|
890
|
-
query["
|
|
891
|
-
}
|
|
892
|
-
if (!$dara.isNull(request.nextToken)) {
|
|
893
|
-
query["nextToken"] = request.nextToken;
|
|
894
|
-
}
|
|
895
|
-
if (!$dara.isNull(request.region)) {
|
|
896
|
-
query["region"] = request.region;
|
|
1704
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
1705
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
897
1706
|
}
|
|
898
|
-
if (!$dara.isNull(request.
|
|
899
|
-
query["
|
|
1707
|
+
if (!$dara.isNull(request.encryptYaml)) {
|
|
1708
|
+
query["encryptYaml"] = request.encryptYaml;
|
|
900
1709
|
}
|
|
901
|
-
if (!$dara.isNull(request.
|
|
902
|
-
query["
|
|
1710
|
+
if (!$dara.isNull(request.namespace)) {
|
|
1711
|
+
query["namespace"] = request.namespace;
|
|
903
1712
|
}
|
|
904
1713
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
905
1714
|
headers: headers,
|
|
906
1715
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
907
1716
|
});
|
|
908
1717
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
909
|
-
action: "
|
|
1718
|
+
action: "ListIntegrationPolicyPodMonitors",
|
|
910
1719
|
version: "2024-03-30",
|
|
911
1720
|
protocol: "HTTPS",
|
|
912
|
-
pathname: `/
|
|
1721
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/pod-monitors`,
|
|
913
1722
|
method: "GET",
|
|
914
1723
|
authType: "AK",
|
|
915
1724
|
style: "ROA",
|
|
916
1725
|
reqBodyType: "json",
|
|
917
1726
|
bodyType: "json",
|
|
918
1727
|
});
|
|
919
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1728
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyPodMonitorsResponse({}));
|
|
920
1729
|
}
|
|
921
1730
|
/**
|
|
922
|
-
*
|
|
1731
|
+
* 获取接入中心策略的PodMonitor资源
|
|
923
1732
|
*
|
|
924
|
-
* @param request -
|
|
925
|
-
* @returns
|
|
1733
|
+
* @param request - ListIntegrationPolicyPodMonitorsRequest
|
|
1734
|
+
* @returns ListIntegrationPolicyPodMonitorsResponse
|
|
926
1735
|
*/
|
|
927
|
-
async
|
|
1736
|
+
async listIntegrationPolicyPodMonitors(policyId, request) {
|
|
928
1737
|
let runtime = new $dara.RuntimeOptions({});
|
|
929
1738
|
let headers = {};
|
|
930
|
-
return await this.
|
|
1739
|
+
return await this.listIntegrationPolicyPodMonitorsWithOptions(policyId, request, headers, runtime);
|
|
931
1740
|
}
|
|
932
1741
|
/**
|
|
933
|
-
*
|
|
1742
|
+
* 获取接入中心策略的存储要求信息
|
|
934
1743
|
*
|
|
935
|
-
* @param request -
|
|
1744
|
+
* @param request - ListIntegrationPolicyStorageRequirementsRequest
|
|
936
1745
|
* @param headers - map
|
|
937
1746
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
938
|
-
* @returns
|
|
1747
|
+
* @returns ListIntegrationPolicyStorageRequirementsResponse
|
|
939
1748
|
*/
|
|
940
|
-
async
|
|
1749
|
+
async listIntegrationPolicyStorageRequirementsWithOptions(policyId, request, headers, runtime) {
|
|
941
1750
|
request.validate();
|
|
942
|
-
let
|
|
943
|
-
if (!$dara.isNull(request.
|
|
944
|
-
|
|
1751
|
+
let query = {};
|
|
1752
|
+
if (!$dara.isNull(request.addonName)) {
|
|
1753
|
+
query["addonName"] = request.addonName;
|
|
945
1754
|
}
|
|
946
|
-
if (!$dara.isNull(request.
|
|
947
|
-
|
|
1755
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
1756
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
948
1757
|
}
|
|
949
|
-
if (!$dara.isNull(request.
|
|
950
|
-
|
|
1758
|
+
if (!$dara.isNull(request.storageType)) {
|
|
1759
|
+
query["storageType"] = request.storageType;
|
|
951
1760
|
}
|
|
952
1761
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
953
1762
|
headers: headers,
|
|
954
|
-
|
|
1763
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
955
1764
|
});
|
|
956
1765
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
957
|
-
action: "
|
|
1766
|
+
action: "ListIntegrationPolicyStorageRequirements",
|
|
958
1767
|
version: "2024-03-30",
|
|
959
1768
|
protocol: "HTTPS",
|
|
960
|
-
pathname: `/
|
|
961
|
-
method: "
|
|
1769
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/storage-requirements`,
|
|
1770
|
+
method: "GET",
|
|
962
1771
|
authType: "AK",
|
|
963
1772
|
style: "ROA",
|
|
964
1773
|
reqBodyType: "json",
|
|
965
1774
|
bodyType: "json",
|
|
966
1775
|
});
|
|
967
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1776
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyStorageRequirementsResponse({}));
|
|
968
1777
|
}
|
|
969
1778
|
/**
|
|
970
|
-
*
|
|
1779
|
+
* 获取接入中心策略的存储要求信息
|
|
971
1780
|
*
|
|
972
|
-
* @param request -
|
|
973
|
-
* @returns
|
|
1781
|
+
* @param request - ListIntegrationPolicyStorageRequirementsRequest
|
|
1782
|
+
* @returns ListIntegrationPolicyStorageRequirementsResponse
|
|
974
1783
|
*/
|
|
975
|
-
async
|
|
1784
|
+
async listIntegrationPolicyStorageRequirements(policyId, request) {
|
|
976
1785
|
let runtime = new $dara.RuntimeOptions({});
|
|
977
1786
|
let headers = {};
|
|
978
|
-
return await this.
|
|
1787
|
+
return await this.listIntegrationPolicyStorageRequirementsWithOptions(policyId, request, headers, runtime);
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* 获取Prometheus实例大盘列表
|
|
1791
|
+
*
|
|
1792
|
+
* @param request - ListPrometheusDashboardsRequest
|
|
1793
|
+
* @param headers - map
|
|
1794
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1795
|
+
* @returns ListPrometheusDashboardsResponse
|
|
1796
|
+
*/
|
|
1797
|
+
async listPrometheusDashboardsWithOptions(prometheusInstanceId, request, headers, runtime) {
|
|
1798
|
+
request.validate();
|
|
1799
|
+
let query = {};
|
|
1800
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1801
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1802
|
+
}
|
|
1803
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1804
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1805
|
+
}
|
|
1806
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1807
|
+
headers: headers,
|
|
1808
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1809
|
+
});
|
|
1810
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1811
|
+
action: "ListPrometheusDashboards",
|
|
1812
|
+
version: "2024-03-30",
|
|
1813
|
+
protocol: "HTTPS",
|
|
1814
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}/dashboards`,
|
|
1815
|
+
method: "GET",
|
|
1816
|
+
authType: "AK",
|
|
1817
|
+
style: "ROA",
|
|
1818
|
+
reqBodyType: "json",
|
|
1819
|
+
bodyType: "json",
|
|
1820
|
+
});
|
|
1821
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPrometheusDashboardsResponse({}));
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* 获取Prometheus实例大盘列表
|
|
1825
|
+
*
|
|
1826
|
+
* @param request - ListPrometheusDashboardsRequest
|
|
1827
|
+
* @returns ListPrometheusDashboardsResponse
|
|
1828
|
+
*/
|
|
1829
|
+
async listPrometheusDashboards(prometheusInstanceId, request) {
|
|
1830
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1831
|
+
let headers = {};
|
|
1832
|
+
return await this.listPrometheusDashboardsWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
1833
|
+
}
|
|
1834
|
+
/**
|
|
1835
|
+
* 获取Prometheus实例信息列表
|
|
1836
|
+
*
|
|
1837
|
+
* @param tmpReq - ListPrometheusInstancesRequest
|
|
1838
|
+
* @param headers - map
|
|
1839
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1840
|
+
* @returns ListPrometheusInstancesResponse
|
|
1841
|
+
*/
|
|
1842
|
+
async listPrometheusInstancesWithOptions(tmpReq, headers, runtime) {
|
|
1843
|
+
tmpReq.validate();
|
|
1844
|
+
let request = new $_model.ListPrometheusInstancesShrinkRequest({});
|
|
1845
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1846
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
1847
|
+
request.tagShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
1848
|
+
}
|
|
1849
|
+
let query = {};
|
|
1850
|
+
if (!$dara.isNull(request.filterRegionIds)) {
|
|
1851
|
+
query["filterRegionIds"] = request.filterRegionIds;
|
|
1852
|
+
}
|
|
1853
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1854
|
+
query["maxResults"] = request.maxResults;
|
|
1855
|
+
}
|
|
1856
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1857
|
+
query["nextToken"] = request.nextToken;
|
|
1858
|
+
}
|
|
1859
|
+
if (!$dara.isNull(request.prometheusInstanceIds)) {
|
|
1860
|
+
query["prometheusInstanceIds"] = request.prometheusInstanceIds;
|
|
1861
|
+
}
|
|
1862
|
+
if (!$dara.isNull(request.prometheusInstanceName)) {
|
|
1863
|
+
query["prometheusInstanceName"] = request.prometheusInstanceName;
|
|
1864
|
+
}
|
|
1865
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1866
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1867
|
+
}
|
|
1868
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1869
|
+
query["resourceType"] = request.resourceType;
|
|
1870
|
+
}
|
|
1871
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
1872
|
+
query["tag"] = request.tagShrink;
|
|
1873
|
+
}
|
|
1874
|
+
if (!$dara.isNull(request.version)) {
|
|
1875
|
+
query["version"] = request.version;
|
|
1876
|
+
}
|
|
1877
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1878
|
+
headers: headers,
|
|
1879
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1880
|
+
});
|
|
1881
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1882
|
+
action: "ListPrometheusInstances",
|
|
1883
|
+
version: "2024-03-30",
|
|
1884
|
+
protocol: "HTTPS",
|
|
1885
|
+
pathname: `/prometheus-instances`,
|
|
1886
|
+
method: "GET",
|
|
1887
|
+
authType: "AK",
|
|
1888
|
+
style: "ROA",
|
|
1889
|
+
reqBodyType: "json",
|
|
1890
|
+
bodyType: "json",
|
|
1891
|
+
});
|
|
1892
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPrometheusInstancesResponse({}));
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* 获取Prometheus实例信息列表
|
|
1896
|
+
*
|
|
1897
|
+
* @param request - ListPrometheusInstancesRequest
|
|
1898
|
+
* @returns ListPrometheusInstancesResponse
|
|
1899
|
+
*/
|
|
1900
|
+
async listPrometheusInstances(request) {
|
|
1901
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1902
|
+
let headers = {};
|
|
1903
|
+
return await this.listPrometheusInstancesWithOptions(request, headers, runtime);
|
|
1904
|
+
}
|
|
1905
|
+
/**
|
|
1906
|
+
* 获取Prometheus视图实例信息列表
|
|
1907
|
+
*
|
|
1908
|
+
* @param tmpReq - ListPrometheusViewsRequest
|
|
1909
|
+
* @param headers - map
|
|
1910
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1911
|
+
* @returns ListPrometheusViewsResponse
|
|
1912
|
+
*/
|
|
1913
|
+
async listPrometheusViewsWithOptions(tmpReq, headers, runtime) {
|
|
1914
|
+
tmpReq.validate();
|
|
1915
|
+
let request = new $_model.ListPrometheusViewsShrinkRequest({});
|
|
1916
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1917
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
1918
|
+
request.tagShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
1919
|
+
}
|
|
1920
|
+
let query = {};
|
|
1921
|
+
if (!$dara.isNull(request.filterRegionIds)) {
|
|
1922
|
+
query["filterRegionIds"] = request.filterRegionIds;
|
|
1923
|
+
}
|
|
1924
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1925
|
+
query["maxResults"] = request.maxResults;
|
|
1926
|
+
}
|
|
1927
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1928
|
+
query["nextToken"] = request.nextToken;
|
|
1929
|
+
}
|
|
1930
|
+
if (!$dara.isNull(request.prometheusViewIds)) {
|
|
1931
|
+
query["prometheusViewIds"] = request.prometheusViewIds;
|
|
1932
|
+
}
|
|
1933
|
+
if (!$dara.isNull(request.prometheusViewName)) {
|
|
1934
|
+
query["prometheusViewName"] = request.prometheusViewName;
|
|
1935
|
+
}
|
|
1936
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1937
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1938
|
+
}
|
|
1939
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1940
|
+
query["resourceType"] = request.resourceType;
|
|
1941
|
+
}
|
|
1942
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
1943
|
+
query["tag"] = request.tagShrink;
|
|
1944
|
+
}
|
|
1945
|
+
if (!$dara.isNull(request.version)) {
|
|
1946
|
+
query["version"] = request.version;
|
|
1947
|
+
}
|
|
1948
|
+
if (!$dara.isNull(request.workspace)) {
|
|
1949
|
+
query["workspace"] = request.workspace;
|
|
1950
|
+
}
|
|
1951
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1952
|
+
headers: headers,
|
|
1953
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1954
|
+
});
|
|
1955
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1956
|
+
action: "ListPrometheusViews",
|
|
1957
|
+
version: "2024-03-30",
|
|
1958
|
+
protocol: "HTTPS",
|
|
1959
|
+
pathname: `/prometheus-views`,
|
|
1960
|
+
method: "GET",
|
|
1961
|
+
authType: "AK",
|
|
1962
|
+
style: "ROA",
|
|
1963
|
+
reqBodyType: "json",
|
|
1964
|
+
bodyType: "json",
|
|
1965
|
+
});
|
|
1966
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPrometheusViewsResponse({}));
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* 获取Prometheus视图实例信息列表
|
|
1970
|
+
*
|
|
1971
|
+
* @param request - ListPrometheusViewsRequest
|
|
1972
|
+
* @returns ListPrometheusViewsResponse
|
|
1973
|
+
*/
|
|
1974
|
+
async listPrometheusViews(request) {
|
|
1975
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1976
|
+
let headers = {};
|
|
1977
|
+
return await this.listPrometheusViewsWithOptions(request, headers, runtime);
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* 获取Prometheus虚拟实例
|
|
1981
|
+
*
|
|
1982
|
+
* @param request - ListPrometheusVirtualInstancesRequest
|
|
1983
|
+
* @param headers - map
|
|
1984
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1985
|
+
* @returns ListPrometheusVirtualInstancesResponse
|
|
1986
|
+
*/
|
|
1987
|
+
async listPrometheusVirtualInstancesWithOptions(request, headers, runtime) {
|
|
1988
|
+
request.validate();
|
|
1989
|
+
let query = {};
|
|
1990
|
+
if (!$dara.isNull(request.namespace)) {
|
|
1991
|
+
query["namespace"] = request.namespace;
|
|
1992
|
+
}
|
|
1993
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1994
|
+
headers: headers,
|
|
1995
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1996
|
+
});
|
|
1997
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1998
|
+
action: "ListPrometheusVirtualInstances",
|
|
1999
|
+
version: "2024-03-30",
|
|
2000
|
+
protocol: "HTTPS",
|
|
2001
|
+
pathname: `/virtual-instances`,
|
|
2002
|
+
method: "GET",
|
|
2003
|
+
authType: "AK",
|
|
2004
|
+
style: "ROA",
|
|
2005
|
+
reqBodyType: "json",
|
|
2006
|
+
bodyType: "json",
|
|
2007
|
+
});
|
|
2008
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPrometheusVirtualInstancesResponse({}));
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* 获取Prometheus虚拟实例
|
|
2012
|
+
*
|
|
2013
|
+
* @param request - ListPrometheusVirtualInstancesRequest
|
|
2014
|
+
* @returns ListPrometheusVirtualInstancesResponse
|
|
2015
|
+
*/
|
|
2016
|
+
async listPrometheusVirtualInstances(request) {
|
|
2017
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2018
|
+
let headers = {};
|
|
2019
|
+
return await this.listPrometheusVirtualInstancesWithOptions(request, headers, runtime);
|
|
2020
|
+
}
|
|
2021
|
+
/**
|
|
2022
|
+
* 列出资源Service
|
|
2023
|
+
*
|
|
2024
|
+
* @param request - ListServicesRequest
|
|
2025
|
+
* @param headers - map
|
|
2026
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2027
|
+
* @returns ListServicesResponse
|
|
2028
|
+
*/
|
|
2029
|
+
async listServicesWithOptions(workspace, request, headers, runtime) {
|
|
2030
|
+
request.validate();
|
|
2031
|
+
let query = {};
|
|
2032
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2033
|
+
query["maxResults"] = request.maxResults;
|
|
2034
|
+
}
|
|
2035
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2036
|
+
query["nextToken"] = request.nextToken;
|
|
2037
|
+
}
|
|
2038
|
+
if (!$dara.isNull(request.serviceType)) {
|
|
2039
|
+
query["serviceType"] = request.serviceType;
|
|
2040
|
+
}
|
|
2041
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2042
|
+
headers: headers,
|
|
2043
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2044
|
+
});
|
|
2045
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2046
|
+
action: "ListServices",
|
|
2047
|
+
version: "2024-03-30",
|
|
2048
|
+
protocol: "HTTPS",
|
|
2049
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/services`,
|
|
2050
|
+
method: "GET",
|
|
2051
|
+
authType: "AK",
|
|
2052
|
+
style: "ROA",
|
|
2053
|
+
reqBodyType: "json",
|
|
2054
|
+
bodyType: "json",
|
|
2055
|
+
});
|
|
2056
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListServicesResponse({}));
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* 列出资源Service
|
|
2060
|
+
*
|
|
2061
|
+
* @param request - ListServicesRequest
|
|
2062
|
+
* @returns ListServicesResponse
|
|
2063
|
+
*/
|
|
2064
|
+
async listServices(workspace, request) {
|
|
2065
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2066
|
+
let headers = {};
|
|
2067
|
+
return await this.listServicesWithOptions(workspace, request, headers, runtime);
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* 获取工作空间列表
|
|
2071
|
+
*
|
|
2072
|
+
* @param tmpReq - ListWorkspacesRequest
|
|
2073
|
+
* @param headers - map
|
|
2074
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2075
|
+
* @returns ListWorkspacesResponse
|
|
2076
|
+
*/
|
|
2077
|
+
async listWorkspacesWithOptions(tmpReq, headers, runtime) {
|
|
2078
|
+
tmpReq.validate();
|
|
2079
|
+
let request = new $_model.ListWorkspacesShrinkRequest({});
|
|
2080
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2081
|
+
if (!$dara.isNull(tmpReq.workspaceNameList)) {
|
|
2082
|
+
request.workspaceNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
|
|
2083
|
+
}
|
|
2084
|
+
let query = {};
|
|
2085
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2086
|
+
query["maxResults"] = request.maxResults;
|
|
2087
|
+
}
|
|
2088
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2089
|
+
query["nextToken"] = request.nextToken;
|
|
2090
|
+
}
|
|
2091
|
+
if (!$dara.isNull(request.region)) {
|
|
2092
|
+
query["region"] = request.region;
|
|
2093
|
+
}
|
|
2094
|
+
if (!$dara.isNull(request.workspaceName)) {
|
|
2095
|
+
query["workspaceName"] = request.workspaceName;
|
|
2096
|
+
}
|
|
2097
|
+
if (!$dara.isNull(request.workspaceNameListShrink)) {
|
|
2098
|
+
query["workspaceNameList"] = request.workspaceNameListShrink;
|
|
2099
|
+
}
|
|
2100
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2101
|
+
headers: headers,
|
|
2102
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2103
|
+
});
|
|
2104
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2105
|
+
action: "ListWorkspaces",
|
|
2106
|
+
version: "2024-03-30",
|
|
2107
|
+
protocol: "HTTPS",
|
|
2108
|
+
pathname: `/workspace`,
|
|
2109
|
+
method: "GET",
|
|
2110
|
+
authType: "AK",
|
|
2111
|
+
style: "ROA",
|
|
2112
|
+
reqBodyType: "json",
|
|
2113
|
+
bodyType: "json",
|
|
2114
|
+
});
|
|
2115
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListWorkspacesResponse({}));
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* 获取工作空间列表
|
|
2119
|
+
*
|
|
2120
|
+
* @param request - ListWorkspacesRequest
|
|
2121
|
+
* @returns ListWorkspacesResponse
|
|
2122
|
+
*/
|
|
2123
|
+
async listWorkspaces(request) {
|
|
2124
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2125
|
+
let headers = {};
|
|
2126
|
+
return await this.listWorkspacesWithOptions(request, headers, runtime);
|
|
2127
|
+
}
|
|
2128
|
+
/**
|
|
2129
|
+
* 创建工作空间
|
|
2130
|
+
*
|
|
2131
|
+
* @param request - PutWorkspaceRequest
|
|
2132
|
+
* @param headers - map
|
|
2133
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2134
|
+
* @returns PutWorkspaceResponse
|
|
2135
|
+
*/
|
|
2136
|
+
async putWorkspaceWithOptions(workspaceName, request, headers, runtime) {
|
|
2137
|
+
request.validate();
|
|
2138
|
+
let body = {};
|
|
2139
|
+
if (!$dara.isNull(request.description)) {
|
|
2140
|
+
body["description"] = request.description;
|
|
2141
|
+
}
|
|
2142
|
+
if (!$dara.isNull(request.displayName)) {
|
|
2143
|
+
body["displayName"] = request.displayName;
|
|
2144
|
+
}
|
|
2145
|
+
if (!$dara.isNull(request.slsProject)) {
|
|
2146
|
+
body["slsProject"] = request.slsProject;
|
|
2147
|
+
}
|
|
2148
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2149
|
+
headers: headers,
|
|
2150
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2151
|
+
});
|
|
2152
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2153
|
+
action: "PutWorkspace",
|
|
2154
|
+
version: "2024-03-30",
|
|
2155
|
+
protocol: "HTTPS",
|
|
2156
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
|
|
2157
|
+
method: "POST",
|
|
2158
|
+
authType: "AK",
|
|
2159
|
+
style: "ROA",
|
|
2160
|
+
reqBodyType: "json",
|
|
2161
|
+
bodyType: "json",
|
|
2162
|
+
});
|
|
2163
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutWorkspaceResponse({}));
|
|
2164
|
+
}
|
|
2165
|
+
/**
|
|
2166
|
+
* 创建工作空间
|
|
2167
|
+
*
|
|
2168
|
+
* @param request - PutWorkspaceRequest
|
|
2169
|
+
* @returns PutWorkspaceResponse
|
|
2170
|
+
*/
|
|
2171
|
+
async putWorkspace(workspaceName, request) {
|
|
2172
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2173
|
+
let headers = {};
|
|
2174
|
+
return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
|
|
2175
|
+
}
|
|
2176
|
+
/**
|
|
2177
|
+
* 升级接入组件
|
|
2178
|
+
*
|
|
2179
|
+
* @param request - UpdateAddonReleaseRequest
|
|
2180
|
+
* @param headers - map
|
|
2181
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2182
|
+
* @returns UpdateAddonReleaseResponse
|
|
2183
|
+
*/
|
|
2184
|
+
async updateAddonReleaseWithOptions(releaseName, policyId, request, headers, runtime) {
|
|
2185
|
+
request.validate();
|
|
2186
|
+
let body = {};
|
|
2187
|
+
if (!$dara.isNull(request.addonVersion)) {
|
|
2188
|
+
body["addonVersion"] = request.addonVersion;
|
|
2189
|
+
}
|
|
2190
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
2191
|
+
body["dryRun"] = request.dryRun;
|
|
2192
|
+
}
|
|
2193
|
+
if (!$dara.isNull(request.entityRules)) {
|
|
2194
|
+
body["entityRules"] = request.entityRules;
|
|
2195
|
+
}
|
|
2196
|
+
if (!$dara.isNull(request.values)) {
|
|
2197
|
+
body["values"] = request.values;
|
|
2198
|
+
}
|
|
2199
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2200
|
+
headers: headers,
|
|
2201
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2202
|
+
});
|
|
2203
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2204
|
+
action: "UpdateAddonRelease",
|
|
2205
|
+
version: "2024-03-30",
|
|
2206
|
+
protocol: "HTTPS",
|
|
2207
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases/${$dara.URL.percentEncode(releaseName)}`,
|
|
2208
|
+
method: "PUT",
|
|
2209
|
+
authType: "AK",
|
|
2210
|
+
style: "ROA",
|
|
2211
|
+
reqBodyType: "json",
|
|
2212
|
+
bodyType: "json",
|
|
2213
|
+
});
|
|
2214
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAddonReleaseResponse({}));
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* 升级接入组件
|
|
2218
|
+
*
|
|
2219
|
+
* @param request - UpdateAddonReleaseRequest
|
|
2220
|
+
* @returns UpdateAddonReleaseResponse
|
|
2221
|
+
*/
|
|
2222
|
+
async updateAddonRelease(releaseName, policyId, request) {
|
|
2223
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2224
|
+
let headers = {};
|
|
2225
|
+
return await this.updateAddonReleaseWithOptions(releaseName, policyId, request, headers, runtime);
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* 应用聚合任务组
|
|
2229
|
+
*
|
|
2230
|
+
* @param request - UpdateAggTaskGroupRequest
|
|
2231
|
+
* @param headers - map
|
|
2232
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2233
|
+
* @returns UpdateAggTaskGroupResponse
|
|
2234
|
+
*/
|
|
2235
|
+
async updateAggTaskGroupWithOptions(instanceId, groupId, request, headers, runtime) {
|
|
2236
|
+
request.validate();
|
|
2237
|
+
let body = {};
|
|
2238
|
+
if (!$dara.isNull(request.aggTaskGroupConfig)) {
|
|
2239
|
+
body["aggTaskGroupConfig"] = request.aggTaskGroupConfig;
|
|
2240
|
+
}
|
|
2241
|
+
if (!$dara.isNull(request.aggTaskGroupConfigType)) {
|
|
2242
|
+
body["aggTaskGroupConfigType"] = request.aggTaskGroupConfigType;
|
|
2243
|
+
}
|
|
2244
|
+
if (!$dara.isNull(request.aggTaskGroupName)) {
|
|
2245
|
+
body["aggTaskGroupName"] = request.aggTaskGroupName;
|
|
2246
|
+
}
|
|
2247
|
+
if (!$dara.isNull(request.cronExpr)) {
|
|
2248
|
+
body["cronExpr"] = request.cronExpr;
|
|
2249
|
+
}
|
|
2250
|
+
if (!$dara.isNull(request.delay)) {
|
|
2251
|
+
body["delay"] = request.delay;
|
|
2252
|
+
}
|
|
2253
|
+
if (!$dara.isNull(request.description)) {
|
|
2254
|
+
body["description"] = request.description;
|
|
2255
|
+
}
|
|
2256
|
+
if (!$dara.isNull(request.fromTime)) {
|
|
2257
|
+
body["fromTime"] = request.fromTime;
|
|
2258
|
+
}
|
|
2259
|
+
if (!$dara.isNull(request.maxRetries)) {
|
|
2260
|
+
body["maxRetries"] = request.maxRetries;
|
|
2261
|
+
}
|
|
2262
|
+
if (!$dara.isNull(request.maxRunTimeInSeconds)) {
|
|
2263
|
+
body["maxRunTimeInSeconds"] = request.maxRunTimeInSeconds;
|
|
2264
|
+
}
|
|
2265
|
+
if (!$dara.isNull(request.precheckString)) {
|
|
2266
|
+
body["precheckString"] = request.precheckString;
|
|
2267
|
+
}
|
|
2268
|
+
if (!$dara.isNull(request.scheduleMode)) {
|
|
2269
|
+
body["scheduleMode"] = request.scheduleMode;
|
|
2270
|
+
}
|
|
2271
|
+
if (!$dara.isNull(request.scheduleTimeExpr)) {
|
|
2272
|
+
body["scheduleTimeExpr"] = request.scheduleTimeExpr;
|
|
2273
|
+
}
|
|
2274
|
+
if (!$dara.isNull(request.status)) {
|
|
2275
|
+
body["status"] = request.status;
|
|
2276
|
+
}
|
|
2277
|
+
if (!$dara.isNull(request.tags)) {
|
|
2278
|
+
body["tags"] = request.tags;
|
|
2279
|
+
}
|
|
2280
|
+
if (!$dara.isNull(request.targetPrometheusId)) {
|
|
2281
|
+
body["targetPrometheusId"] = request.targetPrometheusId;
|
|
2282
|
+
}
|
|
2283
|
+
if (!$dara.isNull(request.toTime)) {
|
|
2284
|
+
body["toTime"] = request.toTime;
|
|
2285
|
+
}
|
|
2286
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2287
|
+
headers: headers,
|
|
2288
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2289
|
+
});
|
|
2290
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2291
|
+
action: "UpdateAggTaskGroup",
|
|
2292
|
+
version: "2024-03-30",
|
|
2293
|
+
protocol: "HTTPS",
|
|
2294
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
|
|
2295
|
+
method: "PUT",
|
|
2296
|
+
authType: "AK",
|
|
2297
|
+
style: "ROA",
|
|
2298
|
+
reqBodyType: "json",
|
|
2299
|
+
bodyType: "json",
|
|
2300
|
+
});
|
|
2301
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAggTaskGroupResponse({}));
|
|
2302
|
+
}
|
|
2303
|
+
/**
|
|
2304
|
+
* 应用聚合任务组
|
|
2305
|
+
*
|
|
2306
|
+
* @param request - UpdateAggTaskGroupRequest
|
|
2307
|
+
* @returns UpdateAggTaskGroupResponse
|
|
2308
|
+
*/
|
|
2309
|
+
async updateAggTaskGroup(instanceId, groupId, request) {
|
|
2310
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2311
|
+
let headers = {};
|
|
2312
|
+
return await this.updateAggTaskGroupWithOptions(instanceId, groupId, request, headers, runtime);
|
|
2313
|
+
}
|
|
2314
|
+
/**
|
|
2315
|
+
* 更新聚合任务组状态
|
|
2316
|
+
*
|
|
2317
|
+
* @param request - UpdateAggTaskGroupStatusRequest
|
|
2318
|
+
* @param headers - map
|
|
2319
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2320
|
+
* @returns UpdateAggTaskGroupStatusResponse
|
|
2321
|
+
*/
|
|
2322
|
+
async updateAggTaskGroupStatusWithOptions(instanceId, groupId, request, headers, runtime) {
|
|
2323
|
+
request.validate();
|
|
2324
|
+
let body = {};
|
|
2325
|
+
if (!$dara.isNull(request.status)) {
|
|
2326
|
+
body["status"] = request.status;
|
|
2327
|
+
}
|
|
2328
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2329
|
+
headers: headers,
|
|
2330
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2331
|
+
});
|
|
2332
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2333
|
+
action: "UpdateAggTaskGroupStatus",
|
|
2334
|
+
version: "2024-03-30",
|
|
2335
|
+
protocol: "HTTPS",
|
|
2336
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}/status`,
|
|
2337
|
+
method: "PUT",
|
|
2338
|
+
authType: "AK",
|
|
2339
|
+
style: "ROA",
|
|
2340
|
+
reqBodyType: "json",
|
|
2341
|
+
bodyType: "json",
|
|
2342
|
+
});
|
|
2343
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAggTaskGroupStatusResponse({}));
|
|
2344
|
+
}
|
|
2345
|
+
/**
|
|
2346
|
+
* 更新聚合任务组状态
|
|
2347
|
+
*
|
|
2348
|
+
* @param request - UpdateAggTaskGroupStatusRequest
|
|
2349
|
+
* @returns UpdateAggTaskGroupStatusResponse
|
|
2350
|
+
*/
|
|
2351
|
+
async updateAggTaskGroupStatus(instanceId, groupId, request) {
|
|
2352
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2353
|
+
let headers = {};
|
|
2354
|
+
return await this.updateAggTaskGroupStatusWithOptions(instanceId, groupId, request, headers, runtime);
|
|
2355
|
+
}
|
|
2356
|
+
/**
|
|
2357
|
+
* 更新指定策略
|
|
2358
|
+
*
|
|
2359
|
+
* @param request - UpdateIntegrationPolicyRequest
|
|
2360
|
+
* @param headers - map
|
|
2361
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2362
|
+
* @returns UpdateIntegrationPolicyResponse
|
|
2363
|
+
*/
|
|
2364
|
+
async updateIntegrationPolicyWithOptions(integrationPolicyId, request, headers, runtime) {
|
|
2365
|
+
request.validate();
|
|
2366
|
+
let body = {};
|
|
2367
|
+
if (!$dara.isNull(request.feePackage)) {
|
|
2368
|
+
body["feePackage"] = request.feePackage;
|
|
2369
|
+
}
|
|
2370
|
+
if (!$dara.isNull(request.policyName)) {
|
|
2371
|
+
body["policyName"] = request.policyName;
|
|
2372
|
+
}
|
|
2373
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
2374
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
2375
|
+
}
|
|
2376
|
+
if (!$dara.isNull(request.tags)) {
|
|
2377
|
+
body["tags"] = request.tags;
|
|
2378
|
+
}
|
|
2379
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2380
|
+
headers: headers,
|
|
2381
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2382
|
+
});
|
|
2383
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2384
|
+
action: "UpdateIntegrationPolicy",
|
|
2385
|
+
version: "2024-03-30",
|
|
2386
|
+
protocol: "HTTPS",
|
|
2387
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(integrationPolicyId)}`,
|
|
2388
|
+
method: "PUT",
|
|
2389
|
+
authType: "AK",
|
|
2390
|
+
style: "ROA",
|
|
2391
|
+
reqBodyType: "json",
|
|
2392
|
+
bodyType: "json",
|
|
2393
|
+
});
|
|
2394
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateIntegrationPolicyResponse({}));
|
|
2395
|
+
}
|
|
2396
|
+
/**
|
|
2397
|
+
* 更新指定策略
|
|
2398
|
+
*
|
|
2399
|
+
* @param request - UpdateIntegrationPolicyRequest
|
|
2400
|
+
* @returns UpdateIntegrationPolicyResponse
|
|
2401
|
+
*/
|
|
2402
|
+
async updateIntegrationPolicy(integrationPolicyId, request) {
|
|
2403
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2404
|
+
let headers = {};
|
|
2405
|
+
return await this.updateIntegrationPolicyWithOptions(integrationPolicyId, request, headers, runtime);
|
|
2406
|
+
}
|
|
2407
|
+
/**
|
|
2408
|
+
* 更新Prom实例信息
|
|
2409
|
+
*
|
|
2410
|
+
* @param request - UpdatePrometheusInstanceRequest
|
|
2411
|
+
* @param headers - map
|
|
2412
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2413
|
+
* @returns UpdatePrometheusInstanceResponse
|
|
2414
|
+
*/
|
|
2415
|
+
async updatePrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime) {
|
|
2416
|
+
request.validate();
|
|
2417
|
+
let body = {};
|
|
2418
|
+
if (!$dara.isNull(request.archiveDuration)) {
|
|
2419
|
+
body["archiveDuration"] = request.archiveDuration;
|
|
2420
|
+
}
|
|
2421
|
+
if (!$dara.isNull(request.authFreeReadPolicy)) {
|
|
2422
|
+
body["authFreeReadPolicy"] = request.authFreeReadPolicy;
|
|
2423
|
+
}
|
|
2424
|
+
if (!$dara.isNull(request.authFreeWritePolicy)) {
|
|
2425
|
+
body["authFreeWritePolicy"] = request.authFreeWritePolicy;
|
|
2426
|
+
}
|
|
2427
|
+
if (!$dara.isNull(request.enableAuthFreeRead)) {
|
|
2428
|
+
body["enableAuthFreeRead"] = request.enableAuthFreeRead;
|
|
2429
|
+
}
|
|
2430
|
+
if (!$dara.isNull(request.enableAuthFreeWrite)) {
|
|
2431
|
+
body["enableAuthFreeWrite"] = request.enableAuthFreeWrite;
|
|
2432
|
+
}
|
|
2433
|
+
if (!$dara.isNull(request.enableAuthToken)) {
|
|
2434
|
+
body["enableAuthToken"] = request.enableAuthToken;
|
|
2435
|
+
}
|
|
2436
|
+
if (!$dara.isNull(request.paymentType)) {
|
|
2437
|
+
body["paymentType"] = request.paymentType;
|
|
2438
|
+
}
|
|
2439
|
+
if (!$dara.isNull(request.prometheusInstanceName)) {
|
|
2440
|
+
body["prometheusInstanceName"] = request.prometheusInstanceName;
|
|
2441
|
+
}
|
|
2442
|
+
if (!$dara.isNull(request.status)) {
|
|
2443
|
+
body["status"] = request.status;
|
|
2444
|
+
}
|
|
2445
|
+
if (!$dara.isNull(request.storageDuration)) {
|
|
2446
|
+
body["storageDuration"] = request.storageDuration;
|
|
2447
|
+
}
|
|
2448
|
+
if (!$dara.isNull(request.workspace)) {
|
|
2449
|
+
body["workspace"] = request.workspace;
|
|
2450
|
+
}
|
|
2451
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2452
|
+
headers: headers,
|
|
2453
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2454
|
+
});
|
|
2455
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2456
|
+
action: "UpdatePrometheusInstance",
|
|
2457
|
+
version: "2024-03-30",
|
|
2458
|
+
protocol: "HTTPS",
|
|
2459
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
2460
|
+
method: "PUT",
|
|
2461
|
+
authType: "AK",
|
|
2462
|
+
style: "ROA",
|
|
2463
|
+
reqBodyType: "json",
|
|
2464
|
+
bodyType: "json",
|
|
2465
|
+
});
|
|
2466
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusInstanceResponse({}));
|
|
2467
|
+
}
|
|
2468
|
+
/**
|
|
2469
|
+
* 更新Prom实例信息
|
|
2470
|
+
*
|
|
2471
|
+
* @param request - UpdatePrometheusInstanceRequest
|
|
2472
|
+
* @returns UpdatePrometheusInstanceResponse
|
|
2473
|
+
*/
|
|
2474
|
+
async updatePrometheusInstance(prometheusInstanceId, request) {
|
|
2475
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2476
|
+
let headers = {};
|
|
2477
|
+
return await this.updatePrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
* 更新Prom视图实例信息
|
|
2481
|
+
*
|
|
2482
|
+
* @param request - UpdatePrometheusViewRequest
|
|
2483
|
+
* @param headers - map
|
|
2484
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2485
|
+
* @returns UpdatePrometheusViewResponse
|
|
2486
|
+
*/
|
|
2487
|
+
async updatePrometheusViewWithOptions(prometheusViewId, request, headers, runtime) {
|
|
2488
|
+
request.validate();
|
|
2489
|
+
let body = {};
|
|
2490
|
+
if (!$dara.isNull(request.authFreeReadPolicy)) {
|
|
2491
|
+
body["authFreeReadPolicy"] = request.authFreeReadPolicy;
|
|
2492
|
+
}
|
|
2493
|
+
if (!$dara.isNull(request.enableAuthFreeRead)) {
|
|
2494
|
+
body["enableAuthFreeRead"] = request.enableAuthFreeRead;
|
|
2495
|
+
}
|
|
2496
|
+
if (!$dara.isNull(request.enableAuthToken)) {
|
|
2497
|
+
body["enableAuthToken"] = request.enableAuthToken;
|
|
2498
|
+
}
|
|
2499
|
+
if (!$dara.isNull(request.prometheusInstances)) {
|
|
2500
|
+
body["prometheusInstances"] = request.prometheusInstances;
|
|
2501
|
+
}
|
|
2502
|
+
if (!$dara.isNull(request.prometheusViewName)) {
|
|
2503
|
+
body["prometheusViewName"] = request.prometheusViewName;
|
|
2504
|
+
}
|
|
2505
|
+
if (!$dara.isNull(request.status)) {
|
|
2506
|
+
body["status"] = request.status;
|
|
2507
|
+
}
|
|
2508
|
+
if (!$dara.isNull(request.workspace)) {
|
|
2509
|
+
body["workspace"] = request.workspace;
|
|
2510
|
+
}
|
|
2511
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2512
|
+
headers: headers,
|
|
2513
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2514
|
+
});
|
|
2515
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2516
|
+
action: "UpdatePrometheusView",
|
|
2517
|
+
version: "2024-03-30",
|
|
2518
|
+
protocol: "HTTPS",
|
|
2519
|
+
pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
|
|
2520
|
+
method: "PUT",
|
|
2521
|
+
authType: "AK",
|
|
2522
|
+
style: "ROA",
|
|
2523
|
+
reqBodyType: "json",
|
|
2524
|
+
bodyType: "json",
|
|
2525
|
+
});
|
|
2526
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusViewResponse({}));
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
* 更新Prom视图实例信息
|
|
2530
|
+
*
|
|
2531
|
+
* @param request - UpdatePrometheusViewRequest
|
|
2532
|
+
* @returns UpdatePrometheusViewResponse
|
|
2533
|
+
*/
|
|
2534
|
+
async updatePrometheusView(prometheusViewId, request) {
|
|
2535
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2536
|
+
let headers = {};
|
|
2537
|
+
return await this.updatePrometheusViewWithOptions(prometheusViewId, request, headers, runtime);
|
|
979
2538
|
}
|
|
980
2539
|
/**
|
|
981
2540
|
* 更新UpdateService
|