@dynatrace-sdk/client-classic-environment-v2 5.1.0 → 5.2.2
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/CHANGELOG.md +19 -0
- package/README.md +647 -212
- package/cjs/index.js +729 -80
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +729 -80
- package/package.json +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +2 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +30 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +11 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +81 -11
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +7 -7
- package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-module-attributes.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/aggregated-log-aggregation-result.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/availability-evidence.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/aws-key-based-credentials-dto.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/aws-role-based-credentials.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/certificate-credentials.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/chromium-startup-flags-dto-disable-features.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/cookie-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/custom-device-creation-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/cyber-ark-allowed-location-dto.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/cyber-ark-username-password.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/enablement-dto-origin.d.ts +11 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/enablement-dto-performance-metric.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/enablement-dto.d.ts +17 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-from-relationships.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-to-relationships.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/event-evidence.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/event-ingest-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-dto-actions.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-feature-sets-details.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-upload-response-dto-feature-sets-details.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/hashicorp-approle.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +8 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/interaction-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/item-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/java-script-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/key-strokes-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/log-record-additional-columns.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/maintenance-window-evidence.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-evidence.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-series-dimension-map.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-state-param.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/monitored-states.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/navigate-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/network-zone.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/node-collection-element.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/node.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/plain-authentication-dto.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/plain-keystrokes-input-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-node-names.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/public-certificate-credentials.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/public-synthetic-location.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/remediation-items-bulk-update-delete-dto-updates.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/revision-diff.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-enums.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-maturity.d.ts +16 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-table-columns.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-types.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub-maturity.d.ts +16 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-type-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/secure-authentication-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/secure-keystrokes-input-dto.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-event-reason.d.ts +3 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-event.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/select-option-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/service-impact.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/snmpv3-credentials.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/store-log-query-structure.d.ts +7 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-configuration-dto.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-request.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-response.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-constraint-dto-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto-origin.d.ts +11 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-type.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-primary-grail-tag-dto.d.ts +13 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-request.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-response.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-batch-status-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-request-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-private-location-update.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-public-location-update.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/time-wait-condition-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/transactional-evidence.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/validation-wait-condition-dto.d.ts +2 -2
- package/types/packages/http-client/src/index.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/abort-controller.d.ts +0 -6
- package/types/packages/http-client/src/lib/platform/abort-signal.d.ts +0 -6
- package/types/packages/http-client/src/lib/platform/apply-content-type-header.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/base-error.d.ts +0 -5
- package/types/packages/http-client/src/lib/platform/binary.d.ts +0 -13
- package/types/packages/http-client/src/lib/platform/data-type-error.d.ts +0 -6
- package/types/packages/http-client/src/lib/platform/decode-form-data.d.ts +0 -48
- package/types/packages/http-client/src/lib/platform/decode-response-body.d.ts +0 -3
- package/types/packages/http-client/src/lib/platform/default-status-validator.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/encode-request-body.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/http-client-abort-error.d.ts +0 -7
- package/types/packages/http-client/src/lib/platform/http-client-request-error.d.ts +0 -7
- package/types/packages/http-client/src/lib/platform/http-client-response-error-serializer.d.ts +0 -3
- package/types/packages/http-client/src/lib/platform/http-client-response-error.d.ts +0 -11
- package/types/packages/http-client/src/lib/platform/http-client-response.d.ts +0 -10
- package/types/packages/http-client/src/lib/platform/http-client.d.ts +0 -24
- package/types/packages/http-client/src/lib/platform/index.d.ts +0 -12
- package/types/packages/http-client/src/lib/platform/oauth-http-client.d.ts +0 -41
- package/types/packages/http-client/src/lib/platform/unsupported-operation-error.d.ts +0 -6
- package/types/packages/http-client/src/lib/types/abort-controller.d.ts +0 -14
- package/types/packages/http-client/src/lib/types/abort-signal.d.ts +0 -18
- package/types/packages/http-client/src/lib/types/base-error.d.ts +0 -4
- package/types/packages/http-client/src/lib/types/binary.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/data-type-error.d.ts +0 -14
- package/types/packages/http-client/src/lib/types/data-types.d.ts +0 -36
- package/types/packages/http-client/src/lib/types/form-data-request-body.d.ts +0 -83
- package/types/packages/http-client/src/lib/types/form-data-response-body.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/headers.d.ts +0 -6
- package/types/packages/http-client/src/lib/types/http-client-abort-error.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/http-client-network-error.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/http-client-request-error.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/http-client-request-options.d.ts +0 -42
- package/types/packages/http-client/src/lib/types/http-client-response-error.d.ts +0 -20
- package/types/packages/http-client/src/lib/types/http-client-response.d.ts +0 -33
- package/types/packages/http-client/src/lib/types/http-client.d.ts +0 -24
- package/types/packages/http-client/src/lib/types/index.d.ts +0 -20
- package/types/packages/http-client/src/lib/types/request-body-types.d.ts +0 -26
- package/types/packages/http-client/src/lib/types/response-body-types.d.ts +0 -46
- package/types/packages/http-client/src/lib/types/status-validator.d.ts +0 -7
- package/types/packages/http-client/src/lib/types/unsupported-operation-error.d.ts +0 -14
- package/types/packages/platform/error-handlers/src/index.d.ts +0 -2
- package/types/packages/platform/error-handlers/src/lib/add-global-error-serializer.d.ts +0 -13
- package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +0 -13
- package/types/packages/platform/error-handlers/src/lib/types/dt-runtime-error-handlers.d.ts +0 -5
- package/types/packages/platform/error-handlers/src/lib/types/error-type.d.ts +0 -9
- package/types/packages/platform/error-handlers/src/lib/types/global-dt-runtime-with-error-handlers.d.ts +0 -7
- package/types/packages/platform/error-handlers/src/lib/types/global-error-serializer.d.ts +0 -10
- package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +0 -16
- package/types/packages/platform/error-handlers/src/lib/types/index.d.ts +0 -6
- package/types/packages/platform/error-handlers/src/lib/types/serialized-error.d.ts +0 -10
- package/types/packages/platform/shared/index.d.ts +0 -1
- package/types/packages/platform/shared/utils/get-global-with-dt-runtime.d.ts +0 -1
- package/types/packages/shared-errors/src/api-client-error.d.ts +0 -23
- package/types/packages/shared-errors/src/api-gateway-error.d.ts +0 -37
- package/types/packages/shared-errors/src/client-request-error.d.ts +0 -39
- package/types/packages/shared-errors/src/index.d.ts +0 -5
- package/types/packages/shared-errors/src/invalid-response-error.d.ts +0 -26
- package/types/packages/shared-errors/src/types.d.ts +0 -88
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright 2023-
|
|
3
|
+
* Copyright 2023-2026 Dynatrace LLC
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -1239,6 +1239,7 @@ function mimeTypeToEncoding(mimeType, defaultEncoding) {
|
|
|
1239
1239
|
case "text/plain":
|
|
1240
1240
|
return "text" /* Text */;
|
|
1241
1241
|
case "application/octet-stream":
|
|
1242
|
+
case "application/yaml":
|
|
1242
1243
|
return "binary" /* Binary */;
|
|
1243
1244
|
case "multipart/form-data":
|
|
1244
1245
|
return "form-data" /* FormData */;
|
|
@@ -7069,7 +7070,7 @@ var CredentialVaultClient = class {
|
|
|
7069
7070
|
/**
|
|
7070
7071
|
* Gets the details of the specified credentials set.
|
|
7071
7072
|
*
|
|
7072
|
-
* **Required scope:** environment-api:credentials:read<br/><br/>The credentials set including username/certificate, password or token is included in the response.
|
|
7073
|
+
* **Required scope:** environment-api:credentials:read<br/>**Required permission:** environment:roles:viewer<br/><br/>The credentials set including username/certificate, password or token is included in the response.
|
|
7073
7074
|
*
|
|
7074
7075
|
* @returns {Promise<AbstractCredentialsResponseElement>} Success. The response contains the details of the credentials set.
|
|
7075
7076
|
*
|
|
@@ -14001,7 +14002,10 @@ var LogsClient = class {
|
|
|
14001
14002
|
throw new ApiClientError16("API client error", "API client call is missing mandatory config parameter");
|
|
14002
14003
|
}
|
|
14003
14004
|
const encodedBody = config.type === "application/json" ? this.shouldTransformDates ? transformRequest(config.body, []) : config.body : config.type === "application/json; charset=utf-8" ? this.shouldTransformDates ? transformRequest(config.body, []) : config.body : config.body;
|
|
14004
|
-
const query = toQueryString({ "content-type": config.contentType });
|
|
14005
|
+
const query = toQueryString({ structure: config.structure, "content-type": config.contentType });
|
|
14006
|
+
const headerParameters = {
|
|
14007
|
+
...config.xDynatraceOptions !== void 0 && { "X-Dynatrace-Options": String(config.xDynatraceOptions) }
|
|
14008
|
+
};
|
|
14005
14009
|
try {
|
|
14006
14010
|
const response = await this.httpClient.send({
|
|
14007
14011
|
url: `/platform/classic/environment-api/v2/logs/ingest${query}`,
|
|
@@ -14010,7 +14014,8 @@ var LogsClient = class {
|
|
|
14010
14014
|
body: encodedBody,
|
|
14011
14015
|
headers: {
|
|
14012
14016
|
"Content-Type": config.type,
|
|
14013
|
-
Accept: "application/json; charset=utf-8, application/json"
|
|
14017
|
+
Accept: "application/json; charset=utf-8, application/json",
|
|
14018
|
+
...headerParameters
|
|
14014
14019
|
},
|
|
14015
14020
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
14016
14021
|
statusValidator: (status) => {
|
|
@@ -14610,6 +14615,7 @@ var MetricsClient = class {
|
|
|
14610
14615
|
text: config.text,
|
|
14611
14616
|
fields: config.fields,
|
|
14612
14617
|
writtenSince: config.writtenSince,
|
|
14618
|
+
writtenSinceMode: config.writtenSinceMode,
|
|
14613
14619
|
metadataSelector: config.metadataSelector
|
|
14614
14620
|
});
|
|
14615
14621
|
try {
|
|
@@ -14766,6 +14772,145 @@ var MetricsClient = class {
|
|
|
14766
14772
|
}
|
|
14767
14773
|
}
|
|
14768
14774
|
}
|
|
14775
|
+
/**
|
|
14776
|
+
* Deletes all metrics older than the specified days
|
|
14777
|
+
*
|
|
14778
|
+
* **Required scope:** environment-api:metrics:write<br/>**Required permission:** environment:roles:manage-settings<br/><br/>Deletion cannot be undone! timeframe for minUnusedDays: 30 days - 5 years
|
|
14779
|
+
*
|
|
14780
|
+
* @example <caption>Code example</caption>
|
|
14781
|
+
* import { metricsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
14782
|
+
*
|
|
14783
|
+
* const data = await metricsClient.bulkDelete({
|
|
14784
|
+
* metricSelector: "...",
|
|
14785
|
+
* });
|
|
14786
|
+
*
|
|
14787
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
14788
|
+
* @throws {InvalidResponseError}
|
|
14789
|
+
* @throws {ApiClientError}
|
|
14790
|
+
* @throws {ClientRequestError}
|
|
14791
|
+
*/
|
|
14792
|
+
async bulkDelete(config) {
|
|
14793
|
+
if (!config) {
|
|
14794
|
+
throw new ApiClientError17("API client error", "API client call is missing mandatory config parameter");
|
|
14795
|
+
}
|
|
14796
|
+
const query = toQueryString({ metricSelector: config.metricSelector, minUnusedDays: config.minUnusedDays });
|
|
14797
|
+
try {
|
|
14798
|
+
await this.httpClient.send({
|
|
14799
|
+
url: `/platform/classic/environment-api/v2/metrics${query}`,
|
|
14800
|
+
method: "DELETE",
|
|
14801
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
14802
|
+
statusValidator: (status) => {
|
|
14803
|
+
return [202].includes(status);
|
|
14804
|
+
}
|
|
14805
|
+
});
|
|
14806
|
+
return;
|
|
14807
|
+
} catch (e) {
|
|
14808
|
+
if (isHttpClientAbortError17(e)) {
|
|
14809
|
+
throw e;
|
|
14810
|
+
}
|
|
14811
|
+
if (!isHttpClientResponseError17(e)) {
|
|
14812
|
+
throw new ApiClientError17("UnexpectedError", "Unexpected error", e);
|
|
14813
|
+
}
|
|
14814
|
+
const response = e.response;
|
|
14815
|
+
await apiGatewayErrorsHandler(response);
|
|
14816
|
+
switch (response.status) {
|
|
14817
|
+
case 400: {
|
|
14818
|
+
const contentType = response.headers["content-type"];
|
|
14819
|
+
const encoding = mimeTypeToEncoding(contentType, "text" /* Text */);
|
|
14820
|
+
const responseValue = await response.body(encoding);
|
|
14821
|
+
throw new ClientRequestError21(`400`, response, responseValue, getErrorMessage(responseValue, `Failed.`));
|
|
14822
|
+
}
|
|
14823
|
+
case 500: {
|
|
14824
|
+
const contentType = response.headers["content-type"];
|
|
14825
|
+
const encoding = mimeTypeToEncoding(contentType, "text" /* Text */);
|
|
14826
|
+
const responseValue = await response.body(encoding);
|
|
14827
|
+
throw new ClientRequestError21(
|
|
14828
|
+
`500`,
|
|
14829
|
+
response,
|
|
14830
|
+
responseValue,
|
|
14831
|
+
getErrorMessage(responseValue, `Failed. The bulk-deletion failed.`)
|
|
14832
|
+
);
|
|
14833
|
+
}
|
|
14834
|
+
default: {
|
|
14835
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
14836
|
+
const responseValue = await response.body("json");
|
|
14837
|
+
try {
|
|
14838
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
14839
|
+
throw new ErrorEnvelopeError(
|
|
14840
|
+
`${response.status}`,
|
|
14841
|
+
response,
|
|
14842
|
+
errorBody,
|
|
14843
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
14844
|
+
e
|
|
14845
|
+
);
|
|
14846
|
+
} catch (err) {
|
|
14847
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
14848
|
+
throw err;
|
|
14849
|
+
}
|
|
14850
|
+
throw new InvalidResponseError17(
|
|
14851
|
+
`MetricsClient.bulkDelete:${response.status}`,
|
|
14852
|
+
err,
|
|
14853
|
+
responseValue,
|
|
14854
|
+
"ErrorEnvelope",
|
|
14855
|
+
void 0,
|
|
14856
|
+
response
|
|
14857
|
+
);
|
|
14858
|
+
}
|
|
14859
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
14860
|
+
const responseValue = await response.body("json");
|
|
14861
|
+
try {
|
|
14862
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
14863
|
+
throw new ErrorEnvelopeError(
|
|
14864
|
+
`${response.status}`,
|
|
14865
|
+
response,
|
|
14866
|
+
errorBody,
|
|
14867
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
14868
|
+
e
|
|
14869
|
+
);
|
|
14870
|
+
} catch (err) {
|
|
14871
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
14872
|
+
throw err;
|
|
14873
|
+
}
|
|
14874
|
+
throw new InvalidResponseError17(
|
|
14875
|
+
`MetricsClient.bulkDelete:${response.status}`,
|
|
14876
|
+
err,
|
|
14877
|
+
responseValue,
|
|
14878
|
+
"ErrorEnvelope",
|
|
14879
|
+
void 0,
|
|
14880
|
+
response
|
|
14881
|
+
);
|
|
14882
|
+
}
|
|
14883
|
+
} else {
|
|
14884
|
+
try {
|
|
14885
|
+
const responseValue = await response.body("json");
|
|
14886
|
+
throw new ClientRequestError21(
|
|
14887
|
+
`${response.status}`,
|
|
14888
|
+
response,
|
|
14889
|
+
responseValue,
|
|
14890
|
+
getErrorMessage(
|
|
14891
|
+
responseValue,
|
|
14892
|
+
`Unexpected api response: code=${response.status} body="${responseValue}"`
|
|
14893
|
+
)
|
|
14894
|
+
);
|
|
14895
|
+
} catch (error) {
|
|
14896
|
+
if (error instanceof ClientRequestError21) {
|
|
14897
|
+
throw error;
|
|
14898
|
+
}
|
|
14899
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
14900
|
+
throw new InvalidResponseError17(
|
|
14901
|
+
`${response.status}`,
|
|
14902
|
+
error,
|
|
14903
|
+
responseValue,
|
|
14904
|
+
"json",
|
|
14905
|
+
"Unexpected api response",
|
|
14906
|
+
response
|
|
14907
|
+
);
|
|
14908
|
+
}
|
|
14909
|
+
}
|
|
14910
|
+
}
|
|
14911
|
+
}
|
|
14912
|
+
}
|
|
14913
|
+
}
|
|
14769
14914
|
/**
|
|
14770
14915
|
* Pushes metric data points to Dynatrace
|
|
14771
14916
|
*
|
|
@@ -15919,6 +16064,8 @@ var MonitoredEntitiesClient = class {
|
|
|
15919
16064
|
* 1. Specify the number of results per page in the **pageSize** query parameter.
|
|
15920
16065
|
* 2. Use the cursor from the **nextPageKey** field of the previous response in the **nextPageKey** query parameter to obtain subsequent pages.
|
|
15921
16066
|
*
|
|
16067
|
+
* @deprecated
|
|
16068
|
+
*
|
|
15922
16069
|
* @returns {Promise<EntitiesList>} Success
|
|
15923
16070
|
*
|
|
15924
16071
|
* @example <caption>Code example</caption>
|
|
@@ -16057,6 +16204,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16057
16204
|
*
|
|
16058
16205
|
* **Required scope:** environment-api:entities:write<br/>**Required permission:** environment:roles:manage-settings
|
|
16059
16206
|
*
|
|
16207
|
+
* @deprecated
|
|
16208
|
+
*
|
|
16060
16209
|
* @returns {Promise<CustomDeviceCreationResult | void>} Success
|
|
16061
16210
|
*
|
|
16062
16211
|
* @example <caption>Code example</caption>
|
|
@@ -16530,6 +16679,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16530
16679
|
*
|
|
16531
16680
|
* **Required scope:** environment-api:entities:read<br/>**Required permission:** environment:roles:viewer
|
|
16532
16681
|
*
|
|
16682
|
+
* @deprecated
|
|
16683
|
+
*
|
|
16533
16684
|
* @returns {Promise<Entity>} Success
|
|
16534
16685
|
*
|
|
16535
16686
|
* @example <caption>Code example</caption>
|
|
@@ -16664,6 +16815,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16664
16815
|
* 1. Specify the number of results per page in the **pageSize** query parameter.
|
|
16665
16816
|
* 2. Use the cursor from the **nextPageKey** field of the previous response in the **nextPageKey** query parameter to obtain subsequent pages.
|
|
16666
16817
|
*
|
|
16818
|
+
* @deprecated
|
|
16819
|
+
*
|
|
16667
16820
|
* @returns {Promise<EntityTypeList>} Success
|
|
16668
16821
|
*
|
|
16669
16822
|
* @example <caption>Code example</caption>
|
|
@@ -16812,6 +16965,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16812
16965
|
*
|
|
16813
16966
|
* **Required scope:** environment-api:entities:read<br/>**Required permission:** environment:roles:viewer
|
|
16814
16967
|
*
|
|
16968
|
+
* @deprecated
|
|
16969
|
+
*
|
|
16815
16970
|
* @returns {Promise<EntityType>} Success
|
|
16816
16971
|
*
|
|
16817
16972
|
* @example <caption>Code example</caption>
|
|
@@ -28174,50 +28329,331 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28174
28329
|
}
|
|
28175
28330
|
}
|
|
28176
28331
|
/**
|
|
28177
|
-
* Lists all synthetic locations (both public and private) available for your environment
|
|
28332
|
+
* Lists all synthetic locations (both public and private) available for your environment
|
|
28333
|
+
*
|
|
28334
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:viewer
|
|
28335
|
+
*
|
|
28336
|
+
* @returns {Promise<SyntheticLocations>} Success
|
|
28337
|
+
*
|
|
28338
|
+
* @example <caption>Code example</caption>
|
|
28339
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28340
|
+
*
|
|
28341
|
+
* const data =
|
|
28342
|
+
* await syntheticLocationsNodesAndConfigurationClient.getLocations();
|
|
28343
|
+
*
|
|
28344
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28345
|
+
* @throws {InvalidResponseError}
|
|
28346
|
+
* @throws {ApiClientError}
|
|
28347
|
+
* @throws {ClientRequestError}
|
|
28348
|
+
*/
|
|
28349
|
+
async getLocations(config = {}) {
|
|
28350
|
+
if (!config) {
|
|
28351
|
+
throw new ApiClientError32("API client error", "API client call is missing mandatory config parameter");
|
|
28352
|
+
}
|
|
28353
|
+
const query = toQueryString({
|
|
28354
|
+
cloudPlatform: config.cloudPlatform,
|
|
28355
|
+
type: config.type,
|
|
28356
|
+
capability: config.capability
|
|
28357
|
+
});
|
|
28358
|
+
try {
|
|
28359
|
+
const response = await this.httpClient.send({
|
|
28360
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations${query}`,
|
|
28361
|
+
method: "GET",
|
|
28362
|
+
headers: {
|
|
28363
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
28364
|
+
},
|
|
28365
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28366
|
+
statusValidator: (status) => {
|
|
28367
|
+
return [200].includes(status);
|
|
28368
|
+
}
|
|
28369
|
+
});
|
|
28370
|
+
const responseValue = await response.body("json");
|
|
28371
|
+
try {
|
|
28372
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28373
|
+
} catch (err) {
|
|
28374
|
+
throw new InvalidResponseError32(
|
|
28375
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocations:200`,
|
|
28376
|
+
err,
|
|
28377
|
+
responseValue,
|
|
28378
|
+
void 0,
|
|
28379
|
+
void 0,
|
|
28380
|
+
response
|
|
28381
|
+
);
|
|
28382
|
+
}
|
|
28383
|
+
} catch (e) {
|
|
28384
|
+
if (isHttpClientAbortError32(e) || isInvalidResponseError31(e)) {
|
|
28385
|
+
throw e;
|
|
28386
|
+
}
|
|
28387
|
+
if (!isHttpClientResponseError32(e)) {
|
|
28388
|
+
throw new ApiClientError32("UnexpectedError", "Unexpected error", e);
|
|
28389
|
+
}
|
|
28390
|
+
const response = e.response;
|
|
28391
|
+
await apiGatewayErrorsHandler(response);
|
|
28392
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
28393
|
+
const responseValue = await response.body("json");
|
|
28394
|
+
try {
|
|
28395
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28396
|
+
throw new ErrorEnvelopeError(
|
|
28397
|
+
`${response.status}`,
|
|
28398
|
+
response,
|
|
28399
|
+
errorBody,
|
|
28400
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
28401
|
+
e
|
|
28402
|
+
);
|
|
28403
|
+
} catch (err) {
|
|
28404
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28405
|
+
throw err;
|
|
28406
|
+
}
|
|
28407
|
+
throw new InvalidResponseError32(
|
|
28408
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocations:${response.status}`,
|
|
28409
|
+
err,
|
|
28410
|
+
responseValue,
|
|
28411
|
+
"ErrorEnvelope",
|
|
28412
|
+
void 0,
|
|
28413
|
+
response
|
|
28414
|
+
);
|
|
28415
|
+
}
|
|
28416
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
28417
|
+
const responseValue = await response.body("json");
|
|
28418
|
+
try {
|
|
28419
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28420
|
+
throw new ErrorEnvelopeError(
|
|
28421
|
+
`${response.status}`,
|
|
28422
|
+
response,
|
|
28423
|
+
errorBody,
|
|
28424
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
28425
|
+
e
|
|
28426
|
+
);
|
|
28427
|
+
} catch (err) {
|
|
28428
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28429
|
+
throw err;
|
|
28430
|
+
}
|
|
28431
|
+
throw new InvalidResponseError32(
|
|
28432
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocations:${response.status}`,
|
|
28433
|
+
err,
|
|
28434
|
+
responseValue,
|
|
28435
|
+
"ErrorEnvelope",
|
|
28436
|
+
void 0,
|
|
28437
|
+
response
|
|
28438
|
+
);
|
|
28439
|
+
}
|
|
28440
|
+
} else {
|
|
28441
|
+
try {
|
|
28442
|
+
const responseValue = await response.body("json");
|
|
28443
|
+
throw new ClientRequestError38(
|
|
28444
|
+
`${response.status}`,
|
|
28445
|
+
response,
|
|
28446
|
+
responseValue,
|
|
28447
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28448
|
+
);
|
|
28449
|
+
} catch (error) {
|
|
28450
|
+
if (error instanceof ClientRequestError38) {
|
|
28451
|
+
throw error;
|
|
28452
|
+
}
|
|
28453
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28454
|
+
throw new InvalidResponseError32(
|
|
28455
|
+
`${response.status}`,
|
|
28456
|
+
error,
|
|
28457
|
+
responseValue,
|
|
28458
|
+
"json",
|
|
28459
|
+
"Unexpected api response",
|
|
28460
|
+
response
|
|
28461
|
+
);
|
|
28462
|
+
}
|
|
28463
|
+
}
|
|
28464
|
+
}
|
|
28465
|
+
}
|
|
28466
|
+
/**
|
|
28467
|
+
* Creates a new private synthetic location
|
|
28468
|
+
*
|
|
28469
|
+
* **Required scope:** environment-api:synthetic:write<br/>**Required permission:** environment:roles:manage-settings
|
|
28470
|
+
*
|
|
28471
|
+
* @returns {Promise<SyntheticLocationIdsDto>} Success. The private location has been created. The response contains the ID of the new location.
|
|
28472
|
+
*
|
|
28473
|
+
* @example <caption>Code example</caption>
|
|
28474
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28475
|
+
*
|
|
28476
|
+
* const data =
|
|
28477
|
+
* await syntheticLocationsNodesAndConfigurationClient.addLocation(
|
|
28478
|
+
* {
|
|
28479
|
+
* body: {
|
|
28480
|
+
* latitude: 10,
|
|
28481
|
+
* longitude: 10,
|
|
28482
|
+
* name: "...",
|
|
28483
|
+
* nodes: ["..."],
|
|
28484
|
+
* type: "CLUSTER",
|
|
28485
|
+
* },
|
|
28486
|
+
* },
|
|
28487
|
+
* );
|
|
28488
|
+
*
|
|
28489
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28490
|
+
* @throws {InvalidResponseError}
|
|
28491
|
+
* @throws {ApiClientError}
|
|
28492
|
+
* @throws {ClientRequestError}
|
|
28493
|
+
*/
|
|
28494
|
+
async addLocation(config) {
|
|
28495
|
+
if (!config) {
|
|
28496
|
+
throw new ApiClientError32("API client error", "API client call is missing mandatory config parameter");
|
|
28497
|
+
}
|
|
28498
|
+
const encodedBody = this.shouldTransformDates ? transformRequest(config.body, []) : config.body;
|
|
28499
|
+
try {
|
|
28500
|
+
const response = await this.httpClient.send({
|
|
28501
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations`,
|
|
28502
|
+
method: "POST",
|
|
28503
|
+
requestBodyType: "json",
|
|
28504
|
+
body: encodedBody,
|
|
28505
|
+
headers: {
|
|
28506
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
28507
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
28508
|
+
},
|
|
28509
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28510
|
+
statusValidator: (status) => {
|
|
28511
|
+
return [201].includes(status);
|
|
28512
|
+
}
|
|
28513
|
+
});
|
|
28514
|
+
const responseValue = await response.body("json");
|
|
28515
|
+
try {
|
|
28516
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28517
|
+
} catch (err) {
|
|
28518
|
+
throw new InvalidResponseError32(
|
|
28519
|
+
`SyntheticLocationsNodesAndConfigurationClient.addLocation:201`,
|
|
28520
|
+
err,
|
|
28521
|
+
responseValue,
|
|
28522
|
+
void 0,
|
|
28523
|
+
void 0,
|
|
28524
|
+
response
|
|
28525
|
+
);
|
|
28526
|
+
}
|
|
28527
|
+
} catch (e) {
|
|
28528
|
+
if (isHttpClientAbortError32(e) || isInvalidResponseError31(e)) {
|
|
28529
|
+
throw e;
|
|
28530
|
+
}
|
|
28531
|
+
if (!isHttpClientResponseError32(e)) {
|
|
28532
|
+
throw new ApiClientError32("UnexpectedError", "Unexpected error", e);
|
|
28533
|
+
}
|
|
28534
|
+
const response = e.response;
|
|
28535
|
+
await apiGatewayErrorsHandler(response);
|
|
28536
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
28537
|
+
const responseValue = await response.body("json");
|
|
28538
|
+
try {
|
|
28539
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28540
|
+
throw new ErrorEnvelopeError(
|
|
28541
|
+
`${response.status}`,
|
|
28542
|
+
response,
|
|
28543
|
+
errorBody,
|
|
28544
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
28545
|
+
e
|
|
28546
|
+
);
|
|
28547
|
+
} catch (err) {
|
|
28548
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28549
|
+
throw err;
|
|
28550
|
+
}
|
|
28551
|
+
throw new InvalidResponseError32(
|
|
28552
|
+
`SyntheticLocationsNodesAndConfigurationClient.addLocation:${response.status}`,
|
|
28553
|
+
err,
|
|
28554
|
+
responseValue,
|
|
28555
|
+
"ErrorEnvelope",
|
|
28556
|
+
void 0,
|
|
28557
|
+
response
|
|
28558
|
+
);
|
|
28559
|
+
}
|
|
28560
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
28561
|
+
const responseValue = await response.body("json");
|
|
28562
|
+
try {
|
|
28563
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28564
|
+
throw new ErrorEnvelopeError(
|
|
28565
|
+
`${response.status}`,
|
|
28566
|
+
response,
|
|
28567
|
+
errorBody,
|
|
28568
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
28569
|
+
e
|
|
28570
|
+
);
|
|
28571
|
+
} catch (err) {
|
|
28572
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28573
|
+
throw err;
|
|
28574
|
+
}
|
|
28575
|
+
throw new InvalidResponseError32(
|
|
28576
|
+
`SyntheticLocationsNodesAndConfigurationClient.addLocation:${response.status}`,
|
|
28577
|
+
err,
|
|
28578
|
+
responseValue,
|
|
28579
|
+
"ErrorEnvelope",
|
|
28580
|
+
void 0,
|
|
28581
|
+
response
|
|
28582
|
+
);
|
|
28583
|
+
}
|
|
28584
|
+
} else {
|
|
28585
|
+
try {
|
|
28586
|
+
const responseValue = await response.body("json");
|
|
28587
|
+
throw new ClientRequestError38(
|
|
28588
|
+
`${response.status}`,
|
|
28589
|
+
response,
|
|
28590
|
+
responseValue,
|
|
28591
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28592
|
+
);
|
|
28593
|
+
} catch (error) {
|
|
28594
|
+
if (error instanceof ClientRequestError38) {
|
|
28595
|
+
throw error;
|
|
28596
|
+
}
|
|
28597
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28598
|
+
throw new InvalidResponseError32(
|
|
28599
|
+
`${response.status}`,
|
|
28600
|
+
error,
|
|
28601
|
+
responseValue,
|
|
28602
|
+
"json",
|
|
28603
|
+
"Unexpected api response",
|
|
28604
|
+
response
|
|
28605
|
+
);
|
|
28606
|
+
}
|
|
28607
|
+
}
|
|
28608
|
+
}
|
|
28609
|
+
}
|
|
28610
|
+
/**
|
|
28611
|
+
* Gets list of commands to deploy synthetic location in Kubernetes/Openshift cluster
|
|
28178
28612
|
*
|
|
28179
|
-
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:
|
|
28613
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
28180
28614
|
*
|
|
28181
|
-
* @returns {Promise<
|
|
28615
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to deploy a synthetic location.
|
|
28182
28616
|
*
|
|
28183
28617
|
* @example <caption>Code example</caption>
|
|
28184
28618
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28185
28619
|
*
|
|
28186
28620
|
* const data =
|
|
28187
|
-
* await syntheticLocationsNodesAndConfigurationClient.
|
|
28621
|
+
* await syntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands();
|
|
28188
28622
|
*
|
|
28189
28623
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28190
28624
|
* @throws {InvalidResponseError}
|
|
28191
28625
|
* @throws {ApiClientError}
|
|
28192
28626
|
* @throws {ClientRequestError}
|
|
28193
28627
|
*/
|
|
28194
|
-
async
|
|
28628
|
+
async getLocationDeploymentApplyCommands(config = {}) {
|
|
28195
28629
|
if (!config) {
|
|
28196
28630
|
throw new ApiClientError32("API client error", "API client call is missing mandatory config parameter");
|
|
28197
28631
|
}
|
|
28198
28632
|
const query = toQueryString({
|
|
28199
|
-
|
|
28200
|
-
|
|
28201
|
-
|
|
28633
|
+
platform: config.platform,
|
|
28634
|
+
namespace: config.namespace,
|
|
28635
|
+
filename: config.filename,
|
|
28636
|
+
fipsMode: config.fipsMode,
|
|
28637
|
+
squidProxyConfig: config.squidProxyConfig
|
|
28202
28638
|
});
|
|
28203
28639
|
try {
|
|
28204
28640
|
const response = await this.httpClient.send({
|
|
28205
|
-
url: `/platform/classic/environment-api/v2/synthetic/locations${query}`,
|
|
28641
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/commands/apply${query}`,
|
|
28206
28642
|
method: "GET",
|
|
28207
28643
|
headers: {
|
|
28208
|
-
Accept: "
|
|
28644
|
+
Accept: "text/plain, application/json"
|
|
28209
28645
|
},
|
|
28210
28646
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28211
28647
|
statusValidator: (status) => {
|
|
28212
28648
|
return [200].includes(status);
|
|
28213
28649
|
}
|
|
28214
28650
|
});
|
|
28215
|
-
const responseValue = await response.body("
|
|
28651
|
+
const responseValue = await response.body("text");
|
|
28216
28652
|
try {
|
|
28217
|
-
return
|
|
28653
|
+
return responseValue;
|
|
28218
28654
|
} catch (err) {
|
|
28219
28655
|
throw new InvalidResponseError32(
|
|
28220
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28656
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:200`,
|
|
28221
28657
|
err,
|
|
28222
28658
|
responseValue,
|
|
28223
28659
|
void 0,
|
|
@@ -28250,7 +28686,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28250
28686
|
throw err;
|
|
28251
28687
|
}
|
|
28252
28688
|
throw new InvalidResponseError32(
|
|
28253
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28689
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:${response.status}`,
|
|
28254
28690
|
err,
|
|
28255
28691
|
responseValue,
|
|
28256
28692
|
"ErrorEnvelope",
|
|
@@ -28274,7 +28710,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28274
28710
|
throw err;
|
|
28275
28711
|
}
|
|
28276
28712
|
throw new InvalidResponseError32(
|
|
28277
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28713
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:${response.status}`,
|
|
28278
28714
|
err,
|
|
28279
28715
|
responseValue,
|
|
28280
28716
|
"ErrorEnvelope",
|
|
@@ -28309,59 +28745,46 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28309
28745
|
}
|
|
28310
28746
|
}
|
|
28311
28747
|
/**
|
|
28312
|
-
*
|
|
28748
|
+
* Gets list of commands to deploy metric adapter in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
28313
28749
|
*
|
|
28314
|
-
* **Required scope:** environment-api:synthetic:
|
|
28750
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
28315
28751
|
*
|
|
28316
|
-
* @returns {Promise<
|
|
28752
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to deploy a metric adapter.
|
|
28317
28753
|
*
|
|
28318
28754
|
* @example <caption>Code example</caption>
|
|
28319
28755
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28320
28756
|
*
|
|
28321
28757
|
* const data =
|
|
28322
|
-
* await syntheticLocationsNodesAndConfigurationClient.
|
|
28323
|
-
* {
|
|
28324
|
-
* body: {
|
|
28325
|
-
* latitude: 10,
|
|
28326
|
-
* longitude: 10,
|
|
28327
|
-
* name: "...",
|
|
28328
|
-
* nodes: ["..."],
|
|
28329
|
-
* type: "CLUSTER",
|
|
28330
|
-
* },
|
|
28331
|
-
* },
|
|
28332
|
-
* );
|
|
28758
|
+
* await syntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands();
|
|
28333
28759
|
*
|
|
28334
28760
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28335
28761
|
* @throws {InvalidResponseError}
|
|
28336
28762
|
* @throws {ApiClientError}
|
|
28337
28763
|
* @throws {ClientRequestError}
|
|
28338
28764
|
*/
|
|
28339
|
-
async
|
|
28765
|
+
async getMetricAdapterDeploymentApplyCommands(config = {}) {
|
|
28340
28766
|
if (!config) {
|
|
28341
28767
|
throw new ApiClientError32("API client error", "API client call is missing mandatory config parameter");
|
|
28342
28768
|
}
|
|
28343
|
-
const
|
|
28769
|
+
const query = toQueryString({ platform: config.platform, namespace: config.namespace, filename: config.filename });
|
|
28344
28770
|
try {
|
|
28345
28771
|
const response = await this.httpClient.send({
|
|
28346
|
-
url: `/platform/classic/environment-api/v2/synthetic/locations`,
|
|
28347
|
-
method: "
|
|
28348
|
-
requestBodyType: "json",
|
|
28349
|
-
body: encodedBody,
|
|
28772
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/metricAdapter/commands/apply${query}`,
|
|
28773
|
+
method: "GET",
|
|
28350
28774
|
headers: {
|
|
28351
|
-
|
|
28352
|
-
Accept: "application/json; charset=utf-8, application/json"
|
|
28775
|
+
Accept: "text/plain, application/json"
|
|
28353
28776
|
},
|
|
28354
28777
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28355
28778
|
statusValidator: (status) => {
|
|
28356
|
-
return [
|
|
28779
|
+
return [200].includes(status);
|
|
28357
28780
|
}
|
|
28358
28781
|
});
|
|
28359
|
-
const responseValue = await response.body("
|
|
28782
|
+
const responseValue = await response.body("text");
|
|
28360
28783
|
try {
|
|
28361
|
-
return
|
|
28784
|
+
return responseValue;
|
|
28362
28785
|
} catch (err) {
|
|
28363
28786
|
throw new InvalidResponseError32(
|
|
28364
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28787
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands:200`,
|
|
28365
28788
|
err,
|
|
28366
28789
|
responseValue,
|
|
28367
28790
|
void 0,
|
|
@@ -28394,7 +28817,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28394
28817
|
throw err;
|
|
28395
28818
|
}
|
|
28396
28819
|
throw new InvalidResponseError32(
|
|
28397
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28820
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands:${response.status}`,
|
|
28398
28821
|
err,
|
|
28399
28822
|
responseValue,
|
|
28400
28823
|
"ErrorEnvelope",
|
|
@@ -28418,7 +28841,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28418
28841
|
throw err;
|
|
28419
28842
|
}
|
|
28420
28843
|
throw new InvalidResponseError32(
|
|
28421
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28844
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands:${response.status}`,
|
|
28422
28845
|
err,
|
|
28423
28846
|
responseValue,
|
|
28424
28847
|
"ErrorEnvelope",
|
|
@@ -28453,46 +28876,55 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28453
28876
|
}
|
|
28454
28877
|
}
|
|
28455
28878
|
/**
|
|
28456
|
-
* Gets list of commands to
|
|
28879
|
+
* Gets list of commands to delete metric adapter in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
28457
28880
|
*
|
|
28458
28881
|
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
28459
28882
|
*
|
|
28460
|
-
* @returns {Promise<
|
|
28883
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to delete a metric adapter.
|
|
28461
28884
|
*
|
|
28462
28885
|
* @example <caption>Code example</caption>
|
|
28463
28886
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28464
28887
|
*
|
|
28465
28888
|
* const data =
|
|
28466
|
-
* await syntheticLocationsNodesAndConfigurationClient.
|
|
28889
|
+
* await syntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands();
|
|
28467
28890
|
*
|
|
28468
28891
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28469
28892
|
* @throws {InvalidResponseError}
|
|
28470
28893
|
* @throws {ApiClientError}
|
|
28471
28894
|
* @throws {ClientRequestError}
|
|
28472
28895
|
*/
|
|
28473
|
-
async
|
|
28896
|
+
async getMetricAdapterDeploymentDeleteCommands(config = {}) {
|
|
28474
28897
|
if (!config) {
|
|
28475
28898
|
throw new ApiClientError32("API client error", "API client call is missing mandatory config parameter");
|
|
28476
28899
|
}
|
|
28477
|
-
const query = toQueryString({
|
|
28478
|
-
platform: config.platform,
|
|
28479
|
-
namespace: config.namespace,
|
|
28480
|
-
filename: config.filename,
|
|
28481
|
-
fipsMode: config.fipsMode,
|
|
28482
|
-
squidProxyConfig: config.squidProxyConfig
|
|
28483
|
-
});
|
|
28900
|
+
const query = toQueryString({ platform: config.platform, filename: config.filename });
|
|
28484
28901
|
try {
|
|
28485
|
-
await this.httpClient.send({
|
|
28486
|
-
url: `/platform/classic/environment-api/v2/synthetic/locations/commands/
|
|
28902
|
+
const response = await this.httpClient.send({
|
|
28903
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/metricAdapter/commands/delete${query}`,
|
|
28487
28904
|
method: "GET",
|
|
28905
|
+
headers: {
|
|
28906
|
+
Accept: "text/plain, application/json"
|
|
28907
|
+
},
|
|
28488
28908
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28489
28909
|
statusValidator: (status) => {
|
|
28490
28910
|
return [200].includes(status);
|
|
28491
28911
|
}
|
|
28492
28912
|
});
|
|
28493
|
-
|
|
28913
|
+
const responseValue = await response.body("text");
|
|
28914
|
+
try {
|
|
28915
|
+
return responseValue;
|
|
28916
|
+
} catch (err) {
|
|
28917
|
+
throw new InvalidResponseError32(
|
|
28918
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands:200`,
|
|
28919
|
+
err,
|
|
28920
|
+
responseValue,
|
|
28921
|
+
void 0,
|
|
28922
|
+
void 0,
|
|
28923
|
+
response
|
|
28924
|
+
);
|
|
28925
|
+
}
|
|
28494
28926
|
} catch (e) {
|
|
28495
|
-
if (isHttpClientAbortError32(e)) {
|
|
28927
|
+
if (isHttpClientAbortError32(e) || isInvalidResponseError31(e)) {
|
|
28496
28928
|
throw e;
|
|
28497
28929
|
}
|
|
28498
28930
|
if (!isHttpClientResponseError32(e)) {
|
|
@@ -28516,7 +28948,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28516
28948
|
throw err;
|
|
28517
28949
|
}
|
|
28518
28950
|
throw new InvalidResponseError32(
|
|
28519
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28951
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands:${response.status}`,
|
|
28520
28952
|
err,
|
|
28521
28953
|
responseValue,
|
|
28522
28954
|
"ErrorEnvelope",
|
|
@@ -28540,7 +28972,138 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28540
28972
|
throw err;
|
|
28541
28973
|
}
|
|
28542
28974
|
throw new InvalidResponseError32(
|
|
28543
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28975
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands:${response.status}`,
|
|
28976
|
+
err,
|
|
28977
|
+
responseValue,
|
|
28978
|
+
"ErrorEnvelope",
|
|
28979
|
+
void 0,
|
|
28980
|
+
response
|
|
28981
|
+
);
|
|
28982
|
+
}
|
|
28983
|
+
} else {
|
|
28984
|
+
try {
|
|
28985
|
+
const responseValue = await response.body("json");
|
|
28986
|
+
throw new ClientRequestError38(
|
|
28987
|
+
`${response.status}`,
|
|
28988
|
+
response,
|
|
28989
|
+
responseValue,
|
|
28990
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28991
|
+
);
|
|
28992
|
+
} catch (error) {
|
|
28993
|
+
if (error instanceof ClientRequestError38) {
|
|
28994
|
+
throw error;
|
|
28995
|
+
}
|
|
28996
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28997
|
+
throw new InvalidResponseError32(
|
|
28998
|
+
`${response.status}`,
|
|
28999
|
+
error,
|
|
29000
|
+
responseValue,
|
|
29001
|
+
"json",
|
|
29002
|
+
"Unexpected api response",
|
|
29003
|
+
response
|
|
29004
|
+
);
|
|
29005
|
+
}
|
|
29006
|
+
}
|
|
29007
|
+
}
|
|
29008
|
+
}
|
|
29009
|
+
/**
|
|
29010
|
+
* Gets yaml file content to deploy metric adapter in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
29011
|
+
*
|
|
29012
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29013
|
+
*
|
|
29014
|
+
* @returns {Promise<Binary>} Success. The response contains the content of deployment yaml file.
|
|
29015
|
+
*
|
|
29016
|
+
* @example <caption>Code example</caption>
|
|
29017
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
29018
|
+
*
|
|
29019
|
+
* const data =
|
|
29020
|
+
* await syntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml();
|
|
29021
|
+
*
|
|
29022
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
29023
|
+
* @throws {InvalidResponseError}
|
|
29024
|
+
* @throws {ApiClientError}
|
|
29025
|
+
* @throws {ClientRequestError}
|
|
29026
|
+
*/
|
|
29027
|
+
async getMetricAdapterDeploymentYaml(config = {}) {
|
|
29028
|
+
if (!config) {
|
|
29029
|
+
throw new ApiClientError32("API client error", "API client call is missing mandatory config parameter");
|
|
29030
|
+
}
|
|
29031
|
+
const query = toQueryString({ platform: config.platform, namespace: config.namespace });
|
|
29032
|
+
try {
|
|
29033
|
+
const response = await this.httpClient.send({
|
|
29034
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/metricAdapter/yaml${query}`,
|
|
29035
|
+
method: "GET",
|
|
29036
|
+
headers: {
|
|
29037
|
+
Accept: "application/yaml, application/json"
|
|
29038
|
+
},
|
|
29039
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
29040
|
+
statusValidator: (status) => {
|
|
29041
|
+
return [200].includes(status);
|
|
29042
|
+
}
|
|
29043
|
+
});
|
|
29044
|
+
const responseValue = await response.body("binary");
|
|
29045
|
+
try {
|
|
29046
|
+
return responseValue;
|
|
29047
|
+
} catch (err) {
|
|
29048
|
+
throw new InvalidResponseError32(
|
|
29049
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml:200`,
|
|
29050
|
+
err,
|
|
29051
|
+
responseValue,
|
|
29052
|
+
void 0,
|
|
29053
|
+
void 0,
|
|
29054
|
+
response
|
|
29055
|
+
);
|
|
29056
|
+
}
|
|
29057
|
+
} catch (e) {
|
|
29058
|
+
if (isHttpClientAbortError32(e) || isInvalidResponseError31(e)) {
|
|
29059
|
+
throw e;
|
|
29060
|
+
}
|
|
29061
|
+
if (!isHttpClientResponseError32(e)) {
|
|
29062
|
+
throw new ApiClientError32("UnexpectedError", "Unexpected error", e);
|
|
29063
|
+
}
|
|
29064
|
+
const response = e.response;
|
|
29065
|
+
await apiGatewayErrorsHandler(response);
|
|
29066
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
29067
|
+
const responseValue = await response.body("json");
|
|
29068
|
+
try {
|
|
29069
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
29070
|
+
throw new ErrorEnvelopeError(
|
|
29071
|
+
`${response.status}`,
|
|
29072
|
+
response,
|
|
29073
|
+
errorBody,
|
|
29074
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
29075
|
+
e
|
|
29076
|
+
);
|
|
29077
|
+
} catch (err) {
|
|
29078
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
29079
|
+
throw err;
|
|
29080
|
+
}
|
|
29081
|
+
throw new InvalidResponseError32(
|
|
29082
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml:${response.status}`,
|
|
29083
|
+
err,
|
|
29084
|
+
responseValue,
|
|
29085
|
+
"ErrorEnvelope",
|
|
29086
|
+
void 0,
|
|
29087
|
+
response
|
|
29088
|
+
);
|
|
29089
|
+
}
|
|
29090
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
29091
|
+
const responseValue = await response.body("json");
|
|
29092
|
+
try {
|
|
29093
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
29094
|
+
throw new ErrorEnvelopeError(
|
|
29095
|
+
`${response.status}`,
|
|
29096
|
+
response,
|
|
29097
|
+
errorBody,
|
|
29098
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
29099
|
+
e
|
|
29100
|
+
);
|
|
29101
|
+
} catch (err) {
|
|
29102
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
29103
|
+
throw err;
|
|
29104
|
+
}
|
|
29105
|
+
throw new InvalidResponseError32(
|
|
29106
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml:${response.status}`,
|
|
28544
29107
|
err,
|
|
28545
29108
|
responseValue,
|
|
28546
29109
|
"ErrorEnvelope",
|
|
@@ -29206,11 +29769,11 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29206
29769
|
}
|
|
29207
29770
|
}
|
|
29208
29771
|
/**
|
|
29209
|
-
* Gets list of commands to delete synthetic location in Kubernetes/Openshift cluster
|
|
29772
|
+
* Gets list of commands to delete synthetic location in Kubernetes/Openshift cluster
|
|
29210
29773
|
*
|
|
29211
29774
|
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29212
29775
|
*
|
|
29213
|
-
* @returns {Promise<
|
|
29776
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to delete a synthetic location.
|
|
29214
29777
|
*
|
|
29215
29778
|
* @example <caption>Code example</caption>
|
|
29216
29779
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
@@ -29231,17 +29794,32 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29231
29794
|
}
|
|
29232
29795
|
const query = toQueryString({ platform: config.platform, namespace: config.namespace, filename: config.filename });
|
|
29233
29796
|
try {
|
|
29234
|
-
await this.httpClient.send({
|
|
29797
|
+
const response = await this.httpClient.send({
|
|
29235
29798
|
url: `/platform/classic/environment-api/v2/synthetic/locations/${config.locationId}/commands/delete${query}`,
|
|
29236
29799
|
method: "GET",
|
|
29800
|
+
headers: {
|
|
29801
|
+
Accept: "text/plain, application/json"
|
|
29802
|
+
},
|
|
29237
29803
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
29238
29804
|
statusValidator: (status) => {
|
|
29239
29805
|
return [200].includes(status);
|
|
29240
29806
|
}
|
|
29241
29807
|
});
|
|
29242
|
-
|
|
29808
|
+
const responseValue = await response.body("text");
|
|
29809
|
+
try {
|
|
29810
|
+
return responseValue;
|
|
29811
|
+
} catch (err) {
|
|
29812
|
+
throw new InvalidResponseError32(
|
|
29813
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentDeleteCommands:200`,
|
|
29814
|
+
err,
|
|
29815
|
+
responseValue,
|
|
29816
|
+
void 0,
|
|
29817
|
+
void 0,
|
|
29818
|
+
response
|
|
29819
|
+
);
|
|
29820
|
+
}
|
|
29243
29821
|
} catch (e) {
|
|
29244
|
-
if (isHttpClientAbortError32(e)) {
|
|
29822
|
+
if (isHttpClientAbortError32(e) || isInvalidResponseError31(e)) {
|
|
29245
29823
|
throw e;
|
|
29246
29824
|
}
|
|
29247
29825
|
if (!isHttpClientResponseError32(e)) {
|
|
@@ -29324,11 +29902,11 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29324
29902
|
}
|
|
29325
29903
|
}
|
|
29326
29904
|
/**
|
|
29327
|
-
* Gets yaml file content to deploy location in Kubernetes/Openshift cluster
|
|
29905
|
+
* Gets yaml file content to deploy location in Kubernetes/Openshift cluster
|
|
29328
29906
|
*
|
|
29329
29907
|
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29330
29908
|
*
|
|
29331
|
-
* @returns {Promise<
|
|
29909
|
+
* @returns {Promise<Binary>} Success. The response contains the content of deployment yaml file.
|
|
29332
29910
|
*
|
|
29333
29911
|
* @example <caption>Code example</caption>
|
|
29334
29912
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
@@ -29355,17 +29933,32 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29355
29933
|
tagVersionSynthetic: config.tagVersionSynthetic
|
|
29356
29934
|
});
|
|
29357
29935
|
try {
|
|
29358
|
-
await this.httpClient.send({
|
|
29936
|
+
const response = await this.httpClient.send({
|
|
29359
29937
|
url: `/platform/classic/environment-api/v2/synthetic/locations/${config.locationId}/yaml${query}`,
|
|
29360
29938
|
method: "GET",
|
|
29939
|
+
headers: {
|
|
29940
|
+
Accept: "application/yaml, application/json"
|
|
29941
|
+
},
|
|
29361
29942
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
29362
29943
|
statusValidator: (status) => {
|
|
29363
29944
|
return [200].includes(status);
|
|
29364
29945
|
}
|
|
29365
29946
|
});
|
|
29366
|
-
|
|
29947
|
+
const responseValue = await response.body("binary");
|
|
29948
|
+
try {
|
|
29949
|
+
return responseValue;
|
|
29950
|
+
} catch (err) {
|
|
29951
|
+
throw new InvalidResponseError32(
|
|
29952
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentYaml:200`,
|
|
29953
|
+
err,
|
|
29954
|
+
responseValue,
|
|
29955
|
+
void 0,
|
|
29956
|
+
void 0,
|
|
29957
|
+
response
|
|
29958
|
+
);
|
|
29959
|
+
}
|
|
29367
29960
|
} catch (e) {
|
|
29368
|
-
if (isHttpClientAbortError32(e)) {
|
|
29961
|
+
if (isHttpClientAbortError32(e) || isInvalidResponseError31(e)) {
|
|
29369
29962
|
throw e;
|
|
29370
29963
|
}
|
|
29371
29964
|
if (!isHttpClientResponseError32(e)) {
|
|
@@ -29450,7 +30043,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29450
30043
|
/**
|
|
29451
30044
|
* Lists all synthetic nodes available in your environment
|
|
29452
30045
|
*
|
|
29453
|
-
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:
|
|
30046
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:viewer
|
|
29454
30047
|
*
|
|
29455
30048
|
* @returns {Promise<Nodes>} Success
|
|
29456
30049
|
*
|
|
@@ -29739,7 +30332,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29739
30332
|
this.shouldTransformDates = options?.transformDates ?? true;
|
|
29740
30333
|
}
|
|
29741
30334
|
/**
|
|
29742
|
-
* Gets all synthetic monitors. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30335
|
+
* Gets all synthetic monitors. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
29743
30336
|
*
|
|
29744
30337
|
* **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29745
30338
|
*
|
|
@@ -29870,7 +30463,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29870
30463
|
}
|
|
29871
30464
|
}
|
|
29872
30465
|
/**
|
|
29873
|
-
* Creates a synthetic monitor definition. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30466
|
+
* Creates a synthetic monitor definition. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
29874
30467
|
*
|
|
29875
30468
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:manage-settings
|
|
29876
30469
|
*
|
|
@@ -30002,7 +30595,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
30002
30595
|
}
|
|
30003
30596
|
}
|
|
30004
30597
|
/**
|
|
30005
|
-
* Gets a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30598
|
+
* Gets a synthetic monitor definition for the given monitor ID. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30006
30599
|
*
|
|
30007
30600
|
* **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:manage-settings
|
|
30008
30601
|
*
|
|
@@ -30131,7 +30724,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
30131
30724
|
}
|
|
30132
30725
|
}
|
|
30133
30726
|
/**
|
|
30134
|
-
* Updates a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30727
|
+
* Updates a synthetic monitor definition for the given monitor ID. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30135
30728
|
*
|
|
30136
30729
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:manage-settings
|
|
30137
30730
|
*
|
|
@@ -30248,7 +30841,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
30248
30841
|
}
|
|
30249
30842
|
}
|
|
30250
30843
|
/**
|
|
30251
|
-
* Deletes a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30844
|
+
* Deletes a synthetic monitor definition for the given monitor ID. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30252
30845
|
*
|
|
30253
30846
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:manage-settings
|
|
30254
30847
|
*
|
|
@@ -32262,6 +32855,22 @@ var EffectivePermissionGranted = /* @__PURE__ */ ((EffectivePermissionGranted2)
|
|
|
32262
32855
|
return EffectivePermissionGranted2;
|
|
32263
32856
|
})(EffectivePermissionGranted || {});
|
|
32264
32857
|
|
|
32858
|
+
// packages/client/classic-environment-v2/src/lib/models/enablement-dto-origin.ts
|
|
32859
|
+
var EnablementDtoOrigin = /* @__PURE__ */ ((EnablementDtoOrigin2) => {
|
|
32860
|
+
EnablementDtoOrigin2["Monitor"] = "MONITOR";
|
|
32861
|
+
EnablementDtoOrigin2["Tenant"] = "TENANT";
|
|
32862
|
+
EnablementDtoOrigin2["Default"] = "DEFAULT";
|
|
32863
|
+
EnablementDtoOrigin2["Unknown"] = "UNKNOWN";
|
|
32864
|
+
return EnablementDtoOrigin2;
|
|
32865
|
+
})(EnablementDtoOrigin || {});
|
|
32866
|
+
|
|
32867
|
+
// packages/client/classic-environment-v2/src/lib/models/enablement-dto-performance-metric.ts
|
|
32868
|
+
var EnablementDtoPerformanceMetric = /* @__PURE__ */ ((EnablementDtoPerformanceMetric2) => {
|
|
32869
|
+
EnablementDtoPerformanceMetric2["ClassicTotalDuration"] = "classic.total_duration";
|
|
32870
|
+
EnablementDtoPerformanceMetric2["Duration"] = "duration";
|
|
32871
|
+
return EnablementDtoPerformanceMetric2;
|
|
32872
|
+
})(EnablementDtoPerformanceMetric || {});
|
|
32873
|
+
|
|
32265
32874
|
// packages/client/classic-environment-v2/src/lib/models/entry-point-usage-segment-segment-type.ts
|
|
32266
32875
|
var EntryPointUsageSegmentSegmentType = /* @__PURE__ */ ((EntryPointUsageSegmentSegmentType2) => {
|
|
32267
32876
|
EntryPointUsageSegmentSegmentType2["MaliciousInput"] = "MALICIOUS_INPUT";
|
|
@@ -33497,6 +34106,22 @@ var SchemaConstraintRestDtoType = /* @__PURE__ */ ((SchemaConstraintRestDtoType2
|
|
|
33497
34106
|
return SchemaConstraintRestDtoType2;
|
|
33498
34107
|
})(SchemaConstraintRestDtoType || {});
|
|
33499
34108
|
|
|
34109
|
+
// packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-maturity.ts
|
|
34110
|
+
var SchemaDefinitionRestDtoMaturity = /* @__PURE__ */ ((SchemaDefinitionRestDtoMaturity2) => {
|
|
34111
|
+
SchemaDefinitionRestDtoMaturity2["EarlyAdopter"] = "EARLY_ADOPTER";
|
|
34112
|
+
SchemaDefinitionRestDtoMaturity2["GeneralAvailability"] = "GENERAL_AVAILABILITY";
|
|
34113
|
+
SchemaDefinitionRestDtoMaturity2["Preview"] = "PREVIEW";
|
|
34114
|
+
return SchemaDefinitionRestDtoMaturity2;
|
|
34115
|
+
})(SchemaDefinitionRestDtoMaturity || {});
|
|
34116
|
+
|
|
34117
|
+
// packages/client/classic-environment-v2/src/lib/models/schema-stub-maturity.ts
|
|
34118
|
+
var SchemaStubMaturity = /* @__PURE__ */ ((SchemaStubMaturity2) => {
|
|
34119
|
+
SchemaStubMaturity2["EarlyAdopter"] = "EARLY_ADOPTER";
|
|
34120
|
+
SchemaStubMaturity2["GeneralAvailability"] = "GENERAL_AVAILABILITY";
|
|
34121
|
+
SchemaStubMaturity2["Preview"] = "PREVIEW";
|
|
34122
|
+
return SchemaStubMaturity2;
|
|
34123
|
+
})(SchemaStubMaturity || {});
|
|
34124
|
+
|
|
33500
34125
|
// packages/client/classic-environment-v2/src/lib/models/schema-type-type.ts
|
|
33501
34126
|
var SchemaTypeType = /* @__PURE__ */ ((SchemaTypeType2) => {
|
|
33502
34127
|
SchemaTypeType2["Object"] = "object";
|
|
@@ -33545,6 +34170,8 @@ var SecurityProblemEventReason = /* @__PURE__ */ ((SecurityProblemEventReason2)
|
|
|
33545
34170
|
SecurityProblemEventReason2["SecurityProblemReopened"] = "SECURITY_PROBLEM_REOPENED";
|
|
33546
34171
|
SecurityProblemEventReason2["SecurityProblemResolved"] = "SECURITY_PROBLEM_RESOLVED";
|
|
33547
34172
|
SecurityProblemEventReason2["SecurityProblemUnmuted"] = "SECURITY_PROBLEM_UNMUTED";
|
|
34173
|
+
SecurityProblemEventReason2["VulnerabilityDiscontinued"] = "VULNERABILITY_DISCONTINUED";
|
|
34174
|
+
SecurityProblemEventReason2["VulnerabilityIdChanged"] = "VULNERABILITY_ID_CHANGED";
|
|
33548
34175
|
return SecurityProblemEventReason2;
|
|
33549
34176
|
})(SecurityProblemEventReason || {});
|
|
33550
34177
|
|
|
@@ -33635,6 +34262,13 @@ var SLOStatus = /* @__PURE__ */ ((SLOStatus2) => {
|
|
|
33635
34262
|
return SLOStatus2;
|
|
33636
34263
|
})(SLOStatus || {});
|
|
33637
34264
|
|
|
34265
|
+
// packages/client/classic-environment-v2/src/lib/models/store-log-query-structure.ts
|
|
34266
|
+
var StoreLogQueryStructure = /* @__PURE__ */ ((StoreLogQueryStructure2) => {
|
|
34267
|
+
StoreLogQueryStructure2["Flattened"] = "flattened";
|
|
34268
|
+
StoreLogQueryStructure2["Raw"] = "raw";
|
|
34269
|
+
return StoreLogQueryStructure2;
|
|
34270
|
+
})(StoreLogQueryStructure || {});
|
|
34271
|
+
|
|
33638
34272
|
// packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-request-type.ts
|
|
33639
34273
|
var SyntheticBrowserMonitorRequestType = /* @__PURE__ */ ((SyntheticBrowserMonitorRequestType2) => {
|
|
33640
34274
|
SyntheticBrowserMonitorRequestType2["MultiProtocol"] = "MULTI_PROTOCOL";
|
|
@@ -33684,6 +34318,15 @@ var SyntheticLocationUpdateType = /* @__PURE__ */ ((SyntheticLocationUpdateType2
|
|
|
33684
34318
|
return SyntheticLocationUpdateType2;
|
|
33685
34319
|
})(SyntheticLocationUpdateType || {});
|
|
33686
34320
|
|
|
34321
|
+
// packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto-origin.ts
|
|
34322
|
+
var SyntheticMonitorOutageHandlingSettingsDtoOrigin = /* @__PURE__ */ ((SyntheticMonitorOutageHandlingSettingsDtoOrigin2) => {
|
|
34323
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Monitor"] = "MONITOR";
|
|
34324
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Tenant"] = "TENANT";
|
|
34325
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Default"] = "DEFAULT";
|
|
34326
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Unknown"] = "UNKNOWN";
|
|
34327
|
+
return SyntheticMonitorOutageHandlingSettingsDtoOrigin2;
|
|
34328
|
+
})(SyntheticMonitorOutageHandlingSettingsDtoOrigin || {});
|
|
34329
|
+
|
|
33687
34330
|
// packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-aggregation.ts
|
|
33688
34331
|
var SyntheticMonitorPerformanceThresholdDtoAggregation = /* @__PURE__ */ ((SyntheticMonitorPerformanceThresholdDtoAggregation2) => {
|
|
33689
34332
|
SyntheticMonitorPerformanceThresholdDtoAggregation2["Avg"] = "AVG";
|
|
@@ -33953,6 +34596,8 @@ export {
|
|
|
33953
34596
|
DavisSecurityAdvisorClient,
|
|
33954
34597
|
DeletionConstraintType,
|
|
33955
34598
|
EffectivePermissionGranted,
|
|
34599
|
+
EnablementDtoOrigin,
|
|
34600
|
+
EnablementDtoPerformanceMetric,
|
|
33956
34601
|
EntryPointUsageSegmentSegmentType,
|
|
33957
34602
|
EntryPointUsageSegmentSourceType,
|
|
33958
34603
|
EntrypointPayloadType,
|
|
@@ -34096,6 +34741,8 @@ export {
|
|
|
34096
34741
|
SLOEvaluationType,
|
|
34097
34742
|
SLOStatus,
|
|
34098
34743
|
SchemaConstraintRestDtoType,
|
|
34744
|
+
SchemaDefinitionRestDtoMaturity,
|
|
34745
|
+
SchemaStubMaturity,
|
|
34099
34746
|
SchemaTypeType,
|
|
34100
34747
|
SecurityProblemBulkMutingSummaryReason,
|
|
34101
34748
|
SecurityProblemDetailsStatus,
|
|
@@ -34118,6 +34765,7 @@ export {
|
|
|
34118
34765
|
SettingsSchemasClient,
|
|
34119
34766
|
SloBurnRateBurnRateType,
|
|
34120
34767
|
SloConfigItemDtoImplEvaluationType,
|
|
34768
|
+
StoreLogQueryStructure,
|
|
34121
34769
|
SyntheticBrowserMonitorRequestType,
|
|
34122
34770
|
SyntheticBrowserMonitorResponseType,
|
|
34123
34771
|
SyntheticBrowserMonitorStepDtoType,
|
|
@@ -34126,6 +34774,7 @@ export {
|
|
|
34126
34774
|
SyntheticLocationType,
|
|
34127
34775
|
SyntheticLocationUpdateType,
|
|
34128
34776
|
SyntheticLocationsNodesAndConfigurationClient,
|
|
34777
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin,
|
|
34129
34778
|
SyntheticMonitorPerformanceThresholdDtoAggregation,
|
|
34130
34779
|
SyntheticMonitorPerformanceThresholdDtoType,
|
|
34131
34780
|
SyntheticMonitorSummaryDtoType,
|