@dynatrace-sdk/client-classic-environment-v2 5.1.0 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +647 -212
- package/cjs/index.js +729 -80
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +729 -80
- package/package.json +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +2 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +30 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +11 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +81 -11
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +7 -7
- package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-module-attributes.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/aggregated-log-aggregation-result.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/availability-evidence.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/aws-key-based-credentials-dto.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/aws-role-based-credentials.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/certificate-credentials.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/chromium-startup-flags-dto-disable-features.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/cookie-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/custom-device-creation-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/cyber-ark-allowed-location-dto.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/cyber-ark-username-password.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/enablement-dto-origin.d.ts +11 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/enablement-dto-performance-metric.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/enablement-dto.d.ts +17 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-from-relationships.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-to-relationships.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/event-evidence.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/event-ingest-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-dto-actions.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-feature-sets-details.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-upload-response-dto-feature-sets-details.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/hashicorp-approle.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +8 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/interaction-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/item-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/java-script-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/key-strokes-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/log-record-additional-columns.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/maintenance-window-evidence.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-evidence.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-series-dimension-map.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-state-param.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/monitored-states.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/navigate-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/network-zone.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/node-collection-element.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/node.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/plain-authentication-dto.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/plain-keystrokes-input-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-node-names.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/public-certificate-credentials.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/public-synthetic-location.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/remediation-items-bulk-update-delete-dto-updates.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/revision-diff.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-enums.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-maturity.d.ts +16 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-table-columns.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-types.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub-maturity.d.ts +16 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-type-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/secure-authentication-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/secure-keystrokes-input-dto.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-event-reason.d.ts +3 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-event.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/select-option-step-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/service-impact.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/snmpv3-credentials.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/store-log-query-structure.d.ts +7 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-configuration-dto.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-request.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-browser-monitor-response.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-constraint-dto-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto-origin.d.ts +11 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-type.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-primary-grail-tag-dto.d.ts +13 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-request.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-response.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-batch-status-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-request-metadata.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-private-location-update.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-public-location-update.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/time-wait-condition-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/transactional-evidence.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/validation-wait-condition-dto.d.ts +2 -2
- package/types/packages/http-client/src/index.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/abort-controller.d.ts +0 -6
- package/types/packages/http-client/src/lib/platform/abort-signal.d.ts +0 -6
- package/types/packages/http-client/src/lib/platform/apply-content-type-header.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/base-error.d.ts +0 -5
- package/types/packages/http-client/src/lib/platform/binary.d.ts +0 -13
- package/types/packages/http-client/src/lib/platform/data-type-error.d.ts +0 -6
- package/types/packages/http-client/src/lib/platform/decode-form-data.d.ts +0 -48
- package/types/packages/http-client/src/lib/platform/decode-response-body.d.ts +0 -3
- package/types/packages/http-client/src/lib/platform/default-status-validator.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/encode-request-body.d.ts +0 -2
- package/types/packages/http-client/src/lib/platform/http-client-abort-error.d.ts +0 -7
- package/types/packages/http-client/src/lib/platform/http-client-request-error.d.ts +0 -7
- package/types/packages/http-client/src/lib/platform/http-client-response-error-serializer.d.ts +0 -3
- package/types/packages/http-client/src/lib/platform/http-client-response-error.d.ts +0 -11
- package/types/packages/http-client/src/lib/platform/http-client-response.d.ts +0 -10
- package/types/packages/http-client/src/lib/platform/http-client.d.ts +0 -24
- package/types/packages/http-client/src/lib/platform/index.d.ts +0 -12
- package/types/packages/http-client/src/lib/platform/oauth-http-client.d.ts +0 -41
- package/types/packages/http-client/src/lib/platform/unsupported-operation-error.d.ts +0 -6
- package/types/packages/http-client/src/lib/types/abort-controller.d.ts +0 -14
- package/types/packages/http-client/src/lib/types/abort-signal.d.ts +0 -18
- package/types/packages/http-client/src/lib/types/base-error.d.ts +0 -4
- package/types/packages/http-client/src/lib/types/binary.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/data-type-error.d.ts +0 -14
- package/types/packages/http-client/src/lib/types/data-types.d.ts +0 -36
- package/types/packages/http-client/src/lib/types/form-data-request-body.d.ts +0 -83
- package/types/packages/http-client/src/lib/types/form-data-response-body.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/headers.d.ts +0 -6
- package/types/packages/http-client/src/lib/types/http-client-abort-error.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/http-client-network-error.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/http-client-request-error.d.ts +0 -15
- package/types/packages/http-client/src/lib/types/http-client-request-options.d.ts +0 -42
- package/types/packages/http-client/src/lib/types/http-client-response-error.d.ts +0 -20
- package/types/packages/http-client/src/lib/types/http-client-response.d.ts +0 -33
- package/types/packages/http-client/src/lib/types/http-client.d.ts +0 -24
- package/types/packages/http-client/src/lib/types/index.d.ts +0 -20
- package/types/packages/http-client/src/lib/types/request-body-types.d.ts +0 -26
- package/types/packages/http-client/src/lib/types/response-body-types.d.ts +0 -46
- package/types/packages/http-client/src/lib/types/status-validator.d.ts +0 -7
- package/types/packages/http-client/src/lib/types/unsupported-operation-error.d.ts +0 -14
- package/types/packages/platform/error-handlers/src/index.d.ts +0 -2
- package/types/packages/platform/error-handlers/src/lib/add-global-error-serializer.d.ts +0 -13
- package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +0 -13
- package/types/packages/platform/error-handlers/src/lib/types/dt-runtime-error-handlers.d.ts +0 -5
- package/types/packages/platform/error-handlers/src/lib/types/error-type.d.ts +0 -9
- package/types/packages/platform/error-handlers/src/lib/types/global-dt-runtime-with-error-handlers.d.ts +0 -7
- package/types/packages/platform/error-handlers/src/lib/types/global-error-serializer.d.ts +0 -10
- package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +0 -16
- package/types/packages/platform/error-handlers/src/lib/types/index.d.ts +0 -6
- package/types/packages/platform/error-handlers/src/lib/types/serialized-error.d.ts +0 -10
- package/types/packages/platform/shared/index.d.ts +0 -1
- package/types/packages/platform/shared/utils/get-global-with-dt-runtime.d.ts +0 -1
- package/types/packages/shared-errors/src/api-client-error.d.ts +0 -23
- package/types/packages/shared-errors/src/api-gateway-error.d.ts +0 -37
- package/types/packages/shared-errors/src/client-request-error.d.ts +0 -39
- package/types/packages/shared-errors/src/index.d.ts +0 -5
- package/types/packages/shared-errors/src/invalid-response-error.d.ts +0 -26
- package/types/packages/shared-errors/src/types.d.ts +0 -88
|
@@ -3,6 +3,7 @@ import { SyntheticBrowserMonitorConfigurationDto } from './synthetic-browser-mon
|
|
|
3
3
|
import { SyntheticBrowserMonitorStepDto } from './synthetic-browser-monitor-step-dto';
|
|
4
4
|
import { SyntheticMonitorOutageHandlingSettingsDto } from './synthetic-monitor-outage-handling-settings-dto';
|
|
5
5
|
import { SyntheticMonitorPerformanceThresholdsDto } from './synthetic-monitor-performance-thresholds-dto';
|
|
6
|
+
import { SyntheticMonitorPrimaryGrailTagDto } from './synthetic-monitor-primary-grail-tag-dto';
|
|
6
7
|
import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
7
8
|
/**
|
|
8
9
|
* Browser monitor update.
|
|
@@ -44,6 +45,10 @@ export interface SyntheticBrowserMonitorRequest {
|
|
|
44
45
|
* Performance thresholds configuration.
|
|
45
46
|
*/
|
|
46
47
|
performanceThresholds?: SyntheticMonitorPerformanceThresholdsDto;
|
|
48
|
+
/**
|
|
49
|
+
* Primary Grail tags as a list of key-value pairs. Up to 10 tags. Those fields are only available for SaaS and not for Managed.
|
|
50
|
+
*/
|
|
51
|
+
primaryGrailTags?: SyntheticMonitorPrimaryGrailTagDto[];
|
|
47
52
|
/**
|
|
48
53
|
* The steps of the monitor.
|
|
49
54
|
*/
|
|
@@ -3,6 +3,7 @@ import { SyntheticBrowserMonitorConfigurationDto } from './synthetic-browser-mon
|
|
|
3
3
|
import { SyntheticBrowserMonitorStepDto } from './synthetic-browser-monitor-step-dto';
|
|
4
4
|
import { SyntheticMonitorOutageHandlingSettingsDto } from './synthetic-monitor-outage-handling-settings-dto';
|
|
5
5
|
import { SyntheticMonitorPerformanceThresholdsDto } from './synthetic-monitor-performance-thresholds-dto';
|
|
6
|
+
import { SyntheticMonitorPrimaryGrailTagDto } from './synthetic-monitor-primary-grail-tag-dto';
|
|
6
7
|
import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
7
8
|
/**
|
|
8
9
|
* Browser Monitor.
|
|
@@ -56,6 +57,10 @@ export interface SyntheticBrowserMonitorResponse {
|
|
|
56
57
|
* Performance thresholds configuration.
|
|
57
58
|
*/
|
|
58
59
|
performanceThresholds?: SyntheticMonitorPerformanceThresholdsDto;
|
|
60
|
+
/**
|
|
61
|
+
* Primary Grail tags as a list of key-value pairs. Up to 10 tags. Those fields are only available for SaaS and not for Managed.
|
|
62
|
+
*/
|
|
63
|
+
primaryGrailTags?: SyntheticMonitorPrimaryGrailTagDto[];
|
|
59
64
|
/**
|
|
60
65
|
* The steps of the monitor.
|
|
61
66
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates the origin of these settings.
|
|
3
|
+
*
|
|
4
|
+
* @deprecated Use literal values.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum SyntheticMonitorOutageHandlingSettingsDtoOrigin {
|
|
7
|
+
Monitor = "MONITOR",
|
|
8
|
+
Tenant = "TENANT",
|
|
9
|
+
Default = "DEFAULT",
|
|
10
|
+
Unknown = "UNKNOWN"
|
|
11
|
+
}
|
|
@@ -22,4 +22,8 @@ export interface SyntheticMonitorOutageHandlingSettingsDto {
|
|
|
22
22
|
* Generate a problem and send an alert when the monitor is unavailable for one or more consecutive runs at any location.
|
|
23
23
|
*/
|
|
24
24
|
localOutages: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates the origin of these settings.
|
|
27
|
+
*/
|
|
28
|
+
origin?: 'MONITOR' | 'TENANT' | 'DEFAULT' | 'UNKNOWN';
|
|
25
29
|
}
|
|
@@ -7,27 +7,27 @@ export interface SyntheticMonitorPerformanceThresholdDto {
|
|
|
7
7
|
*/
|
|
8
8
|
aggregation?: 'AVG' | 'MAX' | 'MIN';
|
|
9
9
|
/**
|
|
10
|
-
* Number of most recent non-violating request executions that closes the problem
|
|
10
|
+
* Number of most recent non-violating request executions that closes the problem.
|
|
11
11
|
*/
|
|
12
12
|
dealertingSamples?: number;
|
|
13
13
|
/**
|
|
14
|
-
* Number of request executions in analyzed sliding window (sliding window size)
|
|
14
|
+
* Number of request executions in analyzed sliding window (sliding window size).
|
|
15
15
|
*/
|
|
16
16
|
samples?: number;
|
|
17
17
|
/**
|
|
18
|
-
* Specify the step's index to which a threshold applies.
|
|
18
|
+
* Specify the step's index to which a threshold applies. If threshold is monitor-level, no index is needed.
|
|
19
19
|
*/
|
|
20
20
|
stepIndex?: number;
|
|
21
21
|
/**
|
|
22
|
-
* Notify if monitor request takes longer than *X*
|
|
22
|
+
* Notify if monitor request takes longer than *X* time units to execute. For Network Availability monitors the time unit is milliseconds, for browser monitors - seconds.
|
|
23
23
|
*/
|
|
24
24
|
threshold: number;
|
|
25
25
|
/**
|
|
26
|
-
* Type of performance threshold
|
|
26
|
+
* Type of performance threshold.
|
|
27
27
|
*/
|
|
28
28
|
type?: 'MONITOR' | 'STEP';
|
|
29
29
|
/**
|
|
30
|
-
* Number of violating request executions in analyzed sliding window
|
|
30
|
+
* Number of violating request executions in analyzed sliding window.
|
|
31
31
|
*/
|
|
32
32
|
violatingSamples?: number;
|
|
33
33
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SyntheticMonitorOutageHandlingSettingsDto } from './synthetic-monitor-outage-handling-settings-dto';
|
|
2
2
|
import { SyntheticMonitorPerformanceThresholdsDto } from './synthetic-monitor-performance-thresholds-dto';
|
|
3
|
+
import { SyntheticMonitorPrimaryGrailTagDto } from './synthetic-monitor-primary-grail-tag-dto';
|
|
3
4
|
import { SyntheticMultiProtocolMonitorStepDto } from './synthetic-multi-protocol-monitor-step-dto';
|
|
4
5
|
import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
5
6
|
/**
|
|
@@ -30,6 +31,10 @@ export interface SyntheticMultiProtocolMonitorRequest {
|
|
|
30
31
|
* Performance thresholds configuration.
|
|
31
32
|
*/
|
|
32
33
|
performanceThresholds?: SyntheticMonitorPerformanceThresholdsDto;
|
|
34
|
+
/**
|
|
35
|
+
* Primary Grail tags as a list of key-value pairs. Up to 10 tags. Those fields are only available for SaaS and not for Managed.
|
|
36
|
+
*/
|
|
37
|
+
primaryGrailTags?: SyntheticMonitorPrimaryGrailTagDto[];
|
|
33
38
|
/**
|
|
34
39
|
* The steps of the monitor.
|
|
35
40
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SyntheticMonitorOutageHandlingSettingsDto } from './synthetic-monitor-outage-handling-settings-dto';
|
|
2
2
|
import { SyntheticMonitorPerformanceThresholdsDto } from './synthetic-monitor-performance-thresholds-dto';
|
|
3
|
+
import { SyntheticMonitorPrimaryGrailTagDto } from './synthetic-monitor-primary-grail-tag-dto';
|
|
3
4
|
import { SyntheticMultiProtocolMonitorStepDto } from './synthetic-multi-protocol-monitor-step-dto';
|
|
4
5
|
import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
5
6
|
/**
|
|
@@ -38,6 +39,10 @@ export interface SyntheticMultiProtocolMonitorResponse {
|
|
|
38
39
|
* Performance thresholds configuration.
|
|
39
40
|
*/
|
|
40
41
|
performanceThresholds?: SyntheticMonitorPerformanceThresholdsDto;
|
|
42
|
+
/**
|
|
43
|
+
* Primary Grail tags as a list of key-value pairs. Up to 10 tags. Those fields are only available for SaaS and not for Managed.
|
|
44
|
+
*/
|
|
45
|
+
primaryGrailTags?: SyntheticMonitorPrimaryGrailTagDto[];
|
|
41
46
|
/**
|
|
42
47
|
* The steps of the monitor.
|
|
43
48
|
*/
|
|
@@ -55,7 +55,7 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
55
55
|
/**
|
|
56
56
|
* The latitude of the location in `DDD.dddd` format.
|
|
57
57
|
*/
|
|
58
|
-
latitude
|
|
58
|
+
latitude: number;
|
|
59
59
|
/**
|
|
60
60
|
* Alert if location or node outage lasts longer than *X* minutes. \n\n Only applicable when `availabilityLocationOutage` or `availabilityNodeOutage` is set to `true`. Supported only for private Synthetic locations.
|
|
61
61
|
*/
|
|
@@ -63,7 +63,7 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
63
63
|
/**
|
|
64
64
|
* The longitude of the location in `DDD.dddd` format.
|
|
65
65
|
*/
|
|
66
|
-
longitude
|
|
66
|
+
longitude: number;
|
|
67
67
|
/**
|
|
68
68
|
* Containerized location property. The maximum number of ActiveGates deployed for the location (required for a Kubernetes location).
|
|
69
69
|
*/
|
|
@@ -82,7 +82,7 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
82
82
|
/**
|
|
83
83
|
* The name of the location.
|
|
84
84
|
*/
|
|
85
|
-
name
|
|
85
|
+
name: string;
|
|
86
86
|
/**
|
|
87
87
|
* Containerized location property. The size of a containerized node deployed for the location (required for a Kubernetes location). Accepted values:
|
|
88
88
|
*
|
|
@@ -10,5 +10,5 @@ export interface SyntheticPublicLocationUpdate extends SyntheticLocationUpdate {
|
|
|
10
10
|
* * `DISABLED`: The location is displayed as inactive in the UI. You can't assign monitors to the location. Monitors already assigned to the location will stay there and will be executed from the location.
|
|
11
11
|
* * `HIDDEN`: The location is not displayed in the UI. You can't assign monitors to the location. You can only set location as `HIDDEN` when no monitor is assigned to it.
|
|
12
12
|
*/
|
|
13
|
-
status
|
|
13
|
+
status: 'DISABLED' | 'ENABLED' | 'HIDDEN';
|
|
14
14
|
}
|
package/types/packages/client/classic-environment-v2/src/lib/models/transactional-evidence.d.ts
CHANGED
|
@@ -8,17 +8,17 @@ export interface TransactionalEvidence extends Evidence {
|
|
|
8
8
|
/**
|
|
9
9
|
* The end time of the evidence, in UTC milliseconds
|
|
10
10
|
*/
|
|
11
|
-
endTime
|
|
11
|
+
endTime: number;
|
|
12
12
|
/**
|
|
13
13
|
* The unit of the metric.
|
|
14
14
|
*/
|
|
15
|
-
unit
|
|
15
|
+
unit: string;
|
|
16
16
|
/**
|
|
17
17
|
* The metric's value after the problem start.
|
|
18
18
|
*/
|
|
19
|
-
valueAfterChangePoint
|
|
19
|
+
valueAfterChangePoint: number;
|
|
20
20
|
/**
|
|
21
21
|
* The metric's value before the problem start.
|
|
22
22
|
*/
|
|
23
|
-
valueBeforeChangePoint
|
|
23
|
+
valueBeforeChangePoint: number;
|
|
24
24
|
}
|
|
@@ -7,9 +7,9 @@ export interface ValidationWaitConditionDto extends BaseWaitConditionDto {
|
|
|
7
7
|
/**
|
|
8
8
|
* Validation timeout in milliseconds.
|
|
9
9
|
*/
|
|
10
|
-
timeoutInMilliseconds
|
|
10
|
+
timeoutInMilliseconds: number;
|
|
11
11
|
/**
|
|
12
12
|
* Validation rule of Browser Monitor step.
|
|
13
13
|
*/
|
|
14
|
-
validationRule
|
|
14
|
+
validationRule: ValidationRuleDto;
|
|
15
15
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { AbortController, AbortSignal, BaseError, Binary, BinaryFormDataRequestField, BinaryFormDataResponseField, DataTypeError, DataTypes, FormDataRequestBody, FormDataRequestField, FormDataResponseBody, FormDataResponseField, Headers, HttpClient, HttpClientAbortError, HttpClientNetworkError, HttpClientRequestError, HttpClientRequestOptions, HttpClientResponse, HttpClientResponseError, JsonFormDataRequestField, RequestBodyTypes, ResponseBodyTypes, StatusValidator, TextFormDataRequestField, TextFormDataResponseField, UnsupportedOperationError, isHttpClientResponseError, isHttpClientAbortError, isHttpClientNetworkError, isHttpClientRequestError, } from './lib/types';
|
|
2
|
-
export { AbortController as PlatformAbortController, AbortSignal as PlatformAbortSignal, BaseError as PlatformBaseError, Binary as PlatformBinary, DataTypeError as PlatformDataTypeError, HttpClient as PlatformHttpClient, HttpClientAbortError as PlatformHttpClientAbortError, HttpClientRequestError as PlatformHttpClientRequestError, HttpClientResponse as PlatformHttpClientResponse, HttpClientResponseError as PlatformHttpClientResponseError, OAuthHttpClient as _OAuthHttpClient, OAuthHttpClientConfig as _OAuthHttpClientConfig, UnsupportedOperationError as PlatformUnsupportedOperationError, httpClient, } from './lib/platform';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import type * as stream from 'stream';
|
|
4
|
-
import * as types from '../types';
|
|
5
|
-
export declare class Binary implements types.Binary {
|
|
6
|
-
readonly data: Blob | ArrayBuffer | ReadableStream<Uint8Array>;
|
|
7
|
-
static fromText(text: string): Binary;
|
|
8
|
-
static fromJson(json: any): Binary;
|
|
9
|
-
static from(data: Blob | ArrayBuffer | ReadableStream<Uint8Array> | Buffer | stream.Readable): Binary;
|
|
10
|
-
private constructor();
|
|
11
|
-
get<T extends keyof types.DataTypes>(type: T): types.DataTypes[T];
|
|
12
|
-
}
|
|
13
|
-
export declare function isBinary(body: any): body is Binary;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export declare function isTextContentType(contentType: string): boolean;
|
|
2
|
-
export declare function parseContentDisposition(contentDisposition: string): {
|
|
3
|
-
name: string;
|
|
4
|
-
fileName: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
export declare function parseFormDataBoundary(contentType: string): string | undefined;
|
|
7
|
-
export interface FormDataSection {
|
|
8
|
-
name: string;
|
|
9
|
-
headers: Record<string, string>;
|
|
10
|
-
rawData: Uint8Array;
|
|
11
|
-
text?: string;
|
|
12
|
-
file?: File;
|
|
13
|
-
fileName?: string;
|
|
14
|
-
payloadStartOffset?: number;
|
|
15
|
-
payloadEndOffset?: number;
|
|
16
|
-
headersStartOffset?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare class FormDataParser {
|
|
19
|
-
private sourceArray;
|
|
20
|
-
private boundary;
|
|
21
|
-
private currentChar;
|
|
22
|
-
private currentByte;
|
|
23
|
-
offset: number;
|
|
24
|
-
private utf8Decoder;
|
|
25
|
-
constructor(sourceArray: Uint8Array, boundary: string);
|
|
26
|
-
get previousByte(): number | undefined;
|
|
27
|
-
get previousChar(): string | undefined;
|
|
28
|
-
private next;
|
|
29
|
-
charAt(offset: number): string | null;
|
|
30
|
-
nextChar(): string | null;
|
|
31
|
-
nextByte(): number | null;
|
|
32
|
-
get nextTwoChars(): string;
|
|
33
|
-
findNextBoundaryOffset(startOffset?: number): number | null;
|
|
34
|
-
skipPastNextBoundary(): boolean;
|
|
35
|
-
readLine(): Uint8Array | null;
|
|
36
|
-
readSectionHeaders(): {
|
|
37
|
-
headersLength: number;
|
|
38
|
-
headers: Record<string, string>;
|
|
39
|
-
};
|
|
40
|
-
extractData(): {
|
|
41
|
-
payloadStartOffset: number;
|
|
42
|
-
payloadEndOffset: number;
|
|
43
|
-
data: Uint8Array;
|
|
44
|
-
};
|
|
45
|
-
parse(): FormDataSection[];
|
|
46
|
-
}
|
|
47
|
-
export declare function isAppleBrowser(): boolean;
|
|
48
|
-
export declare function parseMultipartFormDataResponse(response: Uint8Array, boundary: string): FormDataSection[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
export declare class HttpClientAbortError extends Error implements types.HttpClientAbortError {
|
|
3
|
-
readonly cause: any;
|
|
4
|
-
readonly name = "AbortError";
|
|
5
|
-
constructor(cause: any);
|
|
6
|
-
}
|
|
7
|
-
export declare const throwIfAbortError: (e: unknown) => void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
import { BaseError } from './base-error';
|
|
3
|
-
export declare class HttpClientRequestError extends BaseError implements types.HttpClientRequestError {
|
|
4
|
-
readonly cause: any;
|
|
5
|
-
readonly name = "RequestError";
|
|
6
|
-
constructor(cause: any);
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
import { HttpClientResponse } from './http-client-response';
|
|
3
|
-
import { BaseError } from './base-error';
|
|
4
|
-
export declare class HttpClientResponseError extends BaseError implements types.HttpClientResponseError {
|
|
5
|
-
readonly name = "ResponseError";
|
|
6
|
-
readonly response: HttpClientResponse;
|
|
7
|
-
readonly requestMethod?: string;
|
|
8
|
-
constructor(response: Response, data?: {
|
|
9
|
-
requestMethod?: string;
|
|
10
|
-
});
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
export declare class HttpClientResponse implements types.HttpClientResponse {
|
|
3
|
-
private response;
|
|
4
|
-
constructor(response: Response);
|
|
5
|
-
get url(): string;
|
|
6
|
-
get status(): number;
|
|
7
|
-
get statusText(): string;
|
|
8
|
-
get headers(): types.Headers;
|
|
9
|
-
body<T extends keyof types.ResponseBodyTypes = 'json'>(responseBodyType?: T): types.ResponseBodyTypes[T];
|
|
10
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
import { Headers } from '../types';
|
|
3
|
-
interface HttpClientConfiguration {
|
|
4
|
-
baseUrl?: string;
|
|
5
|
-
defaultHeaders?: Headers;
|
|
6
|
-
}
|
|
7
|
-
export declare class HttpClient implements types.HttpClient {
|
|
8
|
-
private _baseUrl;
|
|
9
|
-
private _defaultHeaders;
|
|
10
|
-
constructor(options?: HttpClientConfiguration);
|
|
11
|
-
/**
|
|
12
|
-
* Sets HTTP Client Instance baseUrl param to the incoming value `baseUrl`.
|
|
13
|
-
* @param baseUrl Base URL used in the request path.
|
|
14
|
-
*/
|
|
15
|
-
_setBaseURL(baseUrl: string): void;
|
|
16
|
-
/**
|
|
17
|
-
* Sets HTTP Client Instance defaultHeaders param to the incoming value `defaultHeaders`.
|
|
18
|
-
* @param defaultHeaders HTTP Headers to be used in outgoing requests.
|
|
19
|
-
*/
|
|
20
|
-
_setDefaultHeaders(defaultHeaders: Headers): void;
|
|
21
|
-
send<T extends keyof types.RequestBodyTypes = 'json'>(options: types.HttpClientRequestOptions<T>): Promise<types.HttpClientResponse>;
|
|
22
|
-
}
|
|
23
|
-
export declare const httpClient: HttpClient;
|
|
24
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './abort-controller';
|
|
2
|
-
export * from './abort-signal';
|
|
3
|
-
export * from './base-error';
|
|
4
|
-
export * from './binary';
|
|
5
|
-
export * from './data-type-error';
|
|
6
|
-
export * from './http-client';
|
|
7
|
-
export * from './http-client-abort-error';
|
|
8
|
-
export * from './http-client-request-error';
|
|
9
|
-
export * from './http-client-response';
|
|
10
|
-
export * from './http-client-response-error';
|
|
11
|
-
export * from './oauth-http-client';
|
|
12
|
-
export * from './unsupported-operation-error';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* DO NOT USE - internal use only.
|
|
4
|
-
*/
|
|
5
|
-
export interface OAuthHttpClientConfig {
|
|
6
|
-
clientId: string;
|
|
7
|
-
secret: string;
|
|
8
|
-
scopes: string[];
|
|
9
|
-
environmentUrl: string;
|
|
10
|
-
authUrl: string;
|
|
11
|
-
}
|
|
12
|
-
export interface OAuthTokenResponse {
|
|
13
|
-
scope: string;
|
|
14
|
-
token_type: string;
|
|
15
|
-
expires_in: number;
|
|
16
|
-
access_token: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* DO NOT USE - internal use only.
|
|
20
|
-
*/
|
|
21
|
-
export declare class OAuthToken {
|
|
22
|
-
private readonly _scope;
|
|
23
|
-
private readonly _tokenType;
|
|
24
|
-
private readonly _expirationDate;
|
|
25
|
-
private readonly _accessToken;
|
|
26
|
-
constructor(oauthTokenResponse: OAuthTokenResponse);
|
|
27
|
-
get scope(): string;
|
|
28
|
-
get tokenType(): string;
|
|
29
|
-
isExpired(): boolean;
|
|
30
|
-
get accessToken(): string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* DO NOT USE - internal use only.
|
|
34
|
-
*/
|
|
35
|
-
export declare class OAuthHttpClient implements types.HttpClient {
|
|
36
|
-
private readonly config;
|
|
37
|
-
private oauthToken?;
|
|
38
|
-
constructor(config: OAuthHttpClientConfig);
|
|
39
|
-
send<T extends keyof types.RequestBodyTypes = 'json'>(options: types.HttpClientRequestOptions<T>): Promise<types.HttpClientResponse>;
|
|
40
|
-
private requestToken;
|
|
41
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as types from '../types';
|
|
2
|
-
import { BaseError } from './base-error';
|
|
3
|
-
export declare class UnsupportedOperationError extends BaseError implements types.UnsupportedOperationError {
|
|
4
|
-
readonly name = "UnsupportedOperationError";
|
|
5
|
-
constructor(message: string, cause?: any);
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AbortSignal } from './abort-signal';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a controller object that allows to abort one or more requests as and when desired.
|
|
4
|
-
*/
|
|
5
|
-
export interface AbortController {
|
|
6
|
-
/**
|
|
7
|
-
* Aborts a request before it has completed.
|
|
8
|
-
*/
|
|
9
|
-
abort(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Returns an AbortSignal object instance, which can be used to communicate with a request.
|
|
12
|
-
*/
|
|
13
|
-
signal: AbortSignal;
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a signal object that allows to communicate with the request and abort it using the `AbortController`.
|
|
3
|
-
* @deprecated Will be removed from HttpClient. We encourage using native interface for AbortSignal.
|
|
4
|
-
*/
|
|
5
|
-
interface HttpClientAbortSignal extends EventTarget {
|
|
6
|
-
readonly reason: any;
|
|
7
|
-
throwIfAborted(): void;
|
|
8
|
-
/**
|
|
9
|
-
* A flag indicating whether the requests the signal is communicating with are aborted.
|
|
10
|
-
*/
|
|
11
|
-
readonly aborted: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Invoked when the requests the signal is communicating with are aborted.
|
|
14
|
-
*/
|
|
15
|
-
onabort: ((this: AbortSignal, event: Event) => void) | null;
|
|
16
|
-
}
|
|
17
|
-
export type AbortSignal = HttpClientAbortSignal | globalThis.AbortSignal;
|
|
18
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DataTypes } from './data-types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an environment agnostic (browser vs node) abstraction layer for binary data.
|
|
4
|
-
*/
|
|
5
|
-
export interface Binary {
|
|
6
|
-
/**
|
|
7
|
-
* Returns the binary data in a form that conforms to the specified type.
|
|
8
|
-
*
|
|
9
|
-
* @param type The type of the data.
|
|
10
|
-
* Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
|
|
11
|
-
* @throws {DataTypeError} Data does not conform to the specified type.
|
|
12
|
-
* @throws {UnsupportedOperationError} Type is not supported by the platform.
|
|
13
|
-
*/
|
|
14
|
-
get<T extends keyof DataTypes>(type: T): DataTypes[T];
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a situation when the response body does not conform to the specified response body type.
|
|
3
|
-
*/
|
|
4
|
-
import { BaseError } from './base-error';
|
|
5
|
-
export interface DataTypeError extends BaseError {
|
|
6
|
-
/**
|
|
7
|
-
* The error name.
|
|
8
|
-
*/
|
|
9
|
-
readonly name: 'DataTypeError';
|
|
10
|
-
/**
|
|
11
|
-
* The error root cause.
|
|
12
|
-
*/
|
|
13
|
-
readonly cause?: any;
|
|
14
|
-
}
|