@dynatrace-sdk/client-classic-environment-v2 4.2.1 → 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 +32 -0
- package/README.md +1898 -547
- package/cjs/index.js +1232 -219
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +1173 -160
- package/package.json +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +24 -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 +3 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +45 -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/rum-manual-insertion-tags-api.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +8 -3
- 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 +83 -11
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +13 -11
- 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/asset-info-dto-type.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/authentication-dto-input-type.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/authentication-dto-type.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/authentication-dto.d.ts +24 -0
- 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/base-wait-condition-dto-type.d.ts +18 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/base-wait-condition-dto.d.ts +15 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/browser-permissions-dto.d.ts +21 -0
- 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-autoplay-policy.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/chromium-startup-flags-dto-disable-features.d.ts +6 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/chromium-startup-flags-dto.d.ts +42 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/client-certificate-dto.d.ts +13 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/complex-constraint.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/constraint.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/cookie-step-dto.d.ts +11 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/credentials-details-list.d.ts +11 -0
- 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/deletion-constraint.d.ts +4 -0
- 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/enriched-management-zone-dto.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/enriched-tag-dto.d.ts +32 -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/entity.d.ts +4 -4
- 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-event-type.d.ts +2 -1
- 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/event-ingest.d.ts +2 -2
- 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/filtered-requests-dto-mode.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/filtered-requests-dto.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/framework-options-dto.d.ts +37 -0
- 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/history-modification-info.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/ignored-error-codes-dto.d.ts +13 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +67 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/interaction-step-dto.d.ts +25 -0
- 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-agent-settings-dto.d.ts +44 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/java-script-step-dto.d.ts +20 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/key-performance-metrics-load-action-kpm.d.ts +17 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/key-performance-metrics-xhr-action-kpm.d.ts +11 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/key-performance-metrics.d.ts +13 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/key-strokes-step-dto.d.ts +34 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/keystrokes-input-dto-type.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/keystrokes-input-dto.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/locator-dto-type.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/locator-dto.d.ts +13 -0
- 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/monitor-property-dto.d.ts +13 -0
- 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 +30 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/network-throttling-dto.d.ts +21 -0
- 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 +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/plain-keystrokes-input-dto.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-fips-mode.d.ts +15 -0
- 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/private-synthetic-location.d.ts +9 -0
- 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/proxy-dto.d.ts +9 -0
- 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/request-filter-dto-type.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/request-filter-dto.d.ts +13 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/request-header-options-dto.d.ts +14 -0
- 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 +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/secure-keystrokes-input-dto.d.ts +14 -0
- 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 +26 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/selection-dto.d.ts +13 -0
- 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 +90 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-request-type.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-request.d.ts +70 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-response-type.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-response.d.ts +82 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-step-dto-type.d.ts +22 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-step-dto.d.ts +25 -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-cookie-dto.d.ts +21 -0
- 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-type.d.ts +2 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-request.d.ts +6 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-response-type.d.ts +1 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-response.d.ts +8 -3
- 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-on-demand-execution.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-triggering-problem-details.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-private-location-update.d.ts +12 -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/target-dto.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/test-device-dto.d.ts +25 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/time-wait-condition-dto.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/timeout-settings-dto.d.ts +13 -0
- 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-rule-dto-type.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/validation-rule-dto.d.ts +26 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/validation-wait-condition-dto.d.ts +15 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/visually-complete-options-dto.d.ts +25 -0
- 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/cjs/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
|
|
@@ -76,8 +76,12 @@ __export(src_exports, {
|
|
|
76
76
|
AuditLogEntryEventType: () => AuditLogEntryEventType,
|
|
77
77
|
AuditLogEntryUserType: () => AuditLogEntryUserType,
|
|
78
78
|
AuditLogsClient: () => AuditLogsClient,
|
|
79
|
+
AuthenticationDtoInputType: () => AuthenticationDtoInputType,
|
|
80
|
+
AuthenticationDtoType: () => AuthenticationDtoType,
|
|
81
|
+
BaseWaitConditionDtoType: () => BaseWaitConditionDtoType,
|
|
79
82
|
BizEventIngestResultError: () => BizEventIngestResultError,
|
|
80
83
|
BusinessEventsClient: () => BusinessEventsClient,
|
|
84
|
+
ChromiumStartupFlagsDtoAutoplayPolicy: () => ChromiumStartupFlagsDtoAutoplayPolicy,
|
|
81
85
|
ClientRequestError: () => import_shared_errors42.ClientRequestError,
|
|
82
86
|
CodeLevelVulnerabilityDetailsType: () => CodeLevelVulnerabilityDetailsType,
|
|
83
87
|
ComplexConstraintType: () => ComplexConstraintType,
|
|
@@ -98,6 +102,8 @@ __export(src_exports, {
|
|
|
98
102
|
DavisSecurityAdvisorClient: () => DavisSecurityAdvisorClient,
|
|
99
103
|
DeletionConstraintType: () => DeletionConstraintType,
|
|
100
104
|
EffectivePermissionGranted: () => EffectivePermissionGranted,
|
|
105
|
+
EnablementDtoOrigin: () => EnablementDtoOrigin,
|
|
106
|
+
EnablementDtoPerformanceMetric: () => EnablementDtoPerformanceMetric,
|
|
101
107
|
EntryPointUsageSegmentSegmentType: () => EntryPointUsageSegmentSegmentType,
|
|
102
108
|
EntryPointUsageSegmentSourceType: () => EntryPointUsageSegmentSourceType,
|
|
103
109
|
EntrypointPayloadType: () => EntrypointPayloadType,
|
|
@@ -119,6 +125,7 @@ __export(src_exports, {
|
|
|
119
125
|
ExternalVaultConfigType: () => ExternalVaultConfigType,
|
|
120
126
|
ExternalVaultSourceAuthMethod: () => ExternalVaultSourceAuthMethod,
|
|
121
127
|
FilterType: () => FilterType,
|
|
128
|
+
FilteredRequestsDtoMode: () => FilteredRequestsDtoMode,
|
|
122
129
|
GetAllActiveGatesQueryAutoUpdate: () => GetAllActiveGatesQueryAutoUpdate,
|
|
123
130
|
GetAllActiveGatesQueryDisabledModuleItem: () => GetAllActiveGatesQueryDisabledModuleItem,
|
|
124
131
|
GetAllActiveGatesQueryEnabledModuleItem: () => GetAllActiveGatesQueryEnabledModuleItem,
|
|
@@ -155,12 +162,16 @@ __export(src_exports, {
|
|
|
155
162
|
IdentityType: () => IdentityType,
|
|
156
163
|
ImpactImpactType: () => ImpactImpactType,
|
|
157
164
|
InvalidResponseError: () => import_shared_errors42.InvalidResponseError,
|
|
165
|
+
KeyPerformanceMetricsLoadActionKpm: () => KeyPerformanceMetricsLoadActionKpm,
|
|
166
|
+
KeyPerformanceMetricsXhrActionKpm: () => KeyPerformanceMetricsXhrActionKpm,
|
|
167
|
+
KeystrokesInputDtoType: () => KeystrokesInputDtoType,
|
|
158
168
|
ListCredentialsQueryType: () => ListCredentialsQueryType,
|
|
159
169
|
LocationCollectionElementCloudPlatform: () => LocationCollectionElementCloudPlatform,
|
|
160
170
|
LocationCollectionElementDeploymentType: () => LocationCollectionElementDeploymentType,
|
|
161
171
|
LocationCollectionElementStage: () => LocationCollectionElementStage,
|
|
162
172
|
LocationCollectionElementStatus: () => LocationCollectionElementStatus,
|
|
163
173
|
LocationCollectionElementType: () => LocationCollectionElementType,
|
|
174
|
+
LocatorDtoType: () => LocatorDtoType,
|
|
164
175
|
LogRecordEventType: () => LogRecordEventType,
|
|
165
176
|
LogRecordStatus: () => LogRecordStatus,
|
|
166
177
|
LogsClient: () => LogsClient,
|
|
@@ -183,6 +194,7 @@ __export(src_exports, {
|
|
|
183
194
|
NetworkZonesClient: () => NetworkZonesClient,
|
|
184
195
|
PreconditionType: () => PreconditionType,
|
|
185
196
|
PrivateSyntheticLocationDeploymentType: () => PrivateSyntheticLocationDeploymentType,
|
|
197
|
+
PrivateSyntheticLocationFipsMode: () => PrivateSyntheticLocationFipsMode,
|
|
186
198
|
PrivateSyntheticLocationStatus: () => PrivateSyntheticLocationStatus,
|
|
187
199
|
PrivateSyntheticLocationType: () => PrivateSyntheticLocationType,
|
|
188
200
|
ProblemImpactLevel: () => ProblemImpactLevel,
|
|
@@ -206,6 +218,7 @@ __export(src_exports, {
|
|
|
206
218
|
RemediationProgressEntityAssessmentVulnerableFunctionUsage: () => RemediationProgressEntityAssessmentVulnerableFunctionUsage,
|
|
207
219
|
RemediationProgressEntityState: () => RemediationProgressEntityState,
|
|
208
220
|
RemovePermissionPathAccessorType: () => RemovePermissionPathAccessorType,
|
|
221
|
+
RequestFilterDtoType: () => RequestFilterDtoType,
|
|
209
222
|
ResourceContextOperationsItem: () => ResourceContextOperationsItem,
|
|
210
223
|
RevisionDiffType: () => RevisionDiffType,
|
|
211
224
|
RiskAssessmentAssessmentAccuracy: () => RiskAssessmentAssessmentAccuracy,
|
|
@@ -234,6 +247,8 @@ __export(src_exports, {
|
|
|
234
247
|
SLOEvaluationType: () => SLOEvaluationType,
|
|
235
248
|
SLOStatus: () => SLOStatus,
|
|
236
249
|
SchemaConstraintRestDtoType: () => SchemaConstraintRestDtoType,
|
|
250
|
+
SchemaDefinitionRestDtoMaturity: () => SchemaDefinitionRestDtoMaturity,
|
|
251
|
+
SchemaStubMaturity: () => SchemaStubMaturity,
|
|
237
252
|
SchemaTypeType: () => SchemaTypeType,
|
|
238
253
|
SecurityProblemBulkMutingSummaryReason: () => SecurityProblemBulkMutingSummaryReason,
|
|
239
254
|
SecurityProblemDetailsStatus: () => SecurityProblemDetailsStatus,
|
|
@@ -256,11 +271,16 @@ __export(src_exports, {
|
|
|
256
271
|
SettingsSchemasClient: () => SettingsSchemasClient,
|
|
257
272
|
SloBurnRateBurnRateType: () => SloBurnRateBurnRateType,
|
|
258
273
|
SloConfigItemDtoImplEvaluationType: () => SloConfigItemDtoImplEvaluationType,
|
|
274
|
+
StoreLogQueryStructure: () => StoreLogQueryStructure,
|
|
275
|
+
SyntheticBrowserMonitorRequestType: () => SyntheticBrowserMonitorRequestType,
|
|
276
|
+
SyntheticBrowserMonitorResponseType: () => SyntheticBrowserMonitorResponseType,
|
|
277
|
+
SyntheticBrowserMonitorStepDtoType: () => SyntheticBrowserMonitorStepDtoType,
|
|
259
278
|
SyntheticHttpMonitorExecutionsClient: () => SyntheticHttpMonitorExecutionsClient,
|
|
260
279
|
SyntheticLocationStatus: () => SyntheticLocationStatus,
|
|
261
280
|
SyntheticLocationType: () => SyntheticLocationType,
|
|
262
281
|
SyntheticLocationUpdateType: () => SyntheticLocationUpdateType,
|
|
263
282
|
SyntheticLocationsNodesAndConfigurationClient: () => SyntheticLocationsNodesAndConfigurationClient,
|
|
283
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin: () => SyntheticMonitorOutageHandlingSettingsDtoOrigin,
|
|
264
284
|
SyntheticMonitorPerformanceThresholdDtoAggregation: () => SyntheticMonitorPerformanceThresholdDtoAggregation,
|
|
265
285
|
SyntheticMonitorPerformanceThresholdDtoType: () => SyntheticMonitorPerformanceThresholdDtoType,
|
|
266
286
|
SyntheticMonitorSummaryDtoType: () => SyntheticMonitorSummaryDtoType,
|
|
@@ -284,6 +304,7 @@ __export(src_exports, {
|
|
|
284
304
|
UpdatePermissionPathAccessorType: () => UpdatePermissionPathAccessorType,
|
|
285
305
|
UpdatePermissionsRequestPermissionsItem: () => UpdatePermissionsRequestPermissionsItem,
|
|
286
306
|
ValidationResponseError: () => ValidationResponseError,
|
|
307
|
+
ValidationRuleDtoType: () => ValidationRuleDtoType,
|
|
287
308
|
VulnerableFunctionInputSegmentType: () => VulnerableFunctionInputSegmentType,
|
|
288
309
|
VulnerableFunctionInputType: () => VulnerableFunctionInputType,
|
|
289
310
|
VulnerableFunctionProcessGroupsUsage: () => VulnerableFunctionProcessGroupsUsage,
|
|
@@ -1532,6 +1553,7 @@ function mimeTypeToEncoding(mimeType, defaultEncoding) {
|
|
|
1532
1553
|
case "text/plain":
|
|
1533
1554
|
return "text" /* Text */;
|
|
1534
1555
|
case "application/octet-stream":
|
|
1556
|
+
case "application/yaml":
|
|
1535
1557
|
return "binary" /* Binary */;
|
|
1536
1558
|
case "multipart/form-data":
|
|
1537
1559
|
return "form-data" /* FormData */;
|
|
@@ -7285,7 +7307,7 @@ var CredentialVaultClient = class {
|
|
|
7285
7307
|
/**
|
|
7286
7308
|
* Gets the details of the specified credentials set.
|
|
7287
7309
|
*
|
|
7288
|
-
* **Required scope:** environment-api:credentials:read<br/><br/>The credentials set including username/certificate, password or token is included in the response.
|
|
7310
|
+
* **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.
|
|
7289
7311
|
*
|
|
7290
7312
|
* @returns {Promise<AbstractCredentialsResponseElement>} Success. The response contains the details of the credentials set.
|
|
7291
7313
|
*
|
|
@@ -7422,6 +7444,197 @@ var CredentialVaultClient = class {
|
|
|
7422
7444
|
}
|
|
7423
7445
|
}
|
|
7424
7446
|
}
|
|
7447
|
+
/**
|
|
7448
|
+
* Gets the details of the specified credentials sets.
|
|
7449
|
+
*
|
|
7450
|
+
* The credentials set including username/certificate, password or token is included in the response.
|
|
7451
|
+
*
|
|
7452
|
+
* @returns {Promise<CredentialsDetailsList>} Success. The response contains the details of the credentials sets.
|
|
7453
|
+
*
|
|
7454
|
+
* @example <caption>Code example</caption>
|
|
7455
|
+
* import { credentialVaultClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
7456
|
+
*
|
|
7457
|
+
* const data =
|
|
7458
|
+
* await credentialVaultClient.getCredentialsDetailsList();
|
|
7459
|
+
*
|
|
7460
|
+
* @throws {ErrorEnvelopeError} Failed. The input is invalid. E.g. Requested credentials with unsupported scope. Only SYNTHETIC and APP_ENGINE scope are supported. | Failed. Requested credentials belong to another user. | Client side error. | Server side error.
|
|
7461
|
+
* @throws {InvalidResponseError}
|
|
7462
|
+
* @throws {ApiClientError}
|
|
7463
|
+
* @throws {ClientRequestError}
|
|
7464
|
+
*/
|
|
7465
|
+
async getCredentialsDetailsList(config = {}) {
|
|
7466
|
+
if (!config) {
|
|
7467
|
+
throw new import_shared_errors15.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
7468
|
+
}
|
|
7469
|
+
const query = toQueryString({ ids: config.ids });
|
|
7470
|
+
try {
|
|
7471
|
+
const response = await this.httpClient.send({
|
|
7472
|
+
url: `/platform/classic/environment-api/v2/credentials/details${query}`,
|
|
7473
|
+
method: "GET",
|
|
7474
|
+
headers: {
|
|
7475
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
7476
|
+
},
|
|
7477
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
7478
|
+
statusValidator: (status) => {
|
|
7479
|
+
return [200].includes(status);
|
|
7480
|
+
}
|
|
7481
|
+
});
|
|
7482
|
+
const responseValue = await response.body("json");
|
|
7483
|
+
try {
|
|
7484
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
7485
|
+
} catch (err) {
|
|
7486
|
+
throw new import_shared_errors15.InvalidResponseError(
|
|
7487
|
+
`CredentialVaultClient.getCredentialsDetailsList:200`,
|
|
7488
|
+
err,
|
|
7489
|
+
responseValue,
|
|
7490
|
+
void 0,
|
|
7491
|
+
void 0,
|
|
7492
|
+
response
|
|
7493
|
+
);
|
|
7494
|
+
}
|
|
7495
|
+
} catch (e) {
|
|
7496
|
+
if ((0, import_http_client12.isHttpClientAbortError)(e) || (0, import_shared_errors15.isInvalidResponseError)(e)) {
|
|
7497
|
+
throw e;
|
|
7498
|
+
}
|
|
7499
|
+
if (!(0, import_http_client12.isHttpClientResponseError)(e)) {
|
|
7500
|
+
throw new import_shared_errors15.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
7501
|
+
}
|
|
7502
|
+
const response = e.response;
|
|
7503
|
+
await apiGatewayErrorsHandler(response);
|
|
7504
|
+
switch (response.status) {
|
|
7505
|
+
case 400: {
|
|
7506
|
+
const responseValue = await response.body("json");
|
|
7507
|
+
try {
|
|
7508
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
7509
|
+
throw new ErrorEnvelopeError(
|
|
7510
|
+
`400`,
|
|
7511
|
+
response,
|
|
7512
|
+
errorBody,
|
|
7513
|
+
getErrorMessage(
|
|
7514
|
+
errorBody,
|
|
7515
|
+
"Failed. The input is invalid. E.g. Requested credentials with unsupported scope. Only SYNTHETIC and APP_ENGINE scope are supported."
|
|
7516
|
+
),
|
|
7517
|
+
e
|
|
7518
|
+
);
|
|
7519
|
+
} catch (err) {
|
|
7520
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
7521
|
+
throw err;
|
|
7522
|
+
}
|
|
7523
|
+
throw new import_shared_errors15.InvalidResponseError(
|
|
7524
|
+
`CredentialVaultClient.getCredentialsDetailsList:400`,
|
|
7525
|
+
err,
|
|
7526
|
+
responseValue,
|
|
7527
|
+
"ErrorEnvelope",
|
|
7528
|
+
void 0,
|
|
7529
|
+
response
|
|
7530
|
+
);
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7533
|
+
case 403: {
|
|
7534
|
+
const responseValue = await response.body("json");
|
|
7535
|
+
try {
|
|
7536
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
7537
|
+
throw new ErrorEnvelopeError(
|
|
7538
|
+
`403`,
|
|
7539
|
+
response,
|
|
7540
|
+
errorBody,
|
|
7541
|
+
getErrorMessage(errorBody, "Failed. Requested credentials belong to another user."),
|
|
7542
|
+
e
|
|
7543
|
+
);
|
|
7544
|
+
} catch (err) {
|
|
7545
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
7546
|
+
throw err;
|
|
7547
|
+
}
|
|
7548
|
+
throw new import_shared_errors15.InvalidResponseError(
|
|
7549
|
+
`CredentialVaultClient.getCredentialsDetailsList:403`,
|
|
7550
|
+
err,
|
|
7551
|
+
responseValue,
|
|
7552
|
+
"ErrorEnvelope",
|
|
7553
|
+
void 0,
|
|
7554
|
+
response
|
|
7555
|
+
);
|
|
7556
|
+
}
|
|
7557
|
+
}
|
|
7558
|
+
default: {
|
|
7559
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
7560
|
+
const responseValue = await response.body("json");
|
|
7561
|
+
try {
|
|
7562
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
7563
|
+
throw new ErrorEnvelopeError(
|
|
7564
|
+
`${response.status}`,
|
|
7565
|
+
response,
|
|
7566
|
+
errorBody,
|
|
7567
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
7568
|
+
e
|
|
7569
|
+
);
|
|
7570
|
+
} catch (err) {
|
|
7571
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
7572
|
+
throw err;
|
|
7573
|
+
}
|
|
7574
|
+
throw new import_shared_errors15.InvalidResponseError(
|
|
7575
|
+
`CredentialVaultClient.getCredentialsDetailsList:${response.status}`,
|
|
7576
|
+
err,
|
|
7577
|
+
responseValue,
|
|
7578
|
+
"ErrorEnvelope",
|
|
7579
|
+
void 0,
|
|
7580
|
+
response
|
|
7581
|
+
);
|
|
7582
|
+
}
|
|
7583
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
7584
|
+
const responseValue = await response.body("json");
|
|
7585
|
+
try {
|
|
7586
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
7587
|
+
throw new ErrorEnvelopeError(
|
|
7588
|
+
`${response.status}`,
|
|
7589
|
+
response,
|
|
7590
|
+
errorBody,
|
|
7591
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
7592
|
+
e
|
|
7593
|
+
);
|
|
7594
|
+
} catch (err) {
|
|
7595
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
7596
|
+
throw err;
|
|
7597
|
+
}
|
|
7598
|
+
throw new import_shared_errors15.InvalidResponseError(
|
|
7599
|
+
`CredentialVaultClient.getCredentialsDetailsList:${response.status}`,
|
|
7600
|
+
err,
|
|
7601
|
+
responseValue,
|
|
7602
|
+
"ErrorEnvelope",
|
|
7603
|
+
void 0,
|
|
7604
|
+
response
|
|
7605
|
+
);
|
|
7606
|
+
}
|
|
7607
|
+
} else {
|
|
7608
|
+
try {
|
|
7609
|
+
const responseValue = await response.body("json");
|
|
7610
|
+
throw new import_shared_errors15.ClientRequestError(
|
|
7611
|
+
`${response.status}`,
|
|
7612
|
+
response,
|
|
7613
|
+
responseValue,
|
|
7614
|
+
getErrorMessage(
|
|
7615
|
+
responseValue,
|
|
7616
|
+
`Unexpected api response: code=${response.status} body="${responseValue}"`
|
|
7617
|
+
)
|
|
7618
|
+
);
|
|
7619
|
+
} catch (error) {
|
|
7620
|
+
if (error instanceof import_shared_errors15.ClientRequestError) {
|
|
7621
|
+
throw error;
|
|
7622
|
+
}
|
|
7623
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
7624
|
+
throw new import_shared_errors15.InvalidResponseError(
|
|
7625
|
+
`${response.status}`,
|
|
7626
|
+
error,
|
|
7627
|
+
responseValue,
|
|
7628
|
+
"json",
|
|
7629
|
+
"Unexpected api response",
|
|
7630
|
+
response
|
|
7631
|
+
);
|
|
7632
|
+
}
|
|
7633
|
+
}
|
|
7634
|
+
}
|
|
7635
|
+
}
|
|
7636
|
+
}
|
|
7637
|
+
}
|
|
7425
7638
|
};
|
|
7426
7639
|
var credentialVaultClient = /* @__PURE__ */ new CredentialVaultClient(import_http_client12.httpClient);
|
|
7427
7640
|
|
|
@@ -13988,15 +14201,20 @@ var LogsClient = class {
|
|
|
13988
14201
|
throw new import_shared_errors20.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
13989
14202
|
}
|
|
13990
14203
|
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;
|
|
14204
|
+
const query = toQueryString({ structure: config.structure, "content-type": config.contentType });
|
|
14205
|
+
const headerParameters = {
|
|
14206
|
+
...config.xDynatraceOptions !== void 0 && { "X-Dynatrace-Options": String(config.xDynatraceOptions) }
|
|
14207
|
+
};
|
|
13991
14208
|
try {
|
|
13992
14209
|
const response = await this.httpClient.send({
|
|
13993
|
-
url: `/platform/classic/environment-api/v2/logs/ingest`,
|
|
14210
|
+
url: `/platform/classic/environment-api/v2/logs/ingest${query}`,
|
|
13994
14211
|
method: "POST",
|
|
13995
14212
|
requestBodyType: mimeTypeToEncoding(config.type),
|
|
13996
14213
|
body: encodedBody,
|
|
13997
14214
|
headers: {
|
|
13998
14215
|
"Content-Type": config.type,
|
|
13999
|
-
Accept: "application/json; charset=utf-8, application/json"
|
|
14216
|
+
Accept: "application/json; charset=utf-8, application/json",
|
|
14217
|
+
...headerParameters
|
|
14000
14218
|
},
|
|
14001
14219
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
14002
14220
|
statusValidator: (status) => {
|
|
@@ -14587,6 +14805,7 @@ var MetricsClient = class {
|
|
|
14587
14805
|
text: config.text,
|
|
14588
14806
|
fields: config.fields,
|
|
14589
14807
|
writtenSince: config.writtenSince,
|
|
14808
|
+
writtenSinceMode: config.writtenSinceMode,
|
|
14590
14809
|
metadataSelector: config.metadataSelector
|
|
14591
14810
|
});
|
|
14592
14811
|
try {
|
|
@@ -14743,6 +14962,145 @@ var MetricsClient = class {
|
|
|
14743
14962
|
}
|
|
14744
14963
|
}
|
|
14745
14964
|
}
|
|
14965
|
+
/**
|
|
14966
|
+
* Deletes all metrics older than the specified days
|
|
14967
|
+
*
|
|
14968
|
+
* **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
|
|
14969
|
+
*
|
|
14970
|
+
* @example <caption>Code example</caption>
|
|
14971
|
+
* import { metricsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
14972
|
+
*
|
|
14973
|
+
* const data = await metricsClient.bulkDelete({
|
|
14974
|
+
* metricSelector: "...",
|
|
14975
|
+
* });
|
|
14976
|
+
*
|
|
14977
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
14978
|
+
* @throws {InvalidResponseError}
|
|
14979
|
+
* @throws {ApiClientError}
|
|
14980
|
+
* @throws {ClientRequestError}
|
|
14981
|
+
*/
|
|
14982
|
+
async bulkDelete(config) {
|
|
14983
|
+
if (!config) {
|
|
14984
|
+
throw new import_shared_errors22.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
14985
|
+
}
|
|
14986
|
+
const query = toQueryString({ metricSelector: config.metricSelector, minUnusedDays: config.minUnusedDays });
|
|
14987
|
+
try {
|
|
14988
|
+
await this.httpClient.send({
|
|
14989
|
+
url: `/platform/classic/environment-api/v2/metrics${query}`,
|
|
14990
|
+
method: "DELETE",
|
|
14991
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
14992
|
+
statusValidator: (status) => {
|
|
14993
|
+
return [202].includes(status);
|
|
14994
|
+
}
|
|
14995
|
+
});
|
|
14996
|
+
return;
|
|
14997
|
+
} catch (e) {
|
|
14998
|
+
if ((0, import_http_client17.isHttpClientAbortError)(e)) {
|
|
14999
|
+
throw e;
|
|
15000
|
+
}
|
|
15001
|
+
if (!(0, import_http_client17.isHttpClientResponseError)(e)) {
|
|
15002
|
+
throw new import_shared_errors22.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
15003
|
+
}
|
|
15004
|
+
const response = e.response;
|
|
15005
|
+
await apiGatewayErrorsHandler(response);
|
|
15006
|
+
switch (response.status) {
|
|
15007
|
+
case 400: {
|
|
15008
|
+
const contentType = response.headers["content-type"];
|
|
15009
|
+
const encoding = mimeTypeToEncoding(contentType, "text" /* Text */);
|
|
15010
|
+
const responseValue = await response.body(encoding);
|
|
15011
|
+
throw new import_shared_errors22.ClientRequestError(`400`, response, responseValue, getErrorMessage(responseValue, `Failed.`));
|
|
15012
|
+
}
|
|
15013
|
+
case 500: {
|
|
15014
|
+
const contentType = response.headers["content-type"];
|
|
15015
|
+
const encoding = mimeTypeToEncoding(contentType, "text" /* Text */);
|
|
15016
|
+
const responseValue = await response.body(encoding);
|
|
15017
|
+
throw new import_shared_errors22.ClientRequestError(
|
|
15018
|
+
`500`,
|
|
15019
|
+
response,
|
|
15020
|
+
responseValue,
|
|
15021
|
+
getErrorMessage(responseValue, `Failed. The bulk-deletion failed.`)
|
|
15022
|
+
);
|
|
15023
|
+
}
|
|
15024
|
+
default: {
|
|
15025
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
15026
|
+
const responseValue = await response.body("json");
|
|
15027
|
+
try {
|
|
15028
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
15029
|
+
throw new ErrorEnvelopeError(
|
|
15030
|
+
`${response.status}`,
|
|
15031
|
+
response,
|
|
15032
|
+
errorBody,
|
|
15033
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
15034
|
+
e
|
|
15035
|
+
);
|
|
15036
|
+
} catch (err) {
|
|
15037
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
15038
|
+
throw err;
|
|
15039
|
+
}
|
|
15040
|
+
throw new import_shared_errors22.InvalidResponseError(
|
|
15041
|
+
`MetricsClient.bulkDelete:${response.status}`,
|
|
15042
|
+
err,
|
|
15043
|
+
responseValue,
|
|
15044
|
+
"ErrorEnvelope",
|
|
15045
|
+
void 0,
|
|
15046
|
+
response
|
|
15047
|
+
);
|
|
15048
|
+
}
|
|
15049
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
15050
|
+
const responseValue = await response.body("json");
|
|
15051
|
+
try {
|
|
15052
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
15053
|
+
throw new ErrorEnvelopeError(
|
|
15054
|
+
`${response.status}`,
|
|
15055
|
+
response,
|
|
15056
|
+
errorBody,
|
|
15057
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
15058
|
+
e
|
|
15059
|
+
);
|
|
15060
|
+
} catch (err) {
|
|
15061
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
15062
|
+
throw err;
|
|
15063
|
+
}
|
|
15064
|
+
throw new import_shared_errors22.InvalidResponseError(
|
|
15065
|
+
`MetricsClient.bulkDelete:${response.status}`,
|
|
15066
|
+
err,
|
|
15067
|
+
responseValue,
|
|
15068
|
+
"ErrorEnvelope",
|
|
15069
|
+
void 0,
|
|
15070
|
+
response
|
|
15071
|
+
);
|
|
15072
|
+
}
|
|
15073
|
+
} else {
|
|
15074
|
+
try {
|
|
15075
|
+
const responseValue = await response.body("json");
|
|
15076
|
+
throw new import_shared_errors22.ClientRequestError(
|
|
15077
|
+
`${response.status}`,
|
|
15078
|
+
response,
|
|
15079
|
+
responseValue,
|
|
15080
|
+
getErrorMessage(
|
|
15081
|
+
responseValue,
|
|
15082
|
+
`Unexpected api response: code=${response.status} body="${responseValue}"`
|
|
15083
|
+
)
|
|
15084
|
+
);
|
|
15085
|
+
} catch (error) {
|
|
15086
|
+
if (error instanceof import_shared_errors22.ClientRequestError) {
|
|
15087
|
+
throw error;
|
|
15088
|
+
}
|
|
15089
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
15090
|
+
throw new import_shared_errors22.InvalidResponseError(
|
|
15091
|
+
`${response.status}`,
|
|
15092
|
+
error,
|
|
15093
|
+
responseValue,
|
|
15094
|
+
"json",
|
|
15095
|
+
"Unexpected api response",
|
|
15096
|
+
response
|
|
15097
|
+
);
|
|
15098
|
+
}
|
|
15099
|
+
}
|
|
15100
|
+
}
|
|
15101
|
+
}
|
|
15102
|
+
}
|
|
15103
|
+
}
|
|
14746
15104
|
/**
|
|
14747
15105
|
* Pushes metric data points to Dynatrace
|
|
14748
15106
|
*
|
|
@@ -15877,6 +16235,8 @@ var MonitoredEntitiesClient = class {
|
|
|
15877
16235
|
* 1. Specify the number of results per page in the **pageSize** query parameter.
|
|
15878
16236
|
* 2. Use the cursor from the **nextPageKey** field of the previous response in the **nextPageKey** query parameter to obtain subsequent pages.
|
|
15879
16237
|
*
|
|
16238
|
+
* @deprecated
|
|
16239
|
+
*
|
|
15880
16240
|
* @returns {Promise<EntitiesList>} Success
|
|
15881
16241
|
*
|
|
15882
16242
|
* @example <caption>Code example</caption>
|
|
@@ -16015,6 +16375,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16015
16375
|
*
|
|
16016
16376
|
* **Required scope:** environment-api:entities:write<br/>**Required permission:** environment:roles:manage-settings
|
|
16017
16377
|
*
|
|
16378
|
+
* @deprecated
|
|
16379
|
+
*
|
|
16018
16380
|
* @returns {Promise<CustomDeviceCreationResult | void>} Success
|
|
16019
16381
|
*
|
|
16020
16382
|
* @example <caption>Code example</caption>
|
|
@@ -16488,6 +16850,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16488
16850
|
*
|
|
16489
16851
|
* **Required scope:** environment-api:entities:read<br/>**Required permission:** environment:roles:viewer
|
|
16490
16852
|
*
|
|
16853
|
+
* @deprecated
|
|
16854
|
+
*
|
|
16491
16855
|
* @returns {Promise<Entity>} Success
|
|
16492
16856
|
*
|
|
16493
16857
|
* @example <caption>Code example</caption>
|
|
@@ -16622,6 +16986,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16622
16986
|
* 1. Specify the number of results per page in the **pageSize** query parameter.
|
|
16623
16987
|
* 2. Use the cursor from the **nextPageKey** field of the previous response in the **nextPageKey** query parameter to obtain subsequent pages.
|
|
16624
16988
|
*
|
|
16989
|
+
* @deprecated
|
|
16990
|
+
*
|
|
16625
16991
|
* @returns {Promise<EntityTypeList>} Success
|
|
16626
16992
|
*
|
|
16627
16993
|
* @example <caption>Code example</caption>
|
|
@@ -16770,6 +17136,8 @@ var MonitoredEntitiesClient = class {
|
|
|
16770
17136
|
*
|
|
16771
17137
|
* **Required scope:** environment-api:entities:read<br/>**Required permission:** environment:roles:viewer
|
|
16772
17138
|
*
|
|
17139
|
+
* @deprecated
|
|
17140
|
+
*
|
|
16773
17141
|
* @returns {Promise<EntityType>} Success
|
|
16774
17142
|
*
|
|
16775
17143
|
* @example <caption>Code example</caption>
|
|
@@ -19805,7 +20173,7 @@ var RumManualInsertionTagsClient = class {
|
|
|
19805
20173
|
this.shouldTransformDates = options?.transformDates ?? true;
|
|
19806
20174
|
}
|
|
19807
20175
|
/**
|
|
19808
|
-
* Download the inline code
|
|
20176
|
+
* Download the inline code
|
|
19809
20177
|
*
|
|
19810
20178
|
* **Required scope:** environment-api:rum:read<br/>**Required permission:** environment:roles:manage-settings<br/><br/>Returns the inline code, which embeds the full RUM monitoring code and configuration directly into the page, minimizing additional web requests. It needs to be updated after configuration changes and monitoring code updates.
|
|
19811
20179
|
*
|
|
@@ -19934,7 +20302,7 @@ var RumManualInsertionTagsClient = class {
|
|
|
19934
20302
|
}
|
|
19935
20303
|
}
|
|
19936
20304
|
/**
|
|
19937
|
-
* Download the JavaScript tag
|
|
20305
|
+
* Download the JavaScript tag
|
|
19938
20306
|
*
|
|
19939
20307
|
* **Required scope:** environment-api:rum:read<br/>**Required permission:** environment:roles:manage-settings<br/><br/>Returns the JavaScript tag, which references an external file containing monitoring code and configuration. Due to its dynamic update mechanism, it is recommended for most use cases.
|
|
19940
20308
|
*
|
|
@@ -20070,7 +20438,7 @@ var RumManualInsertionTagsClient = class {
|
|
|
20070
20438
|
}
|
|
20071
20439
|
}
|
|
20072
20440
|
/**
|
|
20073
|
-
* Download the OneAgent JavaScript tag
|
|
20441
|
+
* Download the OneAgent JavaScript tag
|
|
20074
20442
|
*
|
|
20075
20443
|
* **Required scope:** environment-api:rum:read<br/>**Required permission:** environment:roles:manage-settings<br/><br/>Returns the OneAgent JavaScript tag, which includes configuration and a reference to an external file containing the monitoring code. It needs to be updated after configuration changes and monitoring code updates.
|
|
20076
20444
|
*
|
|
@@ -20203,7 +20571,7 @@ var RumManualInsertionTagsClient = class {
|
|
|
20203
20571
|
}
|
|
20204
20572
|
}
|
|
20205
20573
|
/**
|
|
20206
|
-
* Download the OneAgent JavaScript tag with SRI
|
|
20574
|
+
* Download the OneAgent JavaScript tag with SRI
|
|
20207
20575
|
*
|
|
20208
20576
|
* **Required scope:** environment-api:rum:read<br/>**Required permission:** environment:roles:manage-settings<br/><br/>Returns the OneAgent JavaScript tag with SRI. It includes configuration, a reference to an external file containing the monitoring code, and a hash that allows the browser to verify the integrity of the monitoring code before executing it using its Subresource Integrity (SRI) feature. It needs to be updated after configuration changes and monitoring code updates.
|
|
20209
20577
|
*
|
|
@@ -24238,7 +24606,7 @@ var SettingsObjectsClient = class {
|
|
|
24238
24606
|
* const data =
|
|
24239
24607
|
* await settingsObjectsClient.getSettingsHistory();
|
|
24240
24608
|
*
|
|
24241
|
-
* @throws {ErrorEnvelopeError} Failed. Forbidden. | No object available for the given objectId | Client side error. | Server side error.
|
|
24609
|
+
* @throws {ErrorEnvelopeError} Failed. schemaId contains multiple schemaIds and request was for not for Dynatrace Platform. | Failed. Forbidden. | No object available for the given objectId | Client side error. | Server side error.
|
|
24242
24610
|
* @throws {InvalidResponseError}
|
|
24243
24611
|
* @throws {ApiClientError}
|
|
24244
24612
|
* @throws {ClientRequestError}
|
|
@@ -24292,6 +24660,34 @@ var SettingsObjectsClient = class {
|
|
|
24292
24660
|
const response = e.response;
|
|
24293
24661
|
await apiGatewayErrorsHandler(response);
|
|
24294
24662
|
switch (response.status) {
|
|
24663
|
+
case 400: {
|
|
24664
|
+
const responseValue = await response.body("json");
|
|
24665
|
+
try {
|
|
24666
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
24667
|
+
throw new ErrorEnvelopeError(
|
|
24668
|
+
`400`,
|
|
24669
|
+
response,
|
|
24670
|
+
errorBody,
|
|
24671
|
+
getErrorMessage(
|
|
24672
|
+
errorBody,
|
|
24673
|
+
"Failed. schemaId contains multiple schemaIds and request was for not for Dynatrace Platform."
|
|
24674
|
+
),
|
|
24675
|
+
e
|
|
24676
|
+
);
|
|
24677
|
+
} catch (err) {
|
|
24678
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
24679
|
+
throw err;
|
|
24680
|
+
}
|
|
24681
|
+
throw new import_shared_errors36.InvalidResponseError(
|
|
24682
|
+
`SettingsObjectsClient.getSettingsHistory:400`,
|
|
24683
|
+
err,
|
|
24684
|
+
responseValue,
|
|
24685
|
+
"ErrorEnvelope",
|
|
24686
|
+
void 0,
|
|
24687
|
+
response
|
|
24688
|
+
);
|
|
24689
|
+
}
|
|
24690
|
+
}
|
|
24295
24691
|
case 403: {
|
|
24296
24692
|
const responseValue = await response.body("json");
|
|
24297
24693
|
try {
|
|
@@ -27847,51 +28243,598 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
27847
28243
|
}
|
|
27848
28244
|
}
|
|
27849
28245
|
/**
|
|
27850
|
-
* Updates set of synthetic related parameters defined for whole tenant (affects all monitors and all private locations). | maturity=EARLY_ADOPTER
|
|
28246
|
+
* Updates set of synthetic related parameters defined for whole tenant (affects all monitors and all private locations). | maturity=EARLY_ADOPTER
|
|
28247
|
+
*
|
|
28248
|
+
* **Required scope:** environment-api:synthetic:write<br/>**Required permission:** environment:roles:manage-settings
|
|
28249
|
+
*
|
|
28250
|
+
* @returns {Promise<SyntheticConfigDto>} Success. The set of synthetic related parameters has been updated. Response doesn't have a body.
|
|
28251
|
+
*
|
|
28252
|
+
* @example <caption>Code example</caption>
|
|
28253
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28254
|
+
*
|
|
28255
|
+
* const data =
|
|
28256
|
+
* await syntheticLocationsNodesAndConfigurationClient.updateConfiguration(
|
|
28257
|
+
* { body: { bmMonitorTimeout: 10, bmStepTimeout: 10 } },
|
|
28258
|
+
* );
|
|
28259
|
+
*
|
|
28260
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28261
|
+
* @throws {InvalidResponseError}
|
|
28262
|
+
* @throws {ApiClientError}
|
|
28263
|
+
* @throws {ClientRequestError}
|
|
28264
|
+
*/
|
|
28265
|
+
async updateConfiguration(config) {
|
|
28266
|
+
if (!config) {
|
|
28267
|
+
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28268
|
+
}
|
|
28269
|
+
const encodedBody = this.shouldTransformDates ? transformRequest(config.body, []) : config.body;
|
|
28270
|
+
try {
|
|
28271
|
+
const response = await this.httpClient.send({
|
|
28272
|
+
url: `/platform/classic/environment-api/v2/synthetic/config`,
|
|
28273
|
+
method: "PUT",
|
|
28274
|
+
requestBodyType: "json",
|
|
28275
|
+
body: encodedBody,
|
|
28276
|
+
headers: {
|
|
28277
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
28278
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
28279
|
+
},
|
|
28280
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28281
|
+
statusValidator: (status) => {
|
|
28282
|
+
return [204].includes(status);
|
|
28283
|
+
}
|
|
28284
|
+
});
|
|
28285
|
+
const responseValue = await response.body("json");
|
|
28286
|
+
try {
|
|
28287
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28288
|
+
} catch (err) {
|
|
28289
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28290
|
+
`SyntheticLocationsNodesAndConfigurationClient.updateConfiguration:204`,
|
|
28291
|
+
err,
|
|
28292
|
+
responseValue,
|
|
28293
|
+
void 0,
|
|
28294
|
+
void 0,
|
|
28295
|
+
response
|
|
28296
|
+
);
|
|
28297
|
+
}
|
|
28298
|
+
} catch (e) {
|
|
28299
|
+
if ((0, import_http_client32.isHttpClientAbortError)(e) || (0, import_shared_errors39.isInvalidResponseError)(e)) {
|
|
28300
|
+
throw e;
|
|
28301
|
+
}
|
|
28302
|
+
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
28303
|
+
throw new import_shared_errors39.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
28304
|
+
}
|
|
28305
|
+
const response = e.response;
|
|
28306
|
+
await apiGatewayErrorsHandler(response);
|
|
28307
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
28308
|
+
const responseValue = await response.body("json");
|
|
28309
|
+
try {
|
|
28310
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28311
|
+
throw new ErrorEnvelopeError(
|
|
28312
|
+
`${response.status}`,
|
|
28313
|
+
response,
|
|
28314
|
+
errorBody,
|
|
28315
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
28316
|
+
e
|
|
28317
|
+
);
|
|
28318
|
+
} catch (err) {
|
|
28319
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28320
|
+
throw err;
|
|
28321
|
+
}
|
|
28322
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28323
|
+
`SyntheticLocationsNodesAndConfigurationClient.updateConfiguration:${response.status}`,
|
|
28324
|
+
err,
|
|
28325
|
+
responseValue,
|
|
28326
|
+
"ErrorEnvelope",
|
|
28327
|
+
void 0,
|
|
28328
|
+
response
|
|
28329
|
+
);
|
|
28330
|
+
}
|
|
28331
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
28332
|
+
const responseValue = await response.body("json");
|
|
28333
|
+
try {
|
|
28334
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28335
|
+
throw new ErrorEnvelopeError(
|
|
28336
|
+
`${response.status}`,
|
|
28337
|
+
response,
|
|
28338
|
+
errorBody,
|
|
28339
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
28340
|
+
e
|
|
28341
|
+
);
|
|
28342
|
+
} catch (err) {
|
|
28343
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28344
|
+
throw err;
|
|
28345
|
+
}
|
|
28346
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28347
|
+
`SyntheticLocationsNodesAndConfigurationClient.updateConfiguration:${response.status}`,
|
|
28348
|
+
err,
|
|
28349
|
+
responseValue,
|
|
28350
|
+
"ErrorEnvelope",
|
|
28351
|
+
void 0,
|
|
28352
|
+
response
|
|
28353
|
+
);
|
|
28354
|
+
}
|
|
28355
|
+
} else {
|
|
28356
|
+
try {
|
|
28357
|
+
const responseValue = await response.body("json");
|
|
28358
|
+
throw new import_shared_errors39.ClientRequestError(
|
|
28359
|
+
`${response.status}`,
|
|
28360
|
+
response,
|
|
28361
|
+
responseValue,
|
|
28362
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28363
|
+
);
|
|
28364
|
+
} catch (error) {
|
|
28365
|
+
if (error instanceof import_shared_errors39.ClientRequestError) {
|
|
28366
|
+
throw error;
|
|
28367
|
+
}
|
|
28368
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28369
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28370
|
+
`${response.status}`,
|
|
28371
|
+
error,
|
|
28372
|
+
responseValue,
|
|
28373
|
+
"json",
|
|
28374
|
+
"Unexpected api response",
|
|
28375
|
+
response
|
|
28376
|
+
);
|
|
28377
|
+
}
|
|
28378
|
+
}
|
|
28379
|
+
}
|
|
28380
|
+
}
|
|
28381
|
+
/**
|
|
28382
|
+
* Lists all synthetic locations (both public and private) available for your environment
|
|
28383
|
+
*
|
|
28384
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:viewer
|
|
28385
|
+
*
|
|
28386
|
+
* @returns {Promise<SyntheticLocations>} Success
|
|
28387
|
+
*
|
|
28388
|
+
* @example <caption>Code example</caption>
|
|
28389
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28390
|
+
*
|
|
28391
|
+
* const data =
|
|
28392
|
+
* await syntheticLocationsNodesAndConfigurationClient.getLocations();
|
|
28393
|
+
*
|
|
28394
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28395
|
+
* @throws {InvalidResponseError}
|
|
28396
|
+
* @throws {ApiClientError}
|
|
28397
|
+
* @throws {ClientRequestError}
|
|
28398
|
+
*/
|
|
28399
|
+
async getLocations(config = {}) {
|
|
28400
|
+
if (!config) {
|
|
28401
|
+
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28402
|
+
}
|
|
28403
|
+
const query = toQueryString({
|
|
28404
|
+
cloudPlatform: config.cloudPlatform,
|
|
28405
|
+
type: config.type,
|
|
28406
|
+
capability: config.capability
|
|
28407
|
+
});
|
|
28408
|
+
try {
|
|
28409
|
+
const response = await this.httpClient.send({
|
|
28410
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations${query}`,
|
|
28411
|
+
method: "GET",
|
|
28412
|
+
headers: {
|
|
28413
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
28414
|
+
},
|
|
28415
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28416
|
+
statusValidator: (status) => {
|
|
28417
|
+
return [200].includes(status);
|
|
28418
|
+
}
|
|
28419
|
+
});
|
|
28420
|
+
const responseValue = await response.body("json");
|
|
28421
|
+
try {
|
|
28422
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28423
|
+
} catch (err) {
|
|
28424
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28425
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocations:200`,
|
|
28426
|
+
err,
|
|
28427
|
+
responseValue,
|
|
28428
|
+
void 0,
|
|
28429
|
+
void 0,
|
|
28430
|
+
response
|
|
28431
|
+
);
|
|
28432
|
+
}
|
|
28433
|
+
} catch (e) {
|
|
28434
|
+
if ((0, import_http_client32.isHttpClientAbortError)(e) || (0, import_shared_errors39.isInvalidResponseError)(e)) {
|
|
28435
|
+
throw e;
|
|
28436
|
+
}
|
|
28437
|
+
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
28438
|
+
throw new import_shared_errors39.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
28439
|
+
}
|
|
28440
|
+
const response = e.response;
|
|
28441
|
+
await apiGatewayErrorsHandler(response);
|
|
28442
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
28443
|
+
const responseValue = await response.body("json");
|
|
28444
|
+
try {
|
|
28445
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28446
|
+
throw new ErrorEnvelopeError(
|
|
28447
|
+
`${response.status}`,
|
|
28448
|
+
response,
|
|
28449
|
+
errorBody,
|
|
28450
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
28451
|
+
e
|
|
28452
|
+
);
|
|
28453
|
+
} catch (err) {
|
|
28454
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28455
|
+
throw err;
|
|
28456
|
+
}
|
|
28457
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28458
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocations:${response.status}`,
|
|
28459
|
+
err,
|
|
28460
|
+
responseValue,
|
|
28461
|
+
"ErrorEnvelope",
|
|
28462
|
+
void 0,
|
|
28463
|
+
response
|
|
28464
|
+
);
|
|
28465
|
+
}
|
|
28466
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
28467
|
+
const responseValue = await response.body("json");
|
|
28468
|
+
try {
|
|
28469
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28470
|
+
throw new ErrorEnvelopeError(
|
|
28471
|
+
`${response.status}`,
|
|
28472
|
+
response,
|
|
28473
|
+
errorBody,
|
|
28474
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
28475
|
+
e
|
|
28476
|
+
);
|
|
28477
|
+
} catch (err) {
|
|
28478
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28479
|
+
throw err;
|
|
28480
|
+
}
|
|
28481
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28482
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocations:${response.status}`,
|
|
28483
|
+
err,
|
|
28484
|
+
responseValue,
|
|
28485
|
+
"ErrorEnvelope",
|
|
28486
|
+
void 0,
|
|
28487
|
+
response
|
|
28488
|
+
);
|
|
28489
|
+
}
|
|
28490
|
+
} else {
|
|
28491
|
+
try {
|
|
28492
|
+
const responseValue = await response.body("json");
|
|
28493
|
+
throw new import_shared_errors39.ClientRequestError(
|
|
28494
|
+
`${response.status}`,
|
|
28495
|
+
response,
|
|
28496
|
+
responseValue,
|
|
28497
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28498
|
+
);
|
|
28499
|
+
} catch (error) {
|
|
28500
|
+
if (error instanceof import_shared_errors39.ClientRequestError) {
|
|
28501
|
+
throw error;
|
|
28502
|
+
}
|
|
28503
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28504
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28505
|
+
`${response.status}`,
|
|
28506
|
+
error,
|
|
28507
|
+
responseValue,
|
|
28508
|
+
"json",
|
|
28509
|
+
"Unexpected api response",
|
|
28510
|
+
response
|
|
28511
|
+
);
|
|
28512
|
+
}
|
|
28513
|
+
}
|
|
28514
|
+
}
|
|
28515
|
+
}
|
|
28516
|
+
/**
|
|
28517
|
+
* Creates a new private synthetic location
|
|
28518
|
+
*
|
|
28519
|
+
* **Required scope:** environment-api:synthetic:write<br/>**Required permission:** environment:roles:manage-settings
|
|
28520
|
+
*
|
|
28521
|
+
* @returns {Promise<SyntheticLocationIdsDto>} Success. The private location has been created. The response contains the ID of the new location.
|
|
28522
|
+
*
|
|
28523
|
+
* @example <caption>Code example</caption>
|
|
28524
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28525
|
+
*
|
|
28526
|
+
* const data =
|
|
28527
|
+
* await syntheticLocationsNodesAndConfigurationClient.addLocation(
|
|
28528
|
+
* {
|
|
28529
|
+
* body: {
|
|
28530
|
+
* latitude: 10,
|
|
28531
|
+
* longitude: 10,
|
|
28532
|
+
* name: "...",
|
|
28533
|
+
* nodes: ["..."],
|
|
28534
|
+
* type: "CLUSTER",
|
|
28535
|
+
* },
|
|
28536
|
+
* },
|
|
28537
|
+
* );
|
|
28538
|
+
*
|
|
28539
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28540
|
+
* @throws {InvalidResponseError}
|
|
28541
|
+
* @throws {ApiClientError}
|
|
28542
|
+
* @throws {ClientRequestError}
|
|
28543
|
+
*/
|
|
28544
|
+
async addLocation(config) {
|
|
28545
|
+
if (!config) {
|
|
28546
|
+
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28547
|
+
}
|
|
28548
|
+
const encodedBody = this.shouldTransformDates ? transformRequest(config.body, []) : config.body;
|
|
28549
|
+
try {
|
|
28550
|
+
const response = await this.httpClient.send({
|
|
28551
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations`,
|
|
28552
|
+
method: "POST",
|
|
28553
|
+
requestBodyType: "json",
|
|
28554
|
+
body: encodedBody,
|
|
28555
|
+
headers: {
|
|
28556
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
28557
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
28558
|
+
},
|
|
28559
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28560
|
+
statusValidator: (status) => {
|
|
28561
|
+
return [201].includes(status);
|
|
28562
|
+
}
|
|
28563
|
+
});
|
|
28564
|
+
const responseValue = await response.body("json");
|
|
28565
|
+
try {
|
|
28566
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28567
|
+
} catch (err) {
|
|
28568
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28569
|
+
`SyntheticLocationsNodesAndConfigurationClient.addLocation:201`,
|
|
28570
|
+
err,
|
|
28571
|
+
responseValue,
|
|
28572
|
+
void 0,
|
|
28573
|
+
void 0,
|
|
28574
|
+
response
|
|
28575
|
+
);
|
|
28576
|
+
}
|
|
28577
|
+
} catch (e) {
|
|
28578
|
+
if ((0, import_http_client32.isHttpClientAbortError)(e) || (0, import_shared_errors39.isInvalidResponseError)(e)) {
|
|
28579
|
+
throw e;
|
|
28580
|
+
}
|
|
28581
|
+
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
28582
|
+
throw new import_shared_errors39.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
28583
|
+
}
|
|
28584
|
+
const response = e.response;
|
|
28585
|
+
await apiGatewayErrorsHandler(response);
|
|
28586
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
28587
|
+
const responseValue = await response.body("json");
|
|
28588
|
+
try {
|
|
28589
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28590
|
+
throw new ErrorEnvelopeError(
|
|
28591
|
+
`${response.status}`,
|
|
28592
|
+
response,
|
|
28593
|
+
errorBody,
|
|
28594
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
28595
|
+
e
|
|
28596
|
+
);
|
|
28597
|
+
} catch (err) {
|
|
28598
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28599
|
+
throw err;
|
|
28600
|
+
}
|
|
28601
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28602
|
+
`SyntheticLocationsNodesAndConfigurationClient.addLocation:${response.status}`,
|
|
28603
|
+
err,
|
|
28604
|
+
responseValue,
|
|
28605
|
+
"ErrorEnvelope",
|
|
28606
|
+
void 0,
|
|
28607
|
+
response
|
|
28608
|
+
);
|
|
28609
|
+
}
|
|
28610
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
28611
|
+
const responseValue = await response.body("json");
|
|
28612
|
+
try {
|
|
28613
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28614
|
+
throw new ErrorEnvelopeError(
|
|
28615
|
+
`${response.status}`,
|
|
28616
|
+
response,
|
|
28617
|
+
errorBody,
|
|
28618
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
28619
|
+
e
|
|
28620
|
+
);
|
|
28621
|
+
} catch (err) {
|
|
28622
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28623
|
+
throw err;
|
|
28624
|
+
}
|
|
28625
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28626
|
+
`SyntheticLocationsNodesAndConfigurationClient.addLocation:${response.status}`,
|
|
28627
|
+
err,
|
|
28628
|
+
responseValue,
|
|
28629
|
+
"ErrorEnvelope",
|
|
28630
|
+
void 0,
|
|
28631
|
+
response
|
|
28632
|
+
);
|
|
28633
|
+
}
|
|
28634
|
+
} else {
|
|
28635
|
+
try {
|
|
28636
|
+
const responseValue = await response.body("json");
|
|
28637
|
+
throw new import_shared_errors39.ClientRequestError(
|
|
28638
|
+
`${response.status}`,
|
|
28639
|
+
response,
|
|
28640
|
+
responseValue,
|
|
28641
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28642
|
+
);
|
|
28643
|
+
} catch (error) {
|
|
28644
|
+
if (error instanceof import_shared_errors39.ClientRequestError) {
|
|
28645
|
+
throw error;
|
|
28646
|
+
}
|
|
28647
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28648
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28649
|
+
`${response.status}`,
|
|
28650
|
+
error,
|
|
28651
|
+
responseValue,
|
|
28652
|
+
"json",
|
|
28653
|
+
"Unexpected api response",
|
|
28654
|
+
response
|
|
28655
|
+
);
|
|
28656
|
+
}
|
|
28657
|
+
}
|
|
28658
|
+
}
|
|
28659
|
+
}
|
|
28660
|
+
/**
|
|
28661
|
+
* Gets list of commands to deploy synthetic location in Kubernetes/Openshift cluster
|
|
28662
|
+
*
|
|
28663
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
28664
|
+
*
|
|
28665
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to deploy a synthetic location.
|
|
28666
|
+
*
|
|
28667
|
+
* @example <caption>Code example</caption>
|
|
28668
|
+
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28669
|
+
*
|
|
28670
|
+
* const data =
|
|
28671
|
+
* await syntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands();
|
|
28672
|
+
*
|
|
28673
|
+
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28674
|
+
* @throws {InvalidResponseError}
|
|
28675
|
+
* @throws {ApiClientError}
|
|
28676
|
+
* @throws {ClientRequestError}
|
|
28677
|
+
*/
|
|
28678
|
+
async getLocationDeploymentApplyCommands(config = {}) {
|
|
28679
|
+
if (!config) {
|
|
28680
|
+
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28681
|
+
}
|
|
28682
|
+
const query = toQueryString({
|
|
28683
|
+
platform: config.platform,
|
|
28684
|
+
namespace: config.namespace,
|
|
28685
|
+
filename: config.filename,
|
|
28686
|
+
fipsMode: config.fipsMode,
|
|
28687
|
+
squidProxyConfig: config.squidProxyConfig
|
|
28688
|
+
});
|
|
28689
|
+
try {
|
|
28690
|
+
const response = await this.httpClient.send({
|
|
28691
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/commands/apply${query}`,
|
|
28692
|
+
method: "GET",
|
|
28693
|
+
headers: {
|
|
28694
|
+
Accept: "text/plain, application/json"
|
|
28695
|
+
},
|
|
28696
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28697
|
+
statusValidator: (status) => {
|
|
28698
|
+
return [200].includes(status);
|
|
28699
|
+
}
|
|
28700
|
+
});
|
|
28701
|
+
const responseValue = await response.body("text");
|
|
28702
|
+
try {
|
|
28703
|
+
return responseValue;
|
|
28704
|
+
} catch (err) {
|
|
28705
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28706
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:200`,
|
|
28707
|
+
err,
|
|
28708
|
+
responseValue,
|
|
28709
|
+
void 0,
|
|
28710
|
+
void 0,
|
|
28711
|
+
response
|
|
28712
|
+
);
|
|
28713
|
+
}
|
|
28714
|
+
} catch (e) {
|
|
28715
|
+
if ((0, import_http_client32.isHttpClientAbortError)(e) || (0, import_shared_errors39.isInvalidResponseError)(e)) {
|
|
28716
|
+
throw e;
|
|
28717
|
+
}
|
|
28718
|
+
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
28719
|
+
throw new import_shared_errors39.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
28720
|
+
}
|
|
28721
|
+
const response = e.response;
|
|
28722
|
+
await apiGatewayErrorsHandler(response);
|
|
28723
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
28724
|
+
const responseValue = await response.body("json");
|
|
28725
|
+
try {
|
|
28726
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28727
|
+
throw new ErrorEnvelopeError(
|
|
28728
|
+
`${response.status}`,
|
|
28729
|
+
response,
|
|
28730
|
+
errorBody,
|
|
28731
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
28732
|
+
e
|
|
28733
|
+
);
|
|
28734
|
+
} catch (err) {
|
|
28735
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28736
|
+
throw err;
|
|
28737
|
+
}
|
|
28738
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28739
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:${response.status}`,
|
|
28740
|
+
err,
|
|
28741
|
+
responseValue,
|
|
28742
|
+
"ErrorEnvelope",
|
|
28743
|
+
void 0,
|
|
28744
|
+
response
|
|
28745
|
+
);
|
|
28746
|
+
}
|
|
28747
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
28748
|
+
const responseValue = await response.body("json");
|
|
28749
|
+
try {
|
|
28750
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28751
|
+
throw new ErrorEnvelopeError(
|
|
28752
|
+
`${response.status}`,
|
|
28753
|
+
response,
|
|
28754
|
+
errorBody,
|
|
28755
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
28756
|
+
e
|
|
28757
|
+
);
|
|
28758
|
+
} catch (err) {
|
|
28759
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
28760
|
+
throw err;
|
|
28761
|
+
}
|
|
28762
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28763
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:${response.status}`,
|
|
28764
|
+
err,
|
|
28765
|
+
responseValue,
|
|
28766
|
+
"ErrorEnvelope",
|
|
28767
|
+
void 0,
|
|
28768
|
+
response
|
|
28769
|
+
);
|
|
28770
|
+
}
|
|
28771
|
+
} else {
|
|
28772
|
+
try {
|
|
28773
|
+
const responseValue = await response.body("json");
|
|
28774
|
+
throw new import_shared_errors39.ClientRequestError(
|
|
28775
|
+
`${response.status}`,
|
|
28776
|
+
response,
|
|
28777
|
+
responseValue,
|
|
28778
|
+
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28779
|
+
);
|
|
28780
|
+
} catch (error) {
|
|
28781
|
+
if (error instanceof import_shared_errors39.ClientRequestError) {
|
|
28782
|
+
throw error;
|
|
28783
|
+
}
|
|
28784
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
28785
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
28786
|
+
`${response.status}`,
|
|
28787
|
+
error,
|
|
28788
|
+
responseValue,
|
|
28789
|
+
"json",
|
|
28790
|
+
"Unexpected api response",
|
|
28791
|
+
response
|
|
28792
|
+
);
|
|
28793
|
+
}
|
|
28794
|
+
}
|
|
28795
|
+
}
|
|
28796
|
+
}
|
|
28797
|
+
/**
|
|
28798
|
+
* Gets list of commands to deploy metric adapter in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
27851
28799
|
*
|
|
27852
|
-
* **Required scope:** environment-api:synthetic:
|
|
28800
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
27853
28801
|
*
|
|
27854
|
-
* @returns {Promise<
|
|
28802
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to deploy a metric adapter.
|
|
27855
28803
|
*
|
|
27856
28804
|
* @example <caption>Code example</caption>
|
|
27857
28805
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
27858
28806
|
*
|
|
27859
28807
|
* const data =
|
|
27860
|
-
* await syntheticLocationsNodesAndConfigurationClient.
|
|
27861
|
-
* { body: { bmMonitorTimeout: 10, bmStepTimeout: 10 } },
|
|
27862
|
-
* );
|
|
28808
|
+
* await syntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands();
|
|
27863
28809
|
*
|
|
27864
28810
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
27865
28811
|
* @throws {InvalidResponseError}
|
|
27866
28812
|
* @throws {ApiClientError}
|
|
27867
28813
|
* @throws {ClientRequestError}
|
|
27868
28814
|
*/
|
|
27869
|
-
async
|
|
28815
|
+
async getMetricAdapterDeploymentApplyCommands(config = {}) {
|
|
27870
28816
|
if (!config) {
|
|
27871
28817
|
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
27872
28818
|
}
|
|
27873
|
-
const
|
|
28819
|
+
const query = toQueryString({ platform: config.platform, namespace: config.namespace, filename: config.filename });
|
|
27874
28820
|
try {
|
|
27875
28821
|
const response = await this.httpClient.send({
|
|
27876
|
-
url: `/platform/classic/environment-api/v2/synthetic/
|
|
27877
|
-
method: "
|
|
27878
|
-
requestBodyType: "json",
|
|
27879
|
-
body: encodedBody,
|
|
28822
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/metricAdapter/commands/apply${query}`,
|
|
28823
|
+
method: "GET",
|
|
27880
28824
|
headers: {
|
|
27881
|
-
|
|
27882
|
-
Accept: "application/json; charset=utf-8, application/json"
|
|
28825
|
+
Accept: "text/plain, application/json"
|
|
27883
28826
|
},
|
|
27884
28827
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
27885
28828
|
statusValidator: (status) => {
|
|
27886
|
-
return [
|
|
28829
|
+
return [200].includes(status);
|
|
27887
28830
|
}
|
|
27888
28831
|
});
|
|
27889
|
-
const responseValue = await response.body("
|
|
28832
|
+
const responseValue = await response.body("text");
|
|
27890
28833
|
try {
|
|
27891
|
-
return
|
|
28834
|
+
return responseValue;
|
|
27892
28835
|
} catch (err) {
|
|
27893
28836
|
throw new import_shared_errors39.InvalidResponseError(
|
|
27894
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28837
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands:200`,
|
|
27895
28838
|
err,
|
|
27896
28839
|
responseValue,
|
|
27897
28840
|
void 0,
|
|
@@ -27924,7 +28867,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
27924
28867
|
throw err;
|
|
27925
28868
|
}
|
|
27926
28869
|
throw new import_shared_errors39.InvalidResponseError(
|
|
27927
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28870
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands:${response.status}`,
|
|
27928
28871
|
err,
|
|
27929
28872
|
responseValue,
|
|
27930
28873
|
"ErrorEnvelope",
|
|
@@ -27948,7 +28891,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
27948
28891
|
throw err;
|
|
27949
28892
|
}
|
|
27950
28893
|
throw new import_shared_errors39.InvalidResponseError(
|
|
27951
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28894
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentApplyCommands:${response.status}`,
|
|
27952
28895
|
err,
|
|
27953
28896
|
responseValue,
|
|
27954
28897
|
"ErrorEnvelope",
|
|
@@ -27983,50 +28926,46 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
27983
28926
|
}
|
|
27984
28927
|
}
|
|
27985
28928
|
/**
|
|
27986
|
-
*
|
|
28929
|
+
* Gets list of commands to delete metric adapter in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
27987
28930
|
*
|
|
27988
|
-
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:
|
|
28931
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
27989
28932
|
*
|
|
27990
|
-
* @returns {Promise<
|
|
28933
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to delete a metric adapter.
|
|
27991
28934
|
*
|
|
27992
28935
|
* @example <caption>Code example</caption>
|
|
27993
28936
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
27994
28937
|
*
|
|
27995
28938
|
* const data =
|
|
27996
|
-
* await syntheticLocationsNodesAndConfigurationClient.
|
|
28939
|
+
* await syntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands();
|
|
27997
28940
|
*
|
|
27998
28941
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
27999
28942
|
* @throws {InvalidResponseError}
|
|
28000
28943
|
* @throws {ApiClientError}
|
|
28001
28944
|
* @throws {ClientRequestError}
|
|
28002
28945
|
*/
|
|
28003
|
-
async
|
|
28946
|
+
async getMetricAdapterDeploymentDeleteCommands(config = {}) {
|
|
28004
28947
|
if (!config) {
|
|
28005
28948
|
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28006
28949
|
}
|
|
28007
|
-
const query = toQueryString({
|
|
28008
|
-
cloudPlatform: config.cloudPlatform,
|
|
28009
|
-
type: config.type,
|
|
28010
|
-
capability: config.capability
|
|
28011
|
-
});
|
|
28950
|
+
const query = toQueryString({ platform: config.platform, filename: config.filename });
|
|
28012
28951
|
try {
|
|
28013
28952
|
const response = await this.httpClient.send({
|
|
28014
|
-
url: `/platform/classic/environment-api/v2/synthetic/locations${query}`,
|
|
28953
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/metricAdapter/commands/delete${query}`,
|
|
28015
28954
|
method: "GET",
|
|
28016
28955
|
headers: {
|
|
28017
|
-
Accept: "
|
|
28956
|
+
Accept: "text/plain, application/json"
|
|
28018
28957
|
},
|
|
28019
28958
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28020
28959
|
statusValidator: (status) => {
|
|
28021
28960
|
return [200].includes(status);
|
|
28022
28961
|
}
|
|
28023
28962
|
});
|
|
28024
|
-
const responseValue = await response.body("
|
|
28963
|
+
const responseValue = await response.body("text");
|
|
28025
28964
|
try {
|
|
28026
|
-
return
|
|
28965
|
+
return responseValue;
|
|
28027
28966
|
} catch (err) {
|
|
28028
28967
|
throw new import_shared_errors39.InvalidResponseError(
|
|
28029
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28968
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands:200`,
|
|
28030
28969
|
err,
|
|
28031
28970
|
responseValue,
|
|
28032
28971
|
void 0,
|
|
@@ -28059,7 +28998,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28059
28998
|
throw err;
|
|
28060
28999
|
}
|
|
28061
29000
|
throw new import_shared_errors39.InvalidResponseError(
|
|
28062
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
29001
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands:${response.status}`,
|
|
28063
29002
|
err,
|
|
28064
29003
|
responseValue,
|
|
28065
29004
|
"ErrorEnvelope",
|
|
@@ -28083,7 +29022,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28083
29022
|
throw err;
|
|
28084
29023
|
}
|
|
28085
29024
|
throw new import_shared_errors39.InvalidResponseError(
|
|
28086
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
29025
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentDeleteCommands:${response.status}`,
|
|
28087
29026
|
err,
|
|
28088
29027
|
responseValue,
|
|
28089
29028
|
"ErrorEnvelope",
|
|
@@ -28118,59 +29057,46 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28118
29057
|
}
|
|
28119
29058
|
}
|
|
28120
29059
|
/**
|
|
28121
|
-
*
|
|
29060
|
+
* Gets yaml file content to deploy metric adapter in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
28122
29061
|
*
|
|
28123
|
-
* **Required scope:** environment-api:synthetic:
|
|
29062
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
28124
29063
|
*
|
|
28125
|
-
* @returns {Promise<
|
|
29064
|
+
* @returns {Promise<Binary>} Success. The response contains the content of deployment yaml file.
|
|
28126
29065
|
*
|
|
28127
29066
|
* @example <caption>Code example</caption>
|
|
28128
29067
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28129
29068
|
*
|
|
28130
29069
|
* const data =
|
|
28131
|
-
* await syntheticLocationsNodesAndConfigurationClient.
|
|
28132
|
-
* {
|
|
28133
|
-
* body: {
|
|
28134
|
-
* latitude: 10,
|
|
28135
|
-
* longitude: 10,
|
|
28136
|
-
* name: "...",
|
|
28137
|
-
* nodes: ["..."],
|
|
28138
|
-
* type: "CLUSTER",
|
|
28139
|
-
* },
|
|
28140
|
-
* },
|
|
28141
|
-
* );
|
|
29070
|
+
* await syntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml();
|
|
28142
29071
|
*
|
|
28143
29072
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28144
29073
|
* @throws {InvalidResponseError}
|
|
28145
29074
|
* @throws {ApiClientError}
|
|
28146
29075
|
* @throws {ClientRequestError}
|
|
28147
29076
|
*/
|
|
28148
|
-
async
|
|
29077
|
+
async getMetricAdapterDeploymentYaml(config = {}) {
|
|
28149
29078
|
if (!config) {
|
|
28150
29079
|
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28151
29080
|
}
|
|
28152
|
-
const
|
|
29081
|
+
const query = toQueryString({ platform: config.platform, namespace: config.namespace });
|
|
28153
29082
|
try {
|
|
28154
29083
|
const response = await this.httpClient.send({
|
|
28155
|
-
url: `/platform/classic/environment-api/v2/synthetic/locations`,
|
|
28156
|
-
method: "
|
|
28157
|
-
requestBodyType: "json",
|
|
28158
|
-
body: encodedBody,
|
|
29084
|
+
url: `/platform/classic/environment-api/v2/synthetic/locations/metricAdapter/yaml${query}`,
|
|
29085
|
+
method: "GET",
|
|
28159
29086
|
headers: {
|
|
28160
|
-
|
|
28161
|
-
Accept: "application/json; charset=utf-8, application/json"
|
|
29087
|
+
Accept: "application/yaml, application/json"
|
|
28162
29088
|
},
|
|
28163
29089
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28164
29090
|
statusValidator: (status) => {
|
|
28165
|
-
return [
|
|
29091
|
+
return [200].includes(status);
|
|
28166
29092
|
}
|
|
28167
29093
|
});
|
|
28168
|
-
const responseValue = await response.body("
|
|
29094
|
+
const responseValue = await response.body("binary");
|
|
28169
29095
|
try {
|
|
28170
|
-
return
|
|
29096
|
+
return responseValue;
|
|
28171
29097
|
} catch (err) {
|
|
28172
29098
|
throw new import_shared_errors39.InvalidResponseError(
|
|
28173
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
29099
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml:200`,
|
|
28174
29100
|
err,
|
|
28175
29101
|
responseValue,
|
|
28176
29102
|
void 0,
|
|
@@ -28203,7 +29129,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28203
29129
|
throw err;
|
|
28204
29130
|
}
|
|
28205
29131
|
throw new import_shared_errors39.InvalidResponseError(
|
|
28206
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
29132
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml:${response.status}`,
|
|
28207
29133
|
err,
|
|
28208
29134
|
responseValue,
|
|
28209
29135
|
"ErrorEnvelope",
|
|
@@ -28227,123 +29153,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
28227
29153
|
throw err;
|
|
28228
29154
|
}
|
|
28229
29155
|
throw new import_shared_errors39.InvalidResponseError(
|
|
28230
|
-
`SyntheticLocationsNodesAndConfigurationClient.
|
|
28231
|
-
err,
|
|
28232
|
-
responseValue,
|
|
28233
|
-
"ErrorEnvelope",
|
|
28234
|
-
void 0,
|
|
28235
|
-
response
|
|
28236
|
-
);
|
|
28237
|
-
}
|
|
28238
|
-
} else {
|
|
28239
|
-
try {
|
|
28240
|
-
const responseValue = await response.body("json");
|
|
28241
|
-
throw new import_shared_errors39.ClientRequestError(
|
|
28242
|
-
`${response.status}`,
|
|
28243
|
-
response,
|
|
28244
|
-
responseValue,
|
|
28245
|
-
getErrorMessage(responseValue, `Unexpected api response: code=${response.status} body="${responseValue}"`)
|
|
28246
|
-
);
|
|
28247
|
-
} catch (error) {
|
|
28248
|
-
if (error instanceof import_shared_errors39.ClientRequestError) {
|
|
28249
|
-
throw error;
|
|
28250
|
-
}
|
|
28251
|
-
const responseValue = await response.body("text").catch(() => "");
|
|
28252
|
-
throw new import_shared_errors39.InvalidResponseError(
|
|
28253
|
-
`${response.status}`,
|
|
28254
|
-
error,
|
|
28255
|
-
responseValue,
|
|
28256
|
-
"json",
|
|
28257
|
-
"Unexpected api response",
|
|
28258
|
-
response
|
|
28259
|
-
);
|
|
28260
|
-
}
|
|
28261
|
-
}
|
|
28262
|
-
}
|
|
28263
|
-
}
|
|
28264
|
-
/**
|
|
28265
|
-
* Gets list of commands to deploy synthetic location in Kubernetes/Openshift cluster | maturity=EARLY_ADOPTER
|
|
28266
|
-
*
|
|
28267
|
-
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
28268
|
-
*
|
|
28269
|
-
* @returns {Promise<void>} Success. The response contains the list of commands that needs to be executed to deploy a synthetic location.
|
|
28270
|
-
*
|
|
28271
|
-
* @example <caption>Code example</caption>
|
|
28272
|
-
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
28273
|
-
*
|
|
28274
|
-
* const data =
|
|
28275
|
-
* await syntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands();
|
|
28276
|
-
*
|
|
28277
|
-
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
28278
|
-
* @throws {InvalidResponseError}
|
|
28279
|
-
* @throws {ApiClientError}
|
|
28280
|
-
* @throws {ClientRequestError}
|
|
28281
|
-
*/
|
|
28282
|
-
async getLocationDeploymentApplyCommands(config = {}) {
|
|
28283
|
-
if (!config) {
|
|
28284
|
-
throw new import_shared_errors39.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
28285
|
-
}
|
|
28286
|
-
const query = toQueryString({ platform: config.platform, namespace: config.namespace, filename: config.filename });
|
|
28287
|
-
try {
|
|
28288
|
-
await this.httpClient.send({
|
|
28289
|
-
url: `/platform/classic/environment-api/v2/synthetic/locations/commands/apply${query}`,
|
|
28290
|
-
method: "GET",
|
|
28291
|
-
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
28292
|
-
statusValidator: (status) => {
|
|
28293
|
-
return [200].includes(status);
|
|
28294
|
-
}
|
|
28295
|
-
});
|
|
28296
|
-
return;
|
|
28297
|
-
} catch (e) {
|
|
28298
|
-
if ((0, import_http_client32.isHttpClientAbortError)(e)) {
|
|
28299
|
-
throw e;
|
|
28300
|
-
}
|
|
28301
|
-
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
28302
|
-
throw new import_shared_errors39.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
28303
|
-
}
|
|
28304
|
-
const response = e.response;
|
|
28305
|
-
await apiGatewayErrorsHandler(response);
|
|
28306
|
-
if (response.status >= 400 && response.status <= 499) {
|
|
28307
|
-
const responseValue = await response.body("json");
|
|
28308
|
-
try {
|
|
28309
|
-
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28310
|
-
throw new ErrorEnvelopeError(
|
|
28311
|
-
`${response.status}`,
|
|
28312
|
-
response,
|
|
28313
|
-
errorBody,
|
|
28314
|
-
getErrorMessage(errorBody, "Client side error."),
|
|
28315
|
-
e
|
|
28316
|
-
);
|
|
28317
|
-
} catch (err) {
|
|
28318
|
-
if (err instanceof ErrorEnvelopeError) {
|
|
28319
|
-
throw err;
|
|
28320
|
-
}
|
|
28321
|
-
throw new import_shared_errors39.InvalidResponseError(
|
|
28322
|
-
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:${response.status}`,
|
|
28323
|
-
err,
|
|
28324
|
-
responseValue,
|
|
28325
|
-
"ErrorEnvelope",
|
|
28326
|
-
void 0,
|
|
28327
|
-
response
|
|
28328
|
-
);
|
|
28329
|
-
}
|
|
28330
|
-
} else if (response.status >= 500 && response.status <= 599) {
|
|
28331
|
-
const responseValue = await response.body("json");
|
|
28332
|
-
try {
|
|
28333
|
-
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
28334
|
-
throw new ErrorEnvelopeError(
|
|
28335
|
-
`${response.status}`,
|
|
28336
|
-
response,
|
|
28337
|
-
errorBody,
|
|
28338
|
-
getErrorMessage(errorBody, "Server side error."),
|
|
28339
|
-
e
|
|
28340
|
-
);
|
|
28341
|
-
} catch (err) {
|
|
28342
|
-
if (err instanceof ErrorEnvelopeError) {
|
|
28343
|
-
throw err;
|
|
28344
|
-
}
|
|
28345
|
-
throw new import_shared_errors39.InvalidResponseError(
|
|
28346
|
-
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentApplyCommands:${response.status}`,
|
|
29156
|
+
`SyntheticLocationsNodesAndConfigurationClient.getMetricAdapterDeploymentYaml:${response.status}`,
|
|
28347
29157
|
err,
|
|
28348
29158
|
responseValue,
|
|
28349
29159
|
"ErrorEnvelope",
|
|
@@ -29009,11 +29819,11 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29009
29819
|
}
|
|
29010
29820
|
}
|
|
29011
29821
|
/**
|
|
29012
|
-
* Gets list of commands to delete synthetic location in Kubernetes/Openshift cluster
|
|
29822
|
+
* Gets list of commands to delete synthetic location in Kubernetes/Openshift cluster
|
|
29013
29823
|
*
|
|
29014
29824
|
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29015
29825
|
*
|
|
29016
|
-
* @returns {Promise<
|
|
29826
|
+
* @returns {Promise<string>} Success. The response contains the list of commands that needs to be executed to delete a synthetic location.
|
|
29017
29827
|
*
|
|
29018
29828
|
* @example <caption>Code example</caption>
|
|
29019
29829
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
@@ -29034,17 +29844,32 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29034
29844
|
}
|
|
29035
29845
|
const query = toQueryString({ platform: config.platform, namespace: config.namespace, filename: config.filename });
|
|
29036
29846
|
try {
|
|
29037
|
-
await this.httpClient.send({
|
|
29847
|
+
const response = await this.httpClient.send({
|
|
29038
29848
|
url: `/platform/classic/environment-api/v2/synthetic/locations/${config.locationId}/commands/delete${query}`,
|
|
29039
29849
|
method: "GET",
|
|
29850
|
+
headers: {
|
|
29851
|
+
Accept: "text/plain, application/json"
|
|
29852
|
+
},
|
|
29040
29853
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
29041
29854
|
statusValidator: (status) => {
|
|
29042
29855
|
return [200].includes(status);
|
|
29043
29856
|
}
|
|
29044
29857
|
});
|
|
29045
|
-
|
|
29858
|
+
const responseValue = await response.body("text");
|
|
29859
|
+
try {
|
|
29860
|
+
return responseValue;
|
|
29861
|
+
} catch (err) {
|
|
29862
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
29863
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentDeleteCommands:200`,
|
|
29864
|
+
err,
|
|
29865
|
+
responseValue,
|
|
29866
|
+
void 0,
|
|
29867
|
+
void 0,
|
|
29868
|
+
response
|
|
29869
|
+
);
|
|
29870
|
+
}
|
|
29046
29871
|
} catch (e) {
|
|
29047
|
-
if ((0, import_http_client32.isHttpClientAbortError)(e)) {
|
|
29872
|
+
if ((0, import_http_client32.isHttpClientAbortError)(e) || (0, import_shared_errors39.isInvalidResponseError)(e)) {
|
|
29048
29873
|
throw e;
|
|
29049
29874
|
}
|
|
29050
29875
|
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
@@ -29127,11 +29952,11 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29127
29952
|
}
|
|
29128
29953
|
}
|
|
29129
29954
|
/**
|
|
29130
|
-
* Gets yaml file content to deploy location in Kubernetes/Openshift cluster
|
|
29955
|
+
* Gets yaml file content to deploy location in Kubernetes/Openshift cluster
|
|
29131
29956
|
*
|
|
29132
29957
|
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29133
29958
|
*
|
|
29134
|
-
* @returns {Promise<
|
|
29959
|
+
* @returns {Promise<Binary>} Success. The response contains the content of deployment yaml file.
|
|
29135
29960
|
*
|
|
29136
29961
|
* @example <caption>Code example</caption>
|
|
29137
29962
|
* import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
@@ -29158,17 +29983,32 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29158
29983
|
tagVersionSynthetic: config.tagVersionSynthetic
|
|
29159
29984
|
});
|
|
29160
29985
|
try {
|
|
29161
|
-
await this.httpClient.send({
|
|
29986
|
+
const response = await this.httpClient.send({
|
|
29162
29987
|
url: `/platform/classic/environment-api/v2/synthetic/locations/${config.locationId}/yaml${query}`,
|
|
29163
29988
|
method: "GET",
|
|
29989
|
+
headers: {
|
|
29990
|
+
Accept: "application/yaml, application/json"
|
|
29991
|
+
},
|
|
29164
29992
|
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
29165
29993
|
statusValidator: (status) => {
|
|
29166
29994
|
return [200].includes(status);
|
|
29167
29995
|
}
|
|
29168
29996
|
});
|
|
29169
|
-
|
|
29997
|
+
const responseValue = await response.body("binary");
|
|
29998
|
+
try {
|
|
29999
|
+
return responseValue;
|
|
30000
|
+
} catch (err) {
|
|
30001
|
+
throw new import_shared_errors39.InvalidResponseError(
|
|
30002
|
+
`SyntheticLocationsNodesAndConfigurationClient.getLocationDeploymentYaml:200`,
|
|
30003
|
+
err,
|
|
30004
|
+
responseValue,
|
|
30005
|
+
void 0,
|
|
30006
|
+
void 0,
|
|
30007
|
+
response
|
|
30008
|
+
);
|
|
30009
|
+
}
|
|
29170
30010
|
} catch (e) {
|
|
29171
|
-
if ((0, import_http_client32.isHttpClientAbortError)(e)) {
|
|
30011
|
+
if ((0, import_http_client32.isHttpClientAbortError)(e) || (0, import_shared_errors39.isInvalidResponseError)(e)) {
|
|
29172
30012
|
throw e;
|
|
29173
30013
|
}
|
|
29174
30014
|
if (!(0, import_http_client32.isHttpClientResponseError)(e)) {
|
|
@@ -29253,7 +30093,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
|
|
|
29253
30093
|
/**
|
|
29254
30094
|
* Lists all synthetic nodes available in your environment
|
|
29255
30095
|
*
|
|
29256
|
-
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:
|
|
30096
|
+
* **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:viewer
|
|
29257
30097
|
*
|
|
29258
30098
|
* @returns {Promise<Nodes>} Success
|
|
29259
30099
|
*
|
|
@@ -29533,7 +30373,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29533
30373
|
this.shouldTransformDates = options?.transformDates ?? true;
|
|
29534
30374
|
}
|
|
29535
30375
|
/**
|
|
29536
|
-
* Gets all synthetic monitors. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30376
|
+
* Gets all synthetic monitors. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
29537
30377
|
*
|
|
29538
30378
|
* **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29539
30379
|
*
|
|
@@ -29664,7 +30504,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29664
30504
|
}
|
|
29665
30505
|
}
|
|
29666
30506
|
/**
|
|
29667
|
-
* Creates a synthetic monitor definition. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30507
|
+
* Creates a synthetic monitor definition. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
29668
30508
|
*
|
|
29669
30509
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:manage-settings
|
|
29670
30510
|
*
|
|
@@ -29684,16 +30524,12 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29684
30524
|
* @throws {ClientRequestError}
|
|
29685
30525
|
*/
|
|
29686
30526
|
async createMonitor(config) {
|
|
29687
|
-
if (!config) {
|
|
29688
|
-
throw new import_shared_errors40.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
29689
|
-
}
|
|
29690
|
-
const encodedBody = this.shouldTransformDates ? transformRequest(config.body, []) : config.body;
|
|
29691
30527
|
try {
|
|
29692
30528
|
const response = await this.httpClient.send({
|
|
29693
30529
|
url: `/platform/classic/environment-api/v2/synthetic/monitors`,
|
|
29694
30530
|
method: "POST",
|
|
29695
30531
|
requestBodyType: "json",
|
|
29696
|
-
body:
|
|
30532
|
+
body: config.body,
|
|
29697
30533
|
headers: {
|
|
29698
30534
|
"Content-Type": "application/json; charset=utf-8",
|
|
29699
30535
|
Accept: "application/json; charset=utf-8, application/json"
|
|
@@ -29800,11 +30636,11 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29800
30636
|
}
|
|
29801
30637
|
}
|
|
29802
30638
|
/**
|
|
29803
|
-
* Gets a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30639
|
+
* Gets a synthetic monitor definition for the given monitor ID. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
29804
30640
|
*
|
|
29805
30641
|
* **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:manage-settings
|
|
29806
30642
|
*
|
|
29807
|
-
* @returns {Promise<SyntheticMultiProtocolMonitorResponse>} Success
|
|
30643
|
+
* @returns {Promise<SyntheticMultiProtocolMonitorResponse | SyntheticBrowserMonitorResponse>} Success
|
|
29808
30644
|
*
|
|
29809
30645
|
* @example <caption>Code example</caption>
|
|
29810
30646
|
* import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
@@ -29834,7 +30670,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29834
30670
|
});
|
|
29835
30671
|
const responseValue = await response.body("json");
|
|
29836
30672
|
try {
|
|
29837
|
-
return
|
|
30673
|
+
return responseValue;
|
|
29838
30674
|
} catch (err) {
|
|
29839
30675
|
throw new import_shared_errors40.InvalidResponseError(
|
|
29840
30676
|
`SyntheticNetworkAvailabilityMonitorsClient.getMonitor:200`,
|
|
@@ -29929,7 +30765,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29929
30765
|
}
|
|
29930
30766
|
}
|
|
29931
30767
|
/**
|
|
29932
|
-
* Updates a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30768
|
+
* Updates a synthetic monitor definition for the given monitor ID. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
29933
30769
|
*
|
|
29934
30770
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:manage-settings
|
|
29935
30771
|
*
|
|
@@ -29947,16 +30783,12 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
29947
30783
|
* @throws {ClientRequestError}
|
|
29948
30784
|
*/
|
|
29949
30785
|
async updateMonitor(config) {
|
|
29950
|
-
if (!config) {
|
|
29951
|
-
throw new import_shared_errors40.ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
29952
|
-
}
|
|
29953
|
-
const encodedBody = this.shouldTransformDates ? transformRequest(config.body, []) : config.body;
|
|
29954
30786
|
try {
|
|
29955
30787
|
await this.httpClient.send({
|
|
29956
30788
|
url: `/platform/classic/environment-api/v2/synthetic/monitors/${config.monitorId}`,
|
|
29957
30789
|
method: "PUT",
|
|
29958
30790
|
requestBodyType: "json",
|
|
29959
|
-
body:
|
|
30791
|
+
body: config.body,
|
|
29960
30792
|
headers: {
|
|
29961
30793
|
"Content-Type": "application/json; charset=utf-8"
|
|
29962
30794
|
},
|
|
@@ -30050,7 +30882,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
|
|
|
30050
30882
|
}
|
|
30051
30883
|
}
|
|
30052
30884
|
/**
|
|
30053
|
-
* Deletes a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30885
|
+
* Deletes a synthetic monitor definition for the given monitor ID. Currently browser and network availability monitors only. | maturity=EARLY_ADOPTER
|
|
30054
30886
|
*
|
|
30055
30887
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:manage-settings
|
|
30056
30888
|
*
|
|
@@ -31756,6 +32588,7 @@ var AssetInfoDtoType = /* @__PURE__ */ ((AssetInfoDtoType2) => {
|
|
|
31756
32588
|
AssetInfoDtoType2["LqlLogProcessingRule"] = "LQL_LOG_PROCESSING_RULE";
|
|
31757
32589
|
AssetInfoDtoType2["MetricMetadata"] = "METRIC_METADATA";
|
|
31758
32590
|
AssetInfoDtoType2["MetricQuery"] = "METRIC_QUERY";
|
|
32591
|
+
AssetInfoDtoType2["OpenPipeline"] = "OPEN_PIPELINE";
|
|
31759
32592
|
AssetInfoDtoType2["ProcessGroupingRules"] = "PROCESS_GROUPING_RULES";
|
|
31760
32593
|
AssetInfoDtoType2["ScreenActions"] = "SCREEN_ACTIONS";
|
|
31761
32594
|
AssetInfoDtoType2["ScreenChartGroups"] = "SCREEN_CHART_GROUPS";
|
|
@@ -31852,6 +32685,38 @@ var AuditLogEntryUserType = /* @__PURE__ */ ((AuditLogEntryUserType2) => {
|
|
|
31852
32685
|
return AuditLogEntryUserType2;
|
|
31853
32686
|
})(AuditLogEntryUserType || {});
|
|
31854
32687
|
|
|
32688
|
+
// packages/client/classic-environment-v2/src/lib/models/authentication-dto-input-type.ts
|
|
32689
|
+
var AuthenticationDtoInputType = /* @__PURE__ */ ((AuthenticationDtoInputType2) => {
|
|
32690
|
+
AuthenticationDtoInputType2["Plain"] = "PLAIN";
|
|
32691
|
+
AuthenticationDtoInputType2["Secure"] = "SECURE";
|
|
32692
|
+
return AuthenticationDtoInputType2;
|
|
32693
|
+
})(AuthenticationDtoInputType || {});
|
|
32694
|
+
|
|
32695
|
+
// packages/client/classic-environment-v2/src/lib/models/authentication-dto-type.ts
|
|
32696
|
+
var AuthenticationDtoType = /* @__PURE__ */ ((AuthenticationDtoType2) => {
|
|
32697
|
+
AuthenticationDtoType2["HttpAuthentication"] = "HTTP_AUTHENTICATION";
|
|
32698
|
+
AuthenticationDtoType2["Kerberos"] = "KERBEROS";
|
|
32699
|
+
AuthenticationDtoType2["Webform"] = "WEBFORM";
|
|
32700
|
+
return AuthenticationDtoType2;
|
|
32701
|
+
})(AuthenticationDtoType || {});
|
|
32702
|
+
|
|
32703
|
+
// packages/client/classic-environment-v2/src/lib/models/base-wait-condition-dto-type.ts
|
|
32704
|
+
var BaseWaitConditionDtoType = /* @__PURE__ */ ((BaseWaitConditionDtoType2) => {
|
|
32705
|
+
BaseWaitConditionDtoType2["Network"] = "NETWORK";
|
|
32706
|
+
BaseWaitConditionDtoType2["NextEvent"] = "NEXT_EVENT";
|
|
32707
|
+
BaseWaitConditionDtoType2["PageComplete"] = "PAGE_COMPLETE";
|
|
32708
|
+
BaseWaitConditionDtoType2["Time"] = "TIME";
|
|
32709
|
+
BaseWaitConditionDtoType2["Validation"] = "VALIDATION";
|
|
32710
|
+
return BaseWaitConditionDtoType2;
|
|
32711
|
+
})(BaseWaitConditionDtoType || {});
|
|
32712
|
+
|
|
32713
|
+
// packages/client/classic-environment-v2/src/lib/models/chromium-startup-flags-dto-autoplay-policy.ts
|
|
32714
|
+
var ChromiumStartupFlagsDtoAutoplayPolicy = /* @__PURE__ */ ((ChromiumStartupFlagsDtoAutoplayPolicy2) => {
|
|
32715
|
+
ChromiumStartupFlagsDtoAutoplayPolicy2["NoUserGestureRequired"] = "no-user-gesture-required";
|
|
32716
|
+
ChromiumStartupFlagsDtoAutoplayPolicy2["DocumentUserActivationRequired"] = "document-user-activation-required";
|
|
32717
|
+
return ChromiumStartupFlagsDtoAutoplayPolicy2;
|
|
32718
|
+
})(ChromiumStartupFlagsDtoAutoplayPolicy || {});
|
|
32719
|
+
|
|
31855
32720
|
// packages/client/classic-environment-v2/src/lib/models/code-level-vulnerability-details-type.ts
|
|
31856
32721
|
var CodeLevelVulnerabilityDetailsType = /* @__PURE__ */ ((CodeLevelVulnerabilityDetailsType2) => {
|
|
31857
32722
|
CodeLevelVulnerabilityDetailsType2["CmdInjection"] = "CMD_INJECTION";
|
|
@@ -32013,6 +32878,22 @@ var EffectivePermissionGranted = /* @__PURE__ */ ((EffectivePermissionGranted2)
|
|
|
32013
32878
|
return EffectivePermissionGranted2;
|
|
32014
32879
|
})(EffectivePermissionGranted || {});
|
|
32015
32880
|
|
|
32881
|
+
// packages/client/classic-environment-v2/src/lib/models/enablement-dto-origin.ts
|
|
32882
|
+
var EnablementDtoOrigin = /* @__PURE__ */ ((EnablementDtoOrigin2) => {
|
|
32883
|
+
EnablementDtoOrigin2["Monitor"] = "MONITOR";
|
|
32884
|
+
EnablementDtoOrigin2["Tenant"] = "TENANT";
|
|
32885
|
+
EnablementDtoOrigin2["Default"] = "DEFAULT";
|
|
32886
|
+
EnablementDtoOrigin2["Unknown"] = "UNKNOWN";
|
|
32887
|
+
return EnablementDtoOrigin2;
|
|
32888
|
+
})(EnablementDtoOrigin || {});
|
|
32889
|
+
|
|
32890
|
+
// packages/client/classic-environment-v2/src/lib/models/enablement-dto-performance-metric.ts
|
|
32891
|
+
var EnablementDtoPerformanceMetric = /* @__PURE__ */ ((EnablementDtoPerformanceMetric2) => {
|
|
32892
|
+
EnablementDtoPerformanceMetric2["ClassicTotalDuration"] = "classic.total_duration";
|
|
32893
|
+
EnablementDtoPerformanceMetric2["Duration"] = "duration";
|
|
32894
|
+
return EnablementDtoPerformanceMetric2;
|
|
32895
|
+
})(EnablementDtoPerformanceMetric || {});
|
|
32896
|
+
|
|
32016
32897
|
// packages/client/classic-environment-v2/src/lib/models/entry-point-usage-segment-segment-type.ts
|
|
32017
32898
|
var EntryPointUsageSegmentSegmentType = /* @__PURE__ */ ((EntryPointUsageSegmentSegmentType2) => {
|
|
32018
32899
|
EntryPointUsageSegmentSegmentType2["MaliciousInput"] = "MALICIOUS_INPUT";
|
|
@@ -32067,6 +32948,7 @@ var EventIngestEventType = /* @__PURE__ */ ((EventIngestEventType2) => {
|
|
|
32067
32948
|
EventIngestEventType2["MarkedForTermination"] = "MARKED_FOR_TERMINATION";
|
|
32068
32949
|
EventIngestEventType2["PerformanceEvent"] = "PERFORMANCE_EVENT";
|
|
32069
32950
|
EventIngestEventType2["ResourceContentionEvent"] = "RESOURCE_CONTENTION_EVENT";
|
|
32951
|
+
EventIngestEventType2["Warning"] = "WARNING";
|
|
32070
32952
|
return EventIngestEventType2;
|
|
32071
32953
|
})(EventIngestEventType || {});
|
|
32072
32954
|
|
|
@@ -32197,6 +33079,13 @@ var FilterType = /* @__PURE__ */ ((FilterType2) => {
|
|
|
32197
33079
|
return FilterType2;
|
|
32198
33080
|
})(FilterType || {});
|
|
32199
33081
|
|
|
33082
|
+
// packages/client/classic-environment-v2/src/lib/models/filtered-requests-dto-mode.ts
|
|
33083
|
+
var FilteredRequestsDtoMode = /* @__PURE__ */ ((FilteredRequestsDtoMode2) => {
|
|
33084
|
+
FilteredRequestsDtoMode2["Block"] = "BLOCK";
|
|
33085
|
+
FilteredRequestsDtoMode2["Allow"] = "ALLOW";
|
|
33086
|
+
return FilteredRequestsDtoMode2;
|
|
33087
|
+
})(FilteredRequestsDtoMode || {});
|
|
33088
|
+
|
|
32200
33089
|
// packages/client/classic-environment-v2/src/lib/models/get-all-active-gates-query-auto-update.ts
|
|
32201
33090
|
var GetAllActiveGatesQueryAutoUpdate = /* @__PURE__ */ ((GetAllActiveGatesQueryAutoUpdate2) => {
|
|
32202
33091
|
GetAllActiveGatesQueryAutoUpdate2["Disabled"] = "DISABLED";
|
|
@@ -32528,6 +33417,37 @@ var ImpactImpactType = /* @__PURE__ */ ((ImpactImpactType2) => {
|
|
|
32528
33417
|
return ImpactImpactType2;
|
|
32529
33418
|
})(ImpactImpactType || {});
|
|
32530
33419
|
|
|
33420
|
+
// packages/client/classic-environment-v2/src/lib/models/key-performance-metrics-load-action-kpm.ts
|
|
33421
|
+
var KeyPerformanceMetricsLoadActionKpm = /* @__PURE__ */ ((KeyPerformanceMetricsLoadActionKpm2) => {
|
|
33422
|
+
KeyPerformanceMetricsLoadActionKpm2["UserActionDuration"] = "USER_ACTION_DURATION";
|
|
33423
|
+
KeyPerformanceMetricsLoadActionKpm2["VisuallyComplete"] = "VISUALLY_COMPLETE";
|
|
33424
|
+
KeyPerformanceMetricsLoadActionKpm2["SpeedIndex"] = "SPEED_INDEX";
|
|
33425
|
+
KeyPerformanceMetricsLoadActionKpm2["DomInteractive"] = "DOM_INTERACTIVE";
|
|
33426
|
+
KeyPerformanceMetricsLoadActionKpm2["LoadEventStart"] = "LOAD_EVENT_START";
|
|
33427
|
+
KeyPerformanceMetricsLoadActionKpm2["LoadEventEnd"] = "LOAD_EVENT_END";
|
|
33428
|
+
KeyPerformanceMetricsLoadActionKpm2["ResponseStart"] = "RESPONSE_START";
|
|
33429
|
+
KeyPerformanceMetricsLoadActionKpm2["ResponseEnd"] = "RESPONSE_END";
|
|
33430
|
+
KeyPerformanceMetricsLoadActionKpm2["LargestContentfulPaint"] = "LARGEST_CONTENTFUL_PAINT";
|
|
33431
|
+
KeyPerformanceMetricsLoadActionKpm2["CumulativeLayoutShift"] = "CUMULATIVE_LAYOUT_SHIFT";
|
|
33432
|
+
return KeyPerformanceMetricsLoadActionKpm2;
|
|
33433
|
+
})(KeyPerformanceMetricsLoadActionKpm || {});
|
|
33434
|
+
|
|
33435
|
+
// packages/client/classic-environment-v2/src/lib/models/key-performance-metrics-xhr-action-kpm.ts
|
|
33436
|
+
var KeyPerformanceMetricsXhrActionKpm = /* @__PURE__ */ ((KeyPerformanceMetricsXhrActionKpm2) => {
|
|
33437
|
+
KeyPerformanceMetricsXhrActionKpm2["UserActionDuration"] = "USER_ACTION_DURATION";
|
|
33438
|
+
KeyPerformanceMetricsXhrActionKpm2["VisuallyComplete"] = "VISUALLY_COMPLETE";
|
|
33439
|
+
KeyPerformanceMetricsXhrActionKpm2["ResponseStart"] = "RESPONSE_START";
|
|
33440
|
+
KeyPerformanceMetricsXhrActionKpm2["ResponseEnd"] = "RESPONSE_END";
|
|
33441
|
+
return KeyPerformanceMetricsXhrActionKpm2;
|
|
33442
|
+
})(KeyPerformanceMetricsXhrActionKpm || {});
|
|
33443
|
+
|
|
33444
|
+
// packages/client/classic-environment-v2/src/lib/models/keystrokes-input-dto-type.ts
|
|
33445
|
+
var KeystrokesInputDtoType = /* @__PURE__ */ ((KeystrokesInputDtoType2) => {
|
|
33446
|
+
KeystrokesInputDtoType2["Plain"] = "PLAIN";
|
|
33447
|
+
KeystrokesInputDtoType2["Secure"] = "SECURE";
|
|
33448
|
+
return KeystrokesInputDtoType2;
|
|
33449
|
+
})(KeystrokesInputDtoType || {});
|
|
33450
|
+
|
|
32531
33451
|
// packages/client/classic-environment-v2/src/lib/models/list-credentials-query-type.ts
|
|
32532
33452
|
var ListCredentialsQueryType = /* @__PURE__ */ ((ListCredentialsQueryType2) => {
|
|
32533
33453
|
ListCredentialsQueryType2["Certificate"] = "CERTIFICATE";
|
|
@@ -32586,6 +33506,13 @@ var LocationCollectionElementType = /* @__PURE__ */ ((LocationCollectionElementT
|
|
|
32586
33506
|
return LocationCollectionElementType2;
|
|
32587
33507
|
})(LocationCollectionElementType || {});
|
|
32588
33508
|
|
|
33509
|
+
// packages/client/classic-environment-v2/src/lib/models/locator-dto-type.ts
|
|
33510
|
+
var LocatorDtoType = /* @__PURE__ */ ((LocatorDtoType2) => {
|
|
33511
|
+
LocatorDtoType2["Css"] = "CSS";
|
|
33512
|
+
LocatorDtoType2["Dom"] = "DOM";
|
|
33513
|
+
return LocatorDtoType2;
|
|
33514
|
+
})(LocatorDtoType || {});
|
|
33515
|
+
|
|
32589
33516
|
// packages/client/classic-environment-v2/src/lib/models/log-record-event-type.ts
|
|
32590
33517
|
var LogRecordEventType = /* @__PURE__ */ ((LogRecordEventType2) => {
|
|
32591
33518
|
LogRecordEventType2["K8S"] = "K8S";
|
|
@@ -32791,6 +33718,14 @@ var PrivateSyntheticLocationDeploymentType = /* @__PURE__ */ ((PrivateSyntheticL
|
|
|
32791
33718
|
return PrivateSyntheticLocationDeploymentType2;
|
|
32792
33719
|
})(PrivateSyntheticLocationDeploymentType || {});
|
|
32793
33720
|
|
|
33721
|
+
// packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-fips-mode.ts
|
|
33722
|
+
var PrivateSyntheticLocationFipsMode = /* @__PURE__ */ ((PrivateSyntheticLocationFipsMode2) => {
|
|
33723
|
+
PrivateSyntheticLocationFipsMode2["Disabled"] = "DISABLED";
|
|
33724
|
+
PrivateSyntheticLocationFipsMode2["Enabled"] = "ENABLED";
|
|
33725
|
+
PrivateSyntheticLocationFipsMode2["EnabledWithCorporateProxy"] = "ENABLED_WITH_CORPORATE_PROXY";
|
|
33726
|
+
return PrivateSyntheticLocationFipsMode2;
|
|
33727
|
+
})(PrivateSyntheticLocationFipsMode || {});
|
|
33728
|
+
|
|
32794
33729
|
// packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-status.ts
|
|
32795
33730
|
var PrivateSyntheticLocationStatus = /* @__PURE__ */ ((PrivateSyntheticLocationStatus2) => {
|
|
32796
33731
|
PrivateSyntheticLocationStatus2["Disabled"] = "DISABLED";
|
|
@@ -32967,6 +33902,16 @@ var RemovePermissionPathAccessorType = /* @__PURE__ */ ((RemovePermissionPathAcc
|
|
|
32967
33902
|
return RemovePermissionPathAccessorType2;
|
|
32968
33903
|
})(RemovePermissionPathAccessorType || {});
|
|
32969
33904
|
|
|
33905
|
+
// packages/client/classic-environment-v2/src/lib/models/request-filter-dto-type.ts
|
|
33906
|
+
var RequestFilterDtoType = /* @__PURE__ */ ((RequestFilterDtoType2) => {
|
|
33907
|
+
RequestFilterDtoType2["StartsWith"] = "STARTS_WITH";
|
|
33908
|
+
RequestFilterDtoType2["EndsWith"] = "ENDS_WITH";
|
|
33909
|
+
RequestFilterDtoType2["Contains"] = "CONTAINS";
|
|
33910
|
+
RequestFilterDtoType2["Equals"] = "EQUALS";
|
|
33911
|
+
RequestFilterDtoType2["Regex"] = "REGEX";
|
|
33912
|
+
return RequestFilterDtoType2;
|
|
33913
|
+
})(RequestFilterDtoType || {});
|
|
33914
|
+
|
|
32970
33915
|
// packages/client/classic-environment-v2/src/lib/models/resource-context-operations-item.ts
|
|
32971
33916
|
var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem2) => {
|
|
32972
33917
|
ResourceContextOperationsItem2["Delete"] = "delete";
|
|
@@ -33184,6 +34129,22 @@ var SchemaConstraintRestDtoType = /* @__PURE__ */ ((SchemaConstraintRestDtoType2
|
|
|
33184
34129
|
return SchemaConstraintRestDtoType2;
|
|
33185
34130
|
})(SchemaConstraintRestDtoType || {});
|
|
33186
34131
|
|
|
34132
|
+
// packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-maturity.ts
|
|
34133
|
+
var SchemaDefinitionRestDtoMaturity = /* @__PURE__ */ ((SchemaDefinitionRestDtoMaturity2) => {
|
|
34134
|
+
SchemaDefinitionRestDtoMaturity2["EarlyAdopter"] = "EARLY_ADOPTER";
|
|
34135
|
+
SchemaDefinitionRestDtoMaturity2["GeneralAvailability"] = "GENERAL_AVAILABILITY";
|
|
34136
|
+
SchemaDefinitionRestDtoMaturity2["Preview"] = "PREVIEW";
|
|
34137
|
+
return SchemaDefinitionRestDtoMaturity2;
|
|
34138
|
+
})(SchemaDefinitionRestDtoMaturity || {});
|
|
34139
|
+
|
|
34140
|
+
// packages/client/classic-environment-v2/src/lib/models/schema-stub-maturity.ts
|
|
34141
|
+
var SchemaStubMaturity = /* @__PURE__ */ ((SchemaStubMaturity2) => {
|
|
34142
|
+
SchemaStubMaturity2["EarlyAdopter"] = "EARLY_ADOPTER";
|
|
34143
|
+
SchemaStubMaturity2["GeneralAvailability"] = "GENERAL_AVAILABILITY";
|
|
34144
|
+
SchemaStubMaturity2["Preview"] = "PREVIEW";
|
|
34145
|
+
return SchemaStubMaturity2;
|
|
34146
|
+
})(SchemaStubMaturity || {});
|
|
34147
|
+
|
|
33187
34148
|
// packages/client/classic-environment-v2/src/lib/models/schema-type-type.ts
|
|
33188
34149
|
var SchemaTypeType = /* @__PURE__ */ ((SchemaTypeType2) => {
|
|
33189
34150
|
SchemaTypeType2["Object"] = "object";
|
|
@@ -33232,6 +34193,8 @@ var SecurityProblemEventReason = /* @__PURE__ */ ((SecurityProblemEventReason2)
|
|
|
33232
34193
|
SecurityProblemEventReason2["SecurityProblemReopened"] = "SECURITY_PROBLEM_REOPENED";
|
|
33233
34194
|
SecurityProblemEventReason2["SecurityProblemResolved"] = "SECURITY_PROBLEM_RESOLVED";
|
|
33234
34195
|
SecurityProblemEventReason2["SecurityProblemUnmuted"] = "SECURITY_PROBLEM_UNMUTED";
|
|
34196
|
+
SecurityProblemEventReason2["VulnerabilityDiscontinued"] = "VULNERABILITY_DISCONTINUED";
|
|
34197
|
+
SecurityProblemEventReason2["VulnerabilityIdChanged"] = "VULNERABILITY_ID_CHANGED";
|
|
33235
34198
|
return SecurityProblemEventReason2;
|
|
33236
34199
|
})(SecurityProblemEventReason || {});
|
|
33237
34200
|
|
|
@@ -33322,6 +34285,39 @@ var SLOStatus = /* @__PURE__ */ ((SLOStatus2) => {
|
|
|
33322
34285
|
return SLOStatus2;
|
|
33323
34286
|
})(SLOStatus || {});
|
|
33324
34287
|
|
|
34288
|
+
// packages/client/classic-environment-v2/src/lib/models/store-log-query-structure.ts
|
|
34289
|
+
var StoreLogQueryStructure = /* @__PURE__ */ ((StoreLogQueryStructure2) => {
|
|
34290
|
+
StoreLogQueryStructure2["Flattened"] = "flattened";
|
|
34291
|
+
StoreLogQueryStructure2["Raw"] = "raw";
|
|
34292
|
+
return StoreLogQueryStructure2;
|
|
34293
|
+
})(StoreLogQueryStructure || {});
|
|
34294
|
+
|
|
34295
|
+
// packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-request-type.ts
|
|
34296
|
+
var SyntheticBrowserMonitorRequestType = /* @__PURE__ */ ((SyntheticBrowserMonitorRequestType2) => {
|
|
34297
|
+
SyntheticBrowserMonitorRequestType2["MultiProtocol"] = "MULTI_PROTOCOL";
|
|
34298
|
+
SyntheticBrowserMonitorRequestType2["Browser"] = "BROWSER";
|
|
34299
|
+
return SyntheticBrowserMonitorRequestType2;
|
|
34300
|
+
})(SyntheticBrowserMonitorRequestType || {});
|
|
34301
|
+
|
|
34302
|
+
// packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-response-type.ts
|
|
34303
|
+
var SyntheticBrowserMonitorResponseType = /* @__PURE__ */ ((SyntheticBrowserMonitorResponseType2) => {
|
|
34304
|
+
SyntheticBrowserMonitorResponseType2["MultiProtocol"] = "MULTI_PROTOCOL";
|
|
34305
|
+
SyntheticBrowserMonitorResponseType2["Browser"] = "BROWSER";
|
|
34306
|
+
return SyntheticBrowserMonitorResponseType2;
|
|
34307
|
+
})(SyntheticBrowserMonitorResponseType || {});
|
|
34308
|
+
|
|
34309
|
+
// packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-step-dto-type.ts
|
|
34310
|
+
var SyntheticBrowserMonitorStepDtoType = /* @__PURE__ */ ((SyntheticBrowserMonitorStepDtoType2) => {
|
|
34311
|
+
SyntheticBrowserMonitorStepDtoType2["Click"] = "CLICK";
|
|
34312
|
+
SyntheticBrowserMonitorStepDtoType2["Cookie"] = "COOKIE";
|
|
34313
|
+
SyntheticBrowserMonitorStepDtoType2["Javascript"] = "JAVASCRIPT";
|
|
34314
|
+
SyntheticBrowserMonitorStepDtoType2["Keystrokes"] = "KEYSTROKES";
|
|
34315
|
+
SyntheticBrowserMonitorStepDtoType2["Navigate"] = "NAVIGATE";
|
|
34316
|
+
SyntheticBrowserMonitorStepDtoType2["SelectOption"] = "SELECT_OPTION";
|
|
34317
|
+
SyntheticBrowserMonitorStepDtoType2["Tap"] = "TAP";
|
|
34318
|
+
return SyntheticBrowserMonitorStepDtoType2;
|
|
34319
|
+
})(SyntheticBrowserMonitorStepDtoType || {});
|
|
34320
|
+
|
|
33325
34321
|
// packages/client/classic-environment-v2/src/lib/models/synthetic-location-status.ts
|
|
33326
34322
|
var SyntheticLocationStatus = /* @__PURE__ */ ((SyntheticLocationStatus2) => {
|
|
33327
34323
|
SyntheticLocationStatus2["Disabled"] = "DISABLED";
|
|
@@ -33345,6 +34341,15 @@ var SyntheticLocationUpdateType = /* @__PURE__ */ ((SyntheticLocationUpdateType2
|
|
|
33345
34341
|
return SyntheticLocationUpdateType2;
|
|
33346
34342
|
})(SyntheticLocationUpdateType || {});
|
|
33347
34343
|
|
|
34344
|
+
// packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto-origin.ts
|
|
34345
|
+
var SyntheticMonitorOutageHandlingSettingsDtoOrigin = /* @__PURE__ */ ((SyntheticMonitorOutageHandlingSettingsDtoOrigin2) => {
|
|
34346
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Monitor"] = "MONITOR";
|
|
34347
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Tenant"] = "TENANT";
|
|
34348
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Default"] = "DEFAULT";
|
|
34349
|
+
SyntheticMonitorOutageHandlingSettingsDtoOrigin2["Unknown"] = "UNKNOWN";
|
|
34350
|
+
return SyntheticMonitorOutageHandlingSettingsDtoOrigin2;
|
|
34351
|
+
})(SyntheticMonitorOutageHandlingSettingsDtoOrigin || {});
|
|
34352
|
+
|
|
33348
34353
|
// packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-aggregation.ts
|
|
33349
34354
|
var SyntheticMonitorPerformanceThresholdDtoAggregation = /* @__PURE__ */ ((SyntheticMonitorPerformanceThresholdDtoAggregation2) => {
|
|
33350
34355
|
SyntheticMonitorPerformanceThresholdDtoAggregation2["Avg"] = "AVG";
|
|
@@ -33372,6 +34377,7 @@ var SyntheticMonitorSummaryDtoType = /* @__PURE__ */ ((SyntheticMonitorSummaryDt
|
|
|
33372
34377
|
// packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-request-type.ts
|
|
33373
34378
|
var SyntheticMultiProtocolMonitorRequestType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorRequestType2) => {
|
|
33374
34379
|
SyntheticMultiProtocolMonitorRequestType2["MultiProtocol"] = "MULTI_PROTOCOL";
|
|
34380
|
+
SyntheticMultiProtocolMonitorRequestType2["Browser"] = "BROWSER";
|
|
33375
34381
|
return SyntheticMultiProtocolMonitorRequestType2;
|
|
33376
34382
|
})(SyntheticMultiProtocolMonitorRequestType || {});
|
|
33377
34383
|
|
|
@@ -33379,7 +34385,6 @@ var SyntheticMultiProtocolMonitorRequestType = /* @__PURE__ */ ((SyntheticMultiP
|
|
|
33379
34385
|
var SyntheticMultiProtocolMonitorResponseType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorResponseType2) => {
|
|
33380
34386
|
SyntheticMultiProtocolMonitorResponseType2["MultiProtocol"] = "MULTI_PROTOCOL";
|
|
33381
34387
|
SyntheticMultiProtocolMonitorResponseType2["Browser"] = "BROWSER";
|
|
33382
|
-
SyntheticMultiProtocolMonitorResponseType2["Http"] = "HTTP";
|
|
33383
34388
|
return SyntheticMultiProtocolMonitorResponseType2;
|
|
33384
34389
|
})(SyntheticMultiProtocolMonitorResponseType || {});
|
|
33385
34390
|
|
|
@@ -33514,6 +34519,14 @@ var UpdatePermissionsRequestPermissionsItem = /* @__PURE__ */ ((UpdatePermission
|
|
|
33514
34519
|
return UpdatePermissionsRequestPermissionsItem2;
|
|
33515
34520
|
})(UpdatePermissionsRequestPermissionsItem || {});
|
|
33516
34521
|
|
|
34522
|
+
// packages/client/classic-environment-v2/src/lib/models/validation-rule-dto-type.ts
|
|
34523
|
+
var ValidationRuleDtoType = /* @__PURE__ */ ((ValidationRuleDtoType2) => {
|
|
34524
|
+
ValidationRuleDtoType2["TextMatch"] = "TEXT_MATCH";
|
|
34525
|
+
ValidationRuleDtoType2["ContentMatch"] = "CONTENT_MATCH";
|
|
34526
|
+
ValidationRuleDtoType2["ElementMatch"] = "ELEMENT_MATCH";
|
|
34527
|
+
return ValidationRuleDtoType2;
|
|
34528
|
+
})(ValidationRuleDtoType || {});
|
|
34529
|
+
|
|
33517
34530
|
// packages/client/classic-environment-v2/src/lib/models/vulnerable-function-input-segment-type.ts
|
|
33518
34531
|
var VulnerableFunctionInputSegmentType = /* @__PURE__ */ ((VulnerableFunctionInputSegmentType2) => {
|
|
33519
34532
|
VulnerableFunctionInputSegmentType2["MaliciousInput"] = "MALICIOUS_INPUT";
|