@dynatrace-sdk/client-classic-environment-v2 4.2.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +2105 -565
- package/cjs/index.js +4215 -3633
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +2368 -1988
- package/package.json +3 -4
- package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-active-gate-tokens-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-agent-tokens-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-api-tokens-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-tenant-tokens-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-active-gate-groups-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-configuration-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-jobs-api.d.ts +1 -1
- package/types/packages/{shared-client-utils/src → client/classic-environment-v2/src/lib/apis}/api-client-options.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/attacks-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/audit-logs-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/business-events-api.d.ts +1 -1
- 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/davis-security-advisor-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/events-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 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +16 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-units-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-custom-tags-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-monitoring-state-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/network-zones-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/problems-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/releases-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/rum-manual-insertion-tags-api.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/apis/security-problems-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/service-level-objectives-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-management-zones-api.d.ts +1 -1
- 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-http-monitor-executions-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +3 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +7 -5
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-on-demand-monitor-executions-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/api-gateway-errors-handler.d.ts +2 -0
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/get-error-message.d.ts +1 -0
- 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/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/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/deletion-constraint.d.ts +4 -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.d.ts +4 -4
- 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.d.ts +2 -2
- 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/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 +59 -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/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/monitor-property-dto.d.ts +13 -0
- 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/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.d.ts +9 -0
- 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/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/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/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/synthetic-browser-monitor-configuration-dto.d.ts +85 -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 +65 -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 +77 -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-cookie-dto.d.ts +21 -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 +1 -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 +3 -3
- 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 +9 -0
- 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/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/client/classic-environment-v2/src/lib/utils/encoding.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/utils/transformations.d.ts +8 -0
- package/types/packages/client/classic-environment-v2/src/lib/utils/url-helpers.d.ts +6 -0
- package/types/packages/shared-errors/src/client-request-error.d.ts +1 -1
- package/types/packages/shared-errors/src/types.d.ts +1 -1
- package/types/packages/shared-client-utils/src/api-gateway-errors-handler.d.ts +0 -9
- package/types/packages/shared-client-utils/src/encoding.d.ts +0 -17
- package/types/packages/shared-client-utils/src/get-error-message.d.ts +0 -8
- package/types/packages/shared-client-utils/src/index.d.ts +0 -6
- package/types/packages/shared-client-utils/src/transformations.d.ts +0 -64
- package/types/packages/shared-client-utils/src/url-helpers.d.ts +0 -12
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { KeyPerformanceMetrics } from './key-performance-metrics';
|
|
2
|
+
import { SyntheticBrowserMonitorConfigurationDto } from './synthetic-browser-monitor-configuration-dto';
|
|
3
|
+
import { SyntheticBrowserMonitorStepDto } from './synthetic-browser-monitor-step-dto';
|
|
4
|
+
import { SyntheticMonitorOutageHandlingSettingsDto } from './synthetic-monitor-outage-handling-settings-dto';
|
|
5
|
+
import { SyntheticMonitorPerformanceThresholdsDto } from './synthetic-monitor-performance-thresholds-dto';
|
|
6
|
+
import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
7
|
+
/**
|
|
8
|
+
* Browser Monitor.
|
|
9
|
+
*/
|
|
10
|
+
export interface SyntheticBrowserMonitorResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Automatically assigned entities.
|
|
13
|
+
*/
|
|
14
|
+
automaticallyAssignedEntities?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Browser Monitor configuration.
|
|
17
|
+
*/
|
|
18
|
+
configuration: SyntheticBrowserMonitorConfigurationDto;
|
|
19
|
+
/**
|
|
20
|
+
* Monitor description
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the monitor is enabled.
|
|
25
|
+
*/
|
|
26
|
+
enabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The entity id of the monitor.
|
|
29
|
+
*/
|
|
30
|
+
entityId: string;
|
|
31
|
+
/**
|
|
32
|
+
* The frequency of the monitor, in minutes.
|
|
33
|
+
*/
|
|
34
|
+
frequencyMin?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The key performance metrics configuration.
|
|
37
|
+
*/
|
|
38
|
+
keyPerformanceMetrics: KeyPerformanceMetrics;
|
|
39
|
+
/**
|
|
40
|
+
* The locations to which the monitor is assigned.
|
|
41
|
+
*/
|
|
42
|
+
locations?: string[];
|
|
43
|
+
/**
|
|
44
|
+
* Manually assigned entities.
|
|
45
|
+
*/
|
|
46
|
+
manuallyAssignedEntities?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* The timestamp of the last modification
|
|
49
|
+
*/
|
|
50
|
+
modificationTimestamp?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the monitor.
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Performance thresholds configuration.
|
|
57
|
+
*/
|
|
58
|
+
performanceThresholds?: SyntheticMonitorPerformanceThresholdsDto;
|
|
59
|
+
/**
|
|
60
|
+
* The steps of the monitor.
|
|
61
|
+
*/
|
|
62
|
+
steps: SyntheticBrowserMonitorStepDto[];
|
|
63
|
+
/**
|
|
64
|
+
* Outage handling configuration.
|
|
65
|
+
*/
|
|
66
|
+
syntheticMonitorOutageHandlingSettings: SyntheticMonitorOutageHandlingSettingsDto;
|
|
67
|
+
/**
|
|
68
|
+
* A set of tags assigned to the monitor.
|
|
69
|
+
*
|
|
70
|
+
* You can specify only the value of the tag here and the `CONTEXTLESS` context and source 'USER' will be added automatically. But preferred option is usage of SyntheticTagWithSourceDto model.
|
|
71
|
+
*/
|
|
72
|
+
tags?: SyntheticTagWithSourceDto[];
|
|
73
|
+
/**
|
|
74
|
+
* Monitor type.
|
|
75
|
+
*/
|
|
76
|
+
type: 'MULTI_PROTOCOL' | 'BROWSER';
|
|
77
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the actual set of fields depending on the value. See one of the following objects:
|
|
3
|
+
*
|
|
4
|
+
* * `NAVIGATE` -> NavigateStepDto
|
|
5
|
+
* * `CLICK` -> InteractionStepDto
|
|
6
|
+
* * `TAP` -> InteractionStepDto
|
|
7
|
+
* * `KEYSTROKES` -> KeyStrokesStepDto
|
|
8
|
+
* * `JAVASCRIPT` -> JavaScriptStepDto
|
|
9
|
+
* * `SELECT_OPTION` -> SelectOptionStepDto
|
|
10
|
+
* * `COOKIE` -> CookieStepDto
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Use literal values.
|
|
13
|
+
*/
|
|
14
|
+
export declare enum SyntheticBrowserMonitorStepDtoType {
|
|
15
|
+
Click = "CLICK",
|
|
16
|
+
Cookie = "COOKIE",
|
|
17
|
+
Javascript = "JAVASCRIPT",
|
|
18
|
+
Keystrokes = "KEYSTROKES",
|
|
19
|
+
Navigate = "NAVIGATE",
|
|
20
|
+
SelectOption = "SELECT_OPTION",
|
|
21
|
+
Tap = "TAP"
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base step of Browser Monitor.
|
|
3
|
+
*/
|
|
4
|
+
export interface SyntheticBrowserMonitorStepDto {
|
|
5
|
+
/**
|
|
6
|
+
* Entity Id.
|
|
7
|
+
*/
|
|
8
|
+
entityId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of Browser Monitor step.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the actual set of fields depending on the value. See one of the following objects:
|
|
15
|
+
*
|
|
16
|
+
* * `NAVIGATE` -> NavigateStepDto
|
|
17
|
+
* * `CLICK` -> InteractionStepDto
|
|
18
|
+
* * `TAP` -> InteractionStepDto
|
|
19
|
+
* * `KEYSTROKES` -> KeyStrokesStepDto
|
|
20
|
+
* * `JAVASCRIPT` -> JavaScriptStepDto
|
|
21
|
+
* * `SELECT_OPTION` -> SelectOptionStepDto
|
|
22
|
+
* * `COOKIE` -> CookieStepDto
|
|
23
|
+
*/
|
|
24
|
+
type: 'CLICK' | 'COOKIE' | 'JAVASCRIPT' | 'KEYSTROKES' | 'NAVIGATE' | 'SELECT_OPTION' | 'TAP';
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cookie dto for Synthetic Monitor step.
|
|
3
|
+
*/
|
|
4
|
+
export interface SyntheticMonitorCookieDto {
|
|
5
|
+
/**
|
|
6
|
+
* Cookie domain.
|
|
7
|
+
*/
|
|
8
|
+
domain: string;
|
|
9
|
+
/**
|
|
10
|
+
* Cookie name.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Cookie path.
|
|
15
|
+
*/
|
|
16
|
+
path?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Cookie value.
|
|
19
|
+
*/
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
@@ -25,7 +25,7 @@ export interface SyntheticMultiProtocolMonitorResponse {
|
|
|
25
25
|
/**
|
|
26
26
|
* The locations to which the monitor is assigned.
|
|
27
27
|
*/
|
|
28
|
-
locations
|
|
28
|
+
locations?: string[];
|
|
29
29
|
/**
|
|
30
30
|
* The timestamp of the last modification
|
|
31
31
|
*/
|
|
@@ -33,7 +33,7 @@ export interface SyntheticMultiProtocolMonitorResponse {
|
|
|
33
33
|
/**
|
|
34
34
|
* The name of the monitor.
|
|
35
35
|
*/
|
|
36
|
-
name
|
|
36
|
+
name?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Performance thresholds configuration.
|
|
39
39
|
*/
|
|
@@ -55,5 +55,5 @@ export interface SyntheticMultiProtocolMonitorResponse {
|
|
|
55
55
|
/**
|
|
56
56
|
* Monitor type.
|
|
57
57
|
*/
|
|
58
|
-
type: 'MULTI_PROTOCOL' | 'BROWSER'
|
|
58
|
+
type: 'MULTI_PROTOCOL' | 'BROWSER';
|
|
59
59
|
}
|
|
@@ -43,6 +43,15 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
43
43
|
* * `KUBERNETES`: The location is deployed on Kubernetes.
|
|
44
44
|
*/
|
|
45
45
|
deploymentType?: 'KUBERNETES' | 'OPENSHIFT' | 'STANDARD' | 'UNKNOWN';
|
|
46
|
+
/**
|
|
47
|
+
* Containerized location property indicating whether FIPS mode is enabled on this location:
|
|
48
|
+
*
|
|
49
|
+
* * `DISABLED`: FIPS is not enabled on the location.
|
|
50
|
+
* * `ENABLED`: FIPS is enabled on the location.
|
|
51
|
+
* * `ENABLED_WITH_CORPORATE_PROXY`: FIPS with corporate proxy is enabled on this location.
|
|
52
|
+
* Default: DISABLED
|
|
53
|
+
*/
|
|
54
|
+
fipsMode?: 'DISABLED' | 'ENABLED' | 'ENABLED_WITH_CORPORATE_PROXY';
|
|
46
55
|
/**
|
|
47
56
|
* The latitude of the location in `DDD.dddd` format.
|
|
48
57
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test device of a Browser Monitor.
|
|
3
|
+
*/
|
|
4
|
+
export interface TestDeviceDto {
|
|
5
|
+
/**
|
|
6
|
+
* Device height in px.
|
|
7
|
+
*/
|
|
8
|
+
height: number;
|
|
9
|
+
/**
|
|
10
|
+
* Device is mobile. If not defined in request, it will be set to false by default.
|
|
11
|
+
*/
|
|
12
|
+
mobile?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Device name.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Device is touch enabled. If not defined in request, it will be set to false by default.
|
|
19
|
+
*/
|
|
20
|
+
touchEnabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Device width in px.
|
|
23
|
+
*/
|
|
24
|
+
width: number;
|
|
25
|
+
}
|
package/types/packages/client/classic-environment-v2/src/lib/models/time-wait-condition-dto.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseWaitConditionDto } from './base-wait-condition-dto';
|
|
2
|
+
/**
|
|
3
|
+
* Time wait condition for Browser Monitor step.
|
|
4
|
+
*/
|
|
5
|
+
export interface TimeWaitConditionDto extends BaseWaitConditionDto {
|
|
6
|
+
/**
|
|
7
|
+
* Wait time in milliseconds.
|
|
8
|
+
*/
|
|
9
|
+
milliseconds?: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Timeout settings of a Browser Monitor.
|
|
3
|
+
*/
|
|
4
|
+
export interface TimeoutSettingsDto {
|
|
5
|
+
/**
|
|
6
|
+
* Cascading setTimeout calls number limit. If not defined in request, it will be set to 1 by default.
|
|
7
|
+
*/
|
|
8
|
+
temporaryActionLimit?: number;
|
|
9
|
+
/**
|
|
10
|
+
* No additional timeout actions will be created once this time limit is reached. Value must be higher than 0 ms. If not defined in request, it will be set to 100 by default.
|
|
11
|
+
*/
|
|
12
|
+
temporaryActionTotalTimeout?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TargetDto } from './target-dto';
|
|
2
|
+
/**
|
|
3
|
+
* Validation rule of Browser Monitor step.
|
|
4
|
+
*/
|
|
5
|
+
export interface ValidationRuleDto {
|
|
6
|
+
/**
|
|
7
|
+
* Boolean value, true if we should fail on found pattern. If not defined in request, it will be set to false by default.
|
|
8
|
+
*/
|
|
9
|
+
failIfFound: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Text pattern that should match on the website.
|
|
12
|
+
*/
|
|
13
|
+
matchingPattern: string;
|
|
14
|
+
/**
|
|
15
|
+
* Boolean value, true if the "matchingPattern" value is a regex. If not defined in request, it will be set to false by default.
|
|
16
|
+
*/
|
|
17
|
+
regex?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Target of Browser Monitor step.
|
|
20
|
+
*/
|
|
21
|
+
target?: TargetDto;
|
|
22
|
+
/**
|
|
23
|
+
* Type of validation.
|
|
24
|
+
*/
|
|
25
|
+
type: 'TEXT_MATCH' | 'CONTENT_MATCH' | 'ELEMENT_MATCH';
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseWaitConditionDto } from './base-wait-condition-dto';
|
|
2
|
+
import { ValidationRuleDto } from './validation-rule-dto';
|
|
3
|
+
/**
|
|
4
|
+
* Validation wait condition for Browser Monitor step.
|
|
5
|
+
*/
|
|
6
|
+
export interface ValidationWaitConditionDto extends BaseWaitConditionDto {
|
|
7
|
+
/**
|
|
8
|
+
* Validation timeout in milliseconds.
|
|
9
|
+
*/
|
|
10
|
+
timeoutInMilliseconds?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Validation rule of Browser Monitor step.
|
|
13
|
+
*/
|
|
14
|
+
validationRule?: ValidationRuleDto;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Visually Complete Options of a Browser Monitor.
|
|
3
|
+
*/
|
|
4
|
+
export interface VisuallyCompleteOptionsDto {
|
|
5
|
+
/**
|
|
6
|
+
* Query CSS selectors to specify mutation nodes (elements that change) to ignore in Visually complete and Speed index calculation.
|
|
7
|
+
*/
|
|
8
|
+
excludedElements?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Use regular expressions to define URLs for images and iFrames to exclude from detection by the Visually complete module.
|
|
11
|
+
*/
|
|
12
|
+
excludedUrls?: string[];
|
|
13
|
+
/**
|
|
14
|
+
* Use this setting to define the minimum visible area per element (in pixels) for an element to be counted towards Visually complete and Speed index. If not defined in request, it will be set to 50 by default.
|
|
15
|
+
*/
|
|
16
|
+
imageSizeThreshold?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The time the Visually complete module waits for inactivity and no further mutations on the page after the load action. If not defined in request, it will be set to 1000 by default.
|
|
19
|
+
*/
|
|
20
|
+
inactivityTimeout?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The time the Visually complete module waits after an XHR or custom action closes to start the calculation. If not defined in request, it will be set to 50 by default.
|
|
23
|
+
*/
|
|
24
|
+
mutationTimeout?: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Available formats to transform models to and from
|
|
3
|
+
*/
|
|
4
|
+
export declare enum Encoding {
|
|
5
|
+
Json = "json",
|
|
6
|
+
Text = "text",
|
|
7
|
+
Binary = "binary",
|
|
8
|
+
FormData = "form-data"
|
|
9
|
+
}
|
|
10
|
+
export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type TransformRuleConfig = {
|
|
2
|
+
force?: boolean;
|
|
3
|
+
datetime?: boolean;
|
|
4
|
+
};
|
|
5
|
+
type TransformRulesParam = Array<string | [string, TransformRuleConfig]>;
|
|
6
|
+
export declare function transformRequest<T = any>(object: T, rules: TransformRulesParam): T;
|
|
7
|
+
export declare function transformResponse<T = any>(object: T, rules: TransformRulesParam): T;
|
|
8
|
+
export {};
|
|
@@ -36,4 +36,4 @@ export declare class ClientRequestError<DTO = ErrorResponseBody> extends ApiClie
|
|
|
36
36
|
* }
|
|
37
37
|
* }
|
|
38
38
|
*/
|
|
39
|
-
export declare function isClientRequestError(e: any): e is ClientRequestError
|
|
39
|
+
export declare function isClientRequestError<T = ErrorResponseBody>(e: any): e is ClientRequestError<T>;
|
|
@@ -16,7 +16,7 @@ export interface ErrorResponseBody<T = CommonApiError> {
|
|
|
16
16
|
/**
|
|
17
17
|
* Common API error structure, established by Dynatrace API guidelines.
|
|
18
18
|
* */
|
|
19
|
-
export interface CommonApiError<T extends Record<string, any> = Record<string, any>> {
|
|
19
|
+
export interface CommonApiError<T extends CommonErrorDetails & Record<string, any> = CommonErrorDetails & Record<string, any>> {
|
|
20
20
|
/** The error code should be set to the HTTP error code by default.<br>
|
|
21
21
|
* The error code may be set to an API-specific error code which must be properly documented.*/
|
|
22
22
|
code: number;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HttpClientResponse } from '@dynatrace-sdk/http-client';
|
|
2
|
-
/**
|
|
3
|
-
* Handles errors from API Gateway responses.
|
|
4
|
-
* Throws an ApiGatewayError if the response source is 'API Gateway'.
|
|
5
|
-
*
|
|
6
|
-
* @param {HttpClientResponse} response - The HTTP response to check for API Gateway errors.
|
|
7
|
-
* @throws {ApiGatewayError} If the response is from API Gateway and contains an error.
|
|
8
|
-
*/
|
|
9
|
-
export declare function apiGatewayErrorsHandler(response: HttpClientResponse): Promise<void>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Available formats to transform models to and from
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Encoding {
|
|
5
|
-
Json = "json",
|
|
6
|
-
Text = "text",
|
|
7
|
-
Binary = "binary",
|
|
8
|
-
FormData = "form-data"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Maps a MIME type string to an Encoding.
|
|
12
|
-
*
|
|
13
|
-
* @param {string} mimeType - The MIME type to convert (e.g., 'application/json').
|
|
14
|
-
* @param {Encoding} [defaultEncoding] - The encoding to return if the MIME type isn't recognized.
|
|
15
|
-
* @returns {Encoding} The corresponding Encoding enum value, or the defaultEncoding if not recognized.
|
|
16
|
-
*/
|
|
17
|
-
export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a user-friendly error message from an error body object.
|
|
3
|
-
*
|
|
4
|
-
* @param {unknown} errorBody - The error object or response body to extract the message from.
|
|
5
|
-
* @param {string} defaultMessage - The default message to use if no error message is found.
|
|
6
|
-
* @returns {string} The extracted or default error message, possibly including details.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getErrorMessage(errorBody: unknown, defaultMessage: string): string;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { FormDataRequestBody, FormDataRequestField, FormDataResponseBody } from '@dynatrace-sdk/http-client';
|
|
2
|
-
export type TransformRuleConfig = {
|
|
3
|
-
force?: boolean;
|
|
4
|
-
datetime?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type TransformRulesParam = Array<string | [string, TransformRuleConfig]>;
|
|
7
|
-
/**
|
|
8
|
-
* Transforms an object by applying transformation rules before sending it in a request.
|
|
9
|
-
*
|
|
10
|
-
* @template T
|
|
11
|
-
* @param {T} object - The object to transform.
|
|
12
|
-
* @param {TransformRulesParam} rules - The transformation rules to apply.
|
|
13
|
-
* @returns {T} The transformed object.
|
|
14
|
-
*/
|
|
15
|
-
export declare function transformRequest<T = any>(object: T, rules: TransformRulesParam): T;
|
|
16
|
-
/**
|
|
17
|
-
* Transforms an object by applying transformation rules after receiving it in a response.
|
|
18
|
-
*
|
|
19
|
-
* @template T
|
|
20
|
-
* @param {T} object - The object to transform.
|
|
21
|
-
* @param {TransformRulesParam} rules - The transformation rules to apply.
|
|
22
|
-
* @returns {T} The transformed object.
|
|
23
|
-
*/
|
|
24
|
-
export declare function transformResponse<T = any>(object: T, rules: TransformRulesParam): T;
|
|
25
|
-
export interface FormDataRequestFieldDefinition {
|
|
26
|
-
key: string;
|
|
27
|
-
type: 'text' | 'json' | 'binary';
|
|
28
|
-
required: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface FormDataResponseGenericFieldDefinition {
|
|
31
|
-
type: 'text' | 'binary';
|
|
32
|
-
}
|
|
33
|
-
export interface FormDataResponseJsonFieldDefinition {
|
|
34
|
-
type: 'json';
|
|
35
|
-
transformations: Array<string | [string, TransformRuleConfig]>;
|
|
36
|
-
}
|
|
37
|
-
export type FormDataResponseFieldDefinition = FormDataResponseGenericFieldDefinition | FormDataResponseJsonFieldDefinition;
|
|
38
|
-
/**
|
|
39
|
-
* Converts an object to a FormDataRequestBody using field definitions.
|
|
40
|
-
*
|
|
41
|
-
* @template T
|
|
42
|
-
* @param {T} value - The object to convert.
|
|
43
|
-
* @param {Array<FormDataRequestFieldDefinition>} fields - The field definitions for the form data.
|
|
44
|
-
* @returns {FormDataRequestBody} The resulting form data body.
|
|
45
|
-
*/
|
|
46
|
-
export declare function transformToFormData<T extends Record<any, any>>(value: T, fields: Array<FormDataRequestFieldDefinition>): FormDataRequestBody;
|
|
47
|
-
/**
|
|
48
|
-
* Converts a value to a FormDataRequestField based on the field definition.
|
|
49
|
-
*
|
|
50
|
-
* @template T
|
|
51
|
-
* @param {T} value - The value to convert.
|
|
52
|
-
* @param {FormDataRequestFieldDefinition} field - The field definition.
|
|
53
|
-
* @returns {FormDataRequestField | null} The resulting form data field or null if not required and undefined.
|
|
54
|
-
*/
|
|
55
|
-
export declare function transformToFormDataField<T = any>(value: T, field: FormDataRequestFieldDefinition): FormDataRequestField | null;
|
|
56
|
-
/**
|
|
57
|
-
* Converts form data and field definitions into a typed object, applying transformations for JSON fields.
|
|
58
|
-
*
|
|
59
|
-
* @template T
|
|
60
|
-
* @param {FormDataResponseBody} formData - The form data to convert.
|
|
61
|
-
* @param {Record<string, FormDataResponseFieldDefinition>} fields - The field definitions for the form data.
|
|
62
|
-
* @returns {T} The resulting typed object.
|
|
63
|
-
*/
|
|
64
|
-
export declare function transformFromFormData<T extends Record<any, any>>(formData: FormDataResponseBody, fields: Record<string, FormDataResponseFieldDefinition>): T;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
2
|
-
export interface ParametersFlags {
|
|
3
|
-
explode?: Record<string, boolean>;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Converts an object of query parameters into a URL query string.
|
|
7
|
-
*
|
|
8
|
-
* @param {QueryParamsType} [rawQuery] - The object containing query parameters.
|
|
9
|
-
* @param {ParametersFlags} [flags] - Flags to control parameter formatting (e.g., explode arrays).
|
|
10
|
-
* @returns {string} The resulting query string.
|
|
11
|
-
*/
|
|
12
|
-
export declare const toQueryString: (rawQuery?: QueryParamsType, flags?: ParametersFlags) => string;
|