@dynatrace-sdk/client-classic-environment-v2 3.7.2 → 4.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 +23 -0
- package/README.md +1069 -817
- package/cjs/index.js +4159 -3871
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +2638 -2153
- package/package.json +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-active-gate-tokens-api.d.ts +2 -3
- 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 +3 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-configuration-api.d.ts +5 -27
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-jobs-api.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 +5 -3
- 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 +2 -5
- package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +146 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +1 -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/security-problems-api.d.ts +8 -13
- package/types/packages/client/classic-environment-v2/src/lib/apis/service-level-objectives-api.d.ts +4 -6
- 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 +10 -6
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-http-monitor-executions-api.d.ts +2 -5
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +4 -8
- 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/apis/synthetic-on-demand-monitor-executions-api.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-os-architecture.d.ts +2 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/active-gate.d.ts +5 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/alert-template-dto.d.ts +3 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto-type.d.ts +2 -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/certificate-credentials.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/credentials.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/deletion-constraint-type.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/deletion-constraint.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-dto-status.d.ts +3 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-dto.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-with-id-dto-status.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-with-id-dto.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/feature-set-details.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/get-all-active-gates-query-os-architecture.d.ts +2 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +9 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/location-collection-element.d.ts +6 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-descriptor-transformations-item.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-descriptor.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-states-state.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-states.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/private-synthetic-location.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto-type.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto.d.ts +5 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-type.d.ts +9 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto.d.ts +5 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/{synthetic-multi-protocol-monitor-update-dto-type.d.ts → synthetic-multi-protocol-monitor-request-type.d.ts} +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/{synthetic-multi-protocol-monitor-update-dto.d.ts → synthetic-multi-protocol-monitor-request.d.ts} +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/{synthetic-multi-protocol-monitor-dto-type.d.ts → synthetic-multi-protocol-monitor-response-type.d.ts} +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/{synthetic-multi-protocol-monitor-dto.d.ts → synthetic-multi-protocol-monitor-response.d.ts} +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-private-location-update.d.ts +21 -4
- package/types/packages/{client/classic-environment-v2/src/lib/apis → shared-client-utils/src}/api-client-options.d.ts +1 -1
- package/types/packages/shared-client-utils/src/api-gateway-errors-handler.d.ts +9 -0
- package/types/packages/shared-client-utils/src/encoding.d.ts +17 -0
- package/types/packages/shared-client-utils/src/get-error-message.d.ts +8 -0
- package/types/packages/shared-client-utils/src/index.d.ts +6 -0
- package/types/packages/shared-client-utils/src/transformations.d.ts +64 -0
- package/types/packages/shared-client-utils/src/url-helpers.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/api-gateway-errors-handler.d.ts +0 -2
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/get-error-message.d.ts +0 -1
- package/types/packages/client/classic-environment-v2/src/lib/utils/encoding.d.ts +0 -10
- package/types/packages/client/classic-environment-v2/src/lib/utils/transformations.d.ts +0 -8
- package/types/packages/client/classic-environment-v2/src/lib/utils/url-helpers.d.ts +0 -6
|
@@ -36,6 +36,7 @@ export declare enum MonitoredEntityStatesState {
|
|
|
36
36
|
ProcessGroupDisabledViaGlobalSettings = "process_group_disabled_via_global_settings",
|
|
37
37
|
ProcessGroupDisabledViaInjectionRule = "process_group_disabled_via_injection_rule",
|
|
38
38
|
ProcessGroupDisabledViaInjectionRuleRestart = "process_group_disabled_via_injection_rule_restart",
|
|
39
|
+
ProcessGroupPgrGroupUpdateSuppressed = "process_group_pgr_group_update_suppressed",
|
|
39
40
|
RestartRequired = "restart_required",
|
|
40
41
|
RestartRequiredApache = "restart_required_apache",
|
|
41
42
|
RestartRequiredDockerDeamon = "restart_required_docker_deamon",
|
package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-states.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export interface MonitoredEntityStates {
|
|
|
18
18
|
/**
|
|
19
19
|
* The name of the monitoring state.
|
|
20
20
|
*/
|
|
21
|
-
state?: 'agent_injection_status_go_dynamizer_failed' | 'agent_injection_status_go_fips_detected_but_feature_disabled' | 'agent_injection_status_go_pclntab_failed' | 'agent_injection_status_go_vertigo_support_added' | 'agent_injection_status_nginx_patched_binary_detected' | 'agent_injection_status_php_opcache_disabled' | 'agent_injection_status_php_stack_size_too_low' | 'agent_injection_suppression' | 'aix_enable_full_monitoring_needed' | 'bad_installer' | 'boshbpm_disabled' | 'container_injection_failed' | 'containerd_disabled' | 'crio_disabled' | 'custom_pg_rule_required' | 'deep_monitoring_successful' | 'deep_monitoring_unsuccessful' | 'docker_disabled' | 'garden_disabled' | 'host_infra_structure_only' | 'host_monitoring_disabled' | 'network_agent_inactive' | 'ok' | 'parent_process_restart_required' | 'podman_disabled' | 'process_group_different_id_due_to_declarative_grouping' | 'process_group_disabled' | 'process_group_disabled_via_container_injection_rule' | 'process_group_disabled_via_container_injection_rule_restart' | 'process_group_disabled_via_global_settings' | 'process_group_disabled_via_injection_rule' | 'process_group_disabled_via_injection_rule_restart' | 'restart_required' | 'restart_required_apache' | 'restart_required_docker_deamon' | 'restart_required_host_group_inconsistent' | 'restart_required_host_id_inconsistent' | 'restart_required_outdated_agent_apache_update' | 'restart_required_outdated_agent_injected' | 'restart_required_using_different_data_storage_dir' | 'restart_required_using_different_log_path' | 'restart_required_virtualized_container' | 'unsupported_state' | 'winc_disabled';
|
|
21
|
+
state?: 'agent_injection_status_go_dynamizer_failed' | 'agent_injection_status_go_fips_detected_but_feature_disabled' | 'agent_injection_status_go_pclntab_failed' | 'agent_injection_status_go_vertigo_support_added' | 'agent_injection_status_nginx_patched_binary_detected' | 'agent_injection_status_php_opcache_disabled' | 'agent_injection_status_php_stack_size_too_low' | 'agent_injection_suppression' | 'aix_enable_full_monitoring_needed' | 'bad_installer' | 'boshbpm_disabled' | 'container_injection_failed' | 'containerd_disabled' | 'crio_disabled' | 'custom_pg_rule_required' | 'deep_monitoring_successful' | 'deep_monitoring_unsuccessful' | 'docker_disabled' | 'garden_disabled' | 'host_infra_structure_only' | 'host_monitoring_disabled' | 'network_agent_inactive' | 'ok' | 'parent_process_restart_required' | 'podman_disabled' | 'process_group_different_id_due_to_declarative_grouping' | 'process_group_disabled' | 'process_group_disabled_via_container_injection_rule' | 'process_group_disabled_via_container_injection_rule_restart' | 'process_group_disabled_via_global_settings' | 'process_group_disabled_via_injection_rule' | 'process_group_disabled_via_injection_rule_restart' | 'process_group_pgr_group_update_suppressed' | 'restart_required' | 'restart_required_apache' | 'restart_required_docker_deamon' | 'restart_required_host_group_inconsistent' | 'restart_required_host_id_inconsistent' | 'restart_required_outdated_agent_apache_update' | 'restart_required_outdated_agent_injected' | 'restart_required_using_different_data_storage_dir' | 'restart_required_using_different_log_path' | 'restart_required_virtualized_container' | 'unsupported_state' | 'winc_disabled';
|
|
22
22
|
}
|
package/types/packages/client/classic-environment-v2/src/lib/models/private-synthetic-location.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { PrivateSyntheticLocationNodeNames } from './private-synthetic-location-
|
|
|
6
6
|
*/
|
|
7
7
|
export interface PrivateSyntheticLocation {
|
|
8
8
|
/**
|
|
9
|
-
* Auto upgrade of Chromium is enabled (`true`) or disabled (`false`).
|
|
9
|
+
* Non-containerized location property. Auto upgrade of Chromium is enabled (`true`) or disabled (`false`).
|
|
10
10
|
*/
|
|
11
11
|
autoUpdateChromium?: boolean;
|
|
12
12
|
/**
|
|
@@ -22,7 +22,7 @@ export interface PrivateSyntheticLocation {
|
|
|
22
22
|
*/
|
|
23
23
|
availabilityNotificationsEnabled?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Boolean value describes if browser monitors will be executed on this location:
|
|
25
|
+
* Containerized location property. Boolean value describes if browser monitors will be executed on this location:
|
|
26
26
|
*
|
|
27
27
|
* * `false`: Browser monitor executions disabled.
|
|
28
28
|
* * `true`: Browser monitor executions enabled.
|
|
@@ -70,7 +70,7 @@ export interface PrivateSyntheticLocation {
|
|
|
70
70
|
*/
|
|
71
71
|
longitude: number;
|
|
72
72
|
/**
|
|
73
|
-
* Boolean value describes if icmp monitors will be executed on this location:
|
|
73
|
+
* Containerized location property. Boolean value describes if icmp monitors will be executed on this location:
|
|
74
74
|
*
|
|
75
75
|
* * `false`: Icmp monitor executions disabled.
|
|
76
76
|
* * `true`: Icmp monitor executions enabled.
|
|
@@ -110,7 +110,7 @@ export interface PrivateSyntheticLocation {
|
|
|
110
110
|
status?: 'DISABLED' | 'ENABLED' | 'HIDDEN';
|
|
111
111
|
type: 'CLUSTER' | 'PRIVATE' | 'PUBLIC';
|
|
112
112
|
/**
|
|
113
|
-
* Boolean value describes which kubernetes version will be used:
|
|
113
|
+
* Containerized location property. Boolean value describes which kubernetes version will be used:
|
|
114
114
|
*
|
|
115
115
|
* * `false`: Version 1.23+ that is older than 1.26
|
|
116
116
|
* * `true`: Version 1.26+.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @deprecated Use literal values.
|
|
5
5
|
*/
|
|
6
6
|
export declare enum SchemaConstraintRestDtoType {
|
|
7
|
+
ByteSizeLimit = "BYTE_SIZE_LIMIT",
|
|
7
8
|
CustomValidatorRef = "CUSTOM_VALIDATOR_REF",
|
|
8
9
|
MultiScopeCustomValidatorRef = "MULTI_SCOPE_CUSTOM_VALIDATOR_REF",
|
|
9
10
|
MultiScopeUnique = "MULTI_SCOPE_UNIQUE",
|
package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface SchemaConstraintRestDto {
|
|
2
|
+
/**
|
|
3
|
+
* The maximum allowed size in bytes for the sum over all persisted values for the schema
|
|
4
|
+
*/
|
|
5
|
+
byteLimit?: number;
|
|
2
6
|
/**
|
|
3
7
|
* A custom message for invalid values.
|
|
4
8
|
*/
|
|
@@ -14,7 +18,7 @@ export interface SchemaConstraintRestDto {
|
|
|
14
18
|
/**
|
|
15
19
|
* The type of the schema constraint.
|
|
16
20
|
*/
|
|
17
|
-
type: 'CUSTOM_VALIDATOR_REF' | 'MULTI_SCOPE_CUSTOM_VALIDATOR_REF' | 'MULTI_SCOPE_UNIQUE' | 'UNIQUE' | 'UNKNOWN';
|
|
21
|
+
type: 'BYTE_SIZE_LIMIT' | 'CUSTOM_VALIDATOR_REF' | 'MULTI_SCOPE_CUSTOM_VALIDATOR_REF' | 'MULTI_SCOPE_UNIQUE' | 'UNIQUE' | 'UNKNOWN';
|
|
18
22
|
/**
|
|
19
23
|
* The list of properties for which the combination of values needs to be unique
|
|
20
24
|
*/
|
|
@@ -18,6 +18,10 @@ export interface SchemaStub {
|
|
|
18
18
|
* Ordered flag. `True` if the schema is an ordered multi-object schema.
|
|
19
19
|
*/
|
|
20
20
|
ordered?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Owner based access control flag. `True` if the schema has owner based access control enabled.
|
|
23
|
+
*/
|
|
24
|
+
ownerBasedAccessControl?: boolean;
|
|
21
25
|
/**
|
|
22
26
|
* The ID of the schema.
|
|
23
27
|
*/
|
|
@@ -5,7 +5,7 @@ export interface SyntheticMonitorOutageHandlingSettingsDto {
|
|
|
5
5
|
/**
|
|
6
6
|
* Number of consecutive failures for all locations.
|
|
7
7
|
*/
|
|
8
|
-
globalConsecutiveOutageCountThreshold
|
|
8
|
+
globalConsecutiveOutageCountThreshold?: number;
|
|
9
9
|
/**
|
|
10
10
|
* Generate a problem and send an alert when the monitor is unavailable at all configured locations.
|
|
11
11
|
*/
|
|
@@ -17,11 +17,15 @@ export interface SyntheticMonitorPerformanceThresholdDto {
|
|
|
17
17
|
/**
|
|
18
18
|
* Specify the step's index to which a threshold applies.
|
|
19
19
|
*/
|
|
20
|
-
stepIndex
|
|
20
|
+
stepIndex?: number;
|
|
21
21
|
/**
|
|
22
22
|
* Notify if monitor request takes longer than *X* milliseconds to execute.
|
|
23
23
|
*/
|
|
24
24
|
threshold: number;
|
|
25
|
+
/**
|
|
26
|
+
* Type of performance threshold
|
|
27
|
+
*/
|
|
28
|
+
type?: 'MONITOR' | 'STEP';
|
|
25
29
|
/**
|
|
26
30
|
* Number of violating request executions in analyzed sliding window
|
|
27
31
|
*/
|
|
@@ -5,7 +5,7 @@ import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
|
5
5
|
/**
|
|
6
6
|
* Network Availability monitor.
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface SyntheticMultiProtocolMonitorRequest {
|
|
9
9
|
/**
|
|
10
10
|
* Monitor description
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@ import { SyntheticTagWithSourceDto } from './synthetic-tag-with-source-dto';
|
|
|
5
5
|
/**
|
|
6
6
|
* Network Availability monitor.
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface SyntheticMultiProtocolMonitorResponse {
|
|
9
9
|
/**
|
|
10
10
|
* Monitor description
|
|
11
11
|
*/
|
|
@@ -4,7 +4,7 @@ import { SyntheticLocationUpdate } from './synthetic-location-update';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate {
|
|
6
6
|
/**
|
|
7
|
-
* Auto upgrade of Chromium is enabled (`true`) or disabled (`false`).
|
|
7
|
+
* Non-containerized location property. Auto upgrade of Chromium is enabled (`true`) or disabled (`false`).
|
|
8
8
|
*/
|
|
9
9
|
autoUpdateChromium?: boolean;
|
|
10
10
|
/**
|
|
@@ -20,7 +20,7 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
20
20
|
*/
|
|
21
21
|
availabilityNotificationsEnabled?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* Boolean value describes if browser monitors will be executed on this location:
|
|
23
|
+
* Containerized location property. Boolean value describes if browser monitors will be executed on this location:
|
|
24
24
|
*
|
|
25
25
|
* * `false`: Browser monitor executions disabled.
|
|
26
26
|
* * `true`: Browser monitor executions enabled.
|
|
@@ -56,7 +56,15 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
56
56
|
*/
|
|
57
57
|
longitude?: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Containerized location property. The maximum number of ActiveGates deployed for the location (required for a Kubernetes location).
|
|
60
|
+
*/
|
|
61
|
+
maxActiveGateCount?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Containerized location property. The minimum number of ActiveGates deployed for the location (required for a Kubernetes location).
|
|
64
|
+
*/
|
|
65
|
+
minActiveGateCount?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Containerized location property. Boolean value describes if icmp monitors will be executed on this location:
|
|
60
68
|
*
|
|
61
69
|
* * `false`: Icmp monitor executions disabled.
|
|
62
70
|
* * `true`: Icmp monitor executions enabled.
|
|
@@ -66,6 +74,15 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
66
74
|
* The name of the location.
|
|
67
75
|
*/
|
|
68
76
|
name?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Containerized location property. The size of a containerized node deployed for the location (required for a Kubernetes location). Accepted values:
|
|
79
|
+
*
|
|
80
|
+
* * `XS`: extra small
|
|
81
|
+
* * `S`: small
|
|
82
|
+
* * `M`: medium
|
|
83
|
+
* The node size `L` is not supported in containerized locations.
|
|
84
|
+
*/
|
|
85
|
+
nodeSize?: 'M' | 'S' | 'UNSUPPORTED' | 'XS';
|
|
69
86
|
/**
|
|
70
87
|
* A list of synthetic nodes belonging to the location.
|
|
71
88
|
*
|
|
@@ -87,7 +104,7 @@ export interface SyntheticPrivateLocationUpdate extends SyntheticLocationUpdate
|
|
|
87
104
|
*/
|
|
88
105
|
status?: 'DISABLED' | 'ENABLED' | 'HIDDEN';
|
|
89
106
|
/**
|
|
90
|
-
* Boolean value describes which kubernetes version will be used:
|
|
107
|
+
* Containerized location property. Boolean value describes which kubernetes version will be used:
|
|
91
108
|
*
|
|
92
109
|
* * `false`: Version 1.23+ that is older than 1.26
|
|
93
110
|
* * `true`: Version 1.26+.
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,64 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/get-error-message.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getErrorMessage(errorBody: unknown, defaultMessage: string): string;
|
|
@@ -1,10 +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
|
-
export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|