@dynatrace-sdk/client-classic-environment-v2 3.7.2 → 3.7.3
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 +7 -0
- package/README.md +66 -107
- package/cjs/index.js +3520 -3784
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +1935 -2002
- 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 +1 -1
- 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 +3 -9
- 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 +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +1 -1
- 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 +6 -6
- 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 +2 -5
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +3 -6
- package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +1 -1
- 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/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
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace-sdk/client-classic-environment-v2",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.3",
|
|
4
4
|
"description": "Client for the Dynatrace Environment API v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynatrace-sdk/
|
|
8
|
-
"@dynatrace-sdk/
|
|
7
|
+
"@dynatrace-sdk/http-client": "^1.3.0",
|
|
8
|
+
"@dynatrace-sdk/shared-client-utils": "^1.0.1",
|
|
9
9
|
"@dynatrace-sdk/shared-errors": "^1.0.0"
|
|
10
10
|
},
|
|
11
11
|
"main": "./cjs/index.js",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ActiveGateToken } from '../models/active-gate-token';
|
|
3
4
|
import { ActiveGateTokenCreate } from '../models/active-gate-token-create';
|
|
4
5
|
import { ActiveGateTokenCreated } from '../models/active-gate-token-created';
|
|
5
6
|
import { ActiveGateTokenList } from '../models/active-gate-token-list';
|
|
6
|
-
import { ApiClientOptions } from './api-client-options';
|
|
7
7
|
/**
|
|
8
8
|
* Manage Dynatrace ActiveGate tokens
|
|
9
9
|
*/
|
|
@@ -71,8 +71,7 @@ export declare class AccessTokensActiveGateTokensClient {
|
|
|
71
71
|
* const data =
|
|
72
72
|
* await accessTokensActiveGateTokensClient.createToken({
|
|
73
73
|
* body: {
|
|
74
|
-
* activeGateType:
|
|
75
|
-
* ActiveGateTokenCreateActiveGateType.Environment,
|
|
74
|
+
* activeGateType: "ENVIRONMENT",
|
|
76
75
|
* name: "myToken",
|
|
77
76
|
* },
|
|
78
77
|
* });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AgentConnectionToken } from '../models/agent-connection-token';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* Manage Dynatrace Agent tokens
|
|
6
6
|
*/
|
package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-api-tokens-api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ApiToken } from '../models/api-token';
|
|
3
4
|
import { ApiTokenCreate } from '../models/api-token-create';
|
|
4
5
|
import { ApiTokenCreated } from '../models/api-token-created';
|
|
5
6
|
import { ApiTokenList } from '../models/api-token-list';
|
|
6
7
|
import { ApiTokenSecret } from '../models/api-token-secret';
|
|
7
8
|
import { ApiTokenUpdate } from '../models/api-token-update';
|
|
8
|
-
import { ApiClientOptions } from './api-client-options';
|
|
9
9
|
/**
|
|
10
10
|
* Manage Dynatrace API tokens
|
|
11
11
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { TenantTokenConfig } from '../models/tenant-token-config';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* Rotate tenant tokens
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ActiveGateGroups } from '../models/active-gate-groups';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* View information about ActiveGate groups
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ActiveGate } from '../models/active-gate';
|
|
3
4
|
import { ActiveGateList } from '../models/active-gate-list';
|
|
4
|
-
import { ApiClientOptions } from './api-client-options';
|
|
5
5
|
/**
|
|
6
6
|
* View information about your ActiveGates
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ActiveGateAutoUpdateConfig } from '../models/active-gate-auto-update-config';
|
|
3
4
|
import { ActiveGateGlobalAutoUpdateConfig } from '../models/active-gate-global-auto-update-config';
|
|
4
|
-
import { ApiClientOptions } from './api-client-options';
|
|
5
5
|
/**
|
|
6
6
|
* Manage ActiveGate auto-update settings.
|
|
7
7
|
*/
|
|
@@ -46,12 +46,7 @@ export declare class ActiveGatesAutoUpdateConfigurationClient {
|
|
|
46
46
|
*
|
|
47
47
|
* const data =
|
|
48
48
|
* await activeGatesAutoUpdateConfigurationClient.putGlobalAutoUpdateConfigForTenant(
|
|
49
|
-
* {
|
|
50
|
-
* body: {
|
|
51
|
-
* globalSetting:
|
|
52
|
-
* ActiveGateGlobalAutoUpdateConfigGlobalSetting.Enabled,
|
|
53
|
-
* },
|
|
54
|
-
* },
|
|
49
|
+
* { body: { globalSetting: "ENABLED" } },
|
|
55
50
|
* );
|
|
56
51
|
*
|
|
57
52
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
|
|
@@ -73,12 +68,7 @@ export declare class ActiveGatesAutoUpdateConfigurationClient {
|
|
|
73
68
|
*
|
|
74
69
|
* const data =
|
|
75
70
|
* await activeGatesAutoUpdateConfigurationClient.validateGlobalAutoUpdateConfigForTenant(
|
|
76
|
-
* {
|
|
77
|
-
* body: {
|
|
78
|
-
* globalSetting:
|
|
79
|
-
* ActiveGateGlobalAutoUpdateConfigGlobalSetting.Enabled,
|
|
80
|
-
* },
|
|
81
|
-
* },
|
|
71
|
+
* { body: { globalSetting: "ENABLED" } },
|
|
82
72
|
* );
|
|
83
73
|
*
|
|
84
74
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
|
|
@@ -124,13 +114,7 @@ export declare class ActiveGatesAutoUpdateConfigurationClient {
|
|
|
124
114
|
*
|
|
125
115
|
* const data =
|
|
126
116
|
* await activeGatesAutoUpdateConfigurationClient.putAutoUpdateConfigById(
|
|
127
|
-
* {
|
|
128
|
-
* agId: "...",
|
|
129
|
-
* body: {
|
|
130
|
-
* setting:
|
|
131
|
-
* ActiveGateAutoUpdateConfigSetting.Inherited,
|
|
132
|
-
* },
|
|
133
|
-
* },
|
|
117
|
+
* { agId: "...", body: { setting: "INHERITED" } },
|
|
134
118
|
* );
|
|
135
119
|
*
|
|
136
120
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
|
|
@@ -153,13 +137,7 @@ export declare class ActiveGatesAutoUpdateConfigurationClient {
|
|
|
153
137
|
*
|
|
154
138
|
* const data =
|
|
155
139
|
* await activeGatesAutoUpdateConfigurationClient.validateAutoUpdateConfigById(
|
|
156
|
-
* {
|
|
157
|
-
* agId: "...",
|
|
158
|
-
* body: {
|
|
159
|
-
* setting:
|
|
160
|
-
* ActiveGateAutoUpdateConfigSetting.Inherited,
|
|
161
|
-
* },
|
|
162
|
-
* },
|
|
140
|
+
* { agId: "...", body: { setting: "INHERITED" } },
|
|
163
141
|
* );
|
|
164
142
|
*
|
|
165
143
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { UpdateJob } from '../models/update-job';
|
|
3
4
|
import { UpdateJobList } from '../models/update-job-list';
|
|
4
5
|
import { UpdateJobsAll } from '../models/update-jobs-all';
|
|
5
|
-
import { ApiClientOptions } from './api-client-options';
|
|
6
6
|
/**
|
|
7
7
|
* Manage ActiveGate auto-update jobs.
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { Attack } from '../models/attack';
|
|
3
4
|
import { AttackList } from '../models/attack-list';
|
|
4
|
-
import { ApiClientOptions } from './api-client-options';
|
|
5
5
|
/**
|
|
6
6
|
* Read attacks
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AuditLog } from '../models/audit-log';
|
|
3
4
|
import { AuditLogEntry } from '../models/audit-log-entry';
|
|
4
|
-
import { ApiClientOptions } from './api-client-options';
|
|
5
5
|
/**
|
|
6
6
|
* Read audit logs
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { CloudEvent } from '../models/cloud-event';
|
|
3
4
|
import { IngestBody } from '../models/ingest-body';
|
|
4
|
-
import { ApiClientOptions } from './api-client-options';
|
|
5
5
|
export declare class BusinessEventsClient {
|
|
6
6
|
private httpClient;
|
|
7
7
|
private shouldTransformDates;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AbstractCredentialsResponseElement } from '../models/abstract-credentials-response-element';
|
|
3
4
|
import { Credentials } from '../models/credentials';
|
|
4
5
|
import { CredentialsId } from '../models/credentials-id';
|
|
5
6
|
import { CredentialsList } from '../models/credentials-list';
|
|
6
7
|
import { CredentialsResponseElement } from '../models/credentials-response-element';
|
|
7
|
-
import { ApiClientOptions } from './api-client-options';
|
|
8
8
|
/**
|
|
9
9
|
* Manage credentials
|
|
10
10
|
*/
|
|
@@ -67,10 +67,7 @@ export declare class CredentialVaultClient {
|
|
|
67
67
|
* import { credentialVaultClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
68
68
|
*
|
|
69
69
|
* const data = await credentialVaultClient.createCredentials({
|
|
70
|
-
* body: {
|
|
71
|
-
* name: "...",
|
|
72
|
-
* scopes: [CredentialsScopesItem.AppEngine],
|
|
73
|
-
* },
|
|
70
|
+
* body: { name: "...", scopes: ["APP_ENGINE"] },
|
|
74
71
|
* });
|
|
75
72
|
*
|
|
76
73
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
|
|
@@ -117,10 +114,7 @@ export declare class CredentialVaultClient {
|
|
|
117
114
|
*
|
|
118
115
|
* const data = await credentialVaultClient.updateCredentials({
|
|
119
116
|
* id: "...",
|
|
120
|
-
* body: {
|
|
121
|
-
* name: "...",
|
|
122
|
-
* scopes: [CredentialsScopesItem.AppEngine],
|
|
123
|
-
* },
|
|
117
|
+
* body: { name: "...", scopes: ["APP_ENGINE"] },
|
|
124
118
|
* });
|
|
125
119
|
*
|
|
126
120
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
|
package/types/packages/client/classic-environment-v2/src/lib/apis/davis-security-advisor-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { DavisSecurityAdviceList } from '../models/davis-security-advice-list';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* Manage Davis security advices
|
|
6
6
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { Event } from '../models/event';
|
|
3
4
|
import { EventIngest } from '../models/event-ingest';
|
|
4
5
|
import { EventIngestResults } from '../models/event-ingest-results';
|
|
@@ -7,7 +8,6 @@ import { EventPropertiesList } from '../models/event-properties-list';
|
|
|
7
8
|
import { EventPropertyDetails } from '../models/event-property-details';
|
|
8
9
|
import { EventType } from '../models/event-type';
|
|
9
10
|
import { EventTypeList } from '../models/event-type-list';
|
|
10
|
-
import { ApiClientOptions } from './api-client-options';
|
|
11
11
|
/**
|
|
12
12
|
* Manage events
|
|
13
13
|
*/
|
|
@@ -277,10 +277,7 @@ export declare class EventsClient {
|
|
|
277
277
|
* import { eventsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
278
278
|
*
|
|
279
279
|
* const data = await eventsClient.createEvent({
|
|
280
|
-
* body: {
|
|
281
|
-
* eventType: EventIngestEventType.AvailabilityEvent,
|
|
282
|
-
* title: "...",
|
|
283
|
-
* },
|
|
280
|
+
* body: { eventType: "AVAILABILITY_EVENT", title: "..." },
|
|
284
281
|
* });
|
|
285
282
|
*
|
|
286
283
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal, Binary, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ActiveGateGroupsInfoDto } from '../models/active-gate-groups-info-dto';
|
|
3
4
|
import { ErrorEnvelope } from '../models/error-envelope';
|
|
4
5
|
import { ExecuteActionsDto } from '../models/execute-actions-dto';
|
|
@@ -21,7 +22,6 @@ import { RegisteredExtensionResultDto } from '../models/registered-extension-res
|
|
|
21
22
|
import { SchemaDefinitionRestDto } from '../models/schema-definition-rest-dto';
|
|
22
23
|
import { SchemaFiles } from '../models/schema-files';
|
|
23
24
|
import { SchemasList } from '../models/schemas-list';
|
|
24
|
-
import { ApiClientOptions } from './api-client-options';
|
|
25
25
|
/**
|
|
26
26
|
* Manage Extensions 2.0 life cycle
|
|
27
27
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AggregatedLog } from '../models/aggregated-log';
|
|
3
4
|
import { ExportedLogRecordList } from '../models/exported-log-record-list';
|
|
4
5
|
import { LogMessageJson } from '../models/log-message-json';
|
|
5
6
|
import { LogMessagePlain } from '../models/log-message-plain';
|
|
6
7
|
import { LogRecordsList } from '../models/log-records-list';
|
|
7
8
|
import { SuccessEnvelope } from '../models/success-envelope';
|
|
8
|
-
import { ApiClientOptions } from './api-client-options';
|
|
9
9
|
/**
|
|
10
10
|
* Read and ingest logs
|
|
11
11
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { MetricData } from '../models/metric-data';
|
|
3
4
|
import { MetricDescriptor } from '../models/metric-descriptor';
|
|
4
5
|
import { MetricDescriptorCollection } from '../models/metric-descriptor-collection';
|
|
5
6
|
import { ValidationResponse } from '../models/validation-response';
|
|
6
|
-
import { ApiClientOptions } from './api-client-options';
|
|
7
7
|
/**
|
|
8
8
|
* Query and ingest metrics
|
|
9
9
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { Unit } from '../models/unit';
|
|
3
4
|
import { UnitConversionResult } from '../models/unit-conversion-result';
|
|
4
5
|
import { UnitList } from '../models/unit-list';
|
|
5
|
-
import { ApiClientOptions } from './api-client-options';
|
|
6
6
|
/**
|
|
7
7
|
* View metric units
|
|
8
8
|
*/
|
package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { CustomDeviceCreation } from '../models/custom-device-creation';
|
|
3
4
|
import { CustomDeviceCreationResult } from '../models/custom-device-creation-result';
|
|
4
5
|
import { EntitiesList } from '../models/entities-list';
|
|
@@ -7,7 +8,6 @@ import { EntityType } from '../models/entity-type';
|
|
|
7
8
|
import { EntityTypeList } from '../models/entity-type-list';
|
|
8
9
|
import { SecurityContextDtoImpl } from '../models/security-context-dto-impl';
|
|
9
10
|
import { SecurityContextResultDto } from '../models/security-context-result-dto';
|
|
10
|
-
import { ApiClientOptions } from './api-client-options';
|
|
11
11
|
/**
|
|
12
12
|
* Manage monitored entities
|
|
13
13
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AddEntityTags } from '../models/add-entity-tags';
|
|
3
4
|
import { AddedEntityTags } from '../models/added-entity-tags';
|
|
4
5
|
import { CustomEntityTags } from '../models/custom-entity-tags';
|
|
5
6
|
import { DeletedEntityTags } from '../models/deleted-entity-tags';
|
|
6
|
-
import { ApiClientOptions } from './api-client-options';
|
|
7
7
|
/**
|
|
8
8
|
* Manage custom tags of monitored entities
|
|
9
9
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { MonitoredStates } from '../models/monitored-states';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* Read state of monitored entities
|
|
6
6
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { EntityShortRepresentation } from '../models/entity-short-representation';
|
|
3
4
|
import { NetworkZone } from '../models/network-zone';
|
|
4
5
|
import { NetworkZoneConnectionStatistics } from '../models/network-zone-connection-statistics';
|
|
5
6
|
import { NetworkZoneList } from '../models/network-zone-list';
|
|
6
7
|
import { NetworkZoneSettings } from '../models/network-zone-settings';
|
|
7
|
-
import { ApiClientOptions } from './api-client-options';
|
|
8
8
|
/**
|
|
9
9
|
* Manage network zones
|
|
10
10
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { Comment } from '../models/comment';
|
|
3
4
|
import { CommentRequestDtoImpl } from '../models/comment-request-dto-impl';
|
|
4
5
|
import { CommentsList } from '../models/comments-list';
|
|
@@ -6,7 +7,6 @@ import { Problem } from '../models/problem';
|
|
|
6
7
|
import { ProblemCloseRequestDtoImpl } from '../models/problem-close-request-dto-impl';
|
|
7
8
|
import { ProblemCloseResult } from '../models/problem-close-result';
|
|
8
9
|
import { Problems } from '../models/problems';
|
|
9
|
-
import { ApiClientOptions } from './api-client-options';
|
|
10
10
|
/**
|
|
11
11
|
* Manage problems and comments
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { Releases } from '../models/releases';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* Analyze your deployed components
|
|
6
6
|
*/
|
package/types/packages/client/classic-environment-v2/src/lib/apis/security-problems-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { RemediationDetailsItem } from '../models/remediation-details-item';
|
|
3
4
|
import { RemediationItemList } from '../models/remediation-item-list';
|
|
4
5
|
import { RemediationItemMuteStateChange } from '../models/remediation-item-mute-state-change';
|
|
@@ -18,7 +19,6 @@ import { SecurityProblemsBulkMuteResponse } from '../models/security-problems-bu
|
|
|
18
19
|
import { SecurityProblemsBulkUnmute } from '../models/security-problems-bulk-unmute';
|
|
19
20
|
import { SecurityProblemsBulkUnmuteResponse } from '../models/security-problems-bulk-unmute-response';
|
|
20
21
|
import { VulnerableFunctionsContainer } from '../models/vulnerable-functions-container';
|
|
21
|
-
import { ApiClientOptions } from './api-client-options';
|
|
22
22
|
/**
|
|
23
23
|
* Manage security problems
|
|
24
24
|
*/
|
|
@@ -220,8 +220,7 @@ export declare class SecurityProblemsClient {
|
|
|
220
220
|
* const data =
|
|
221
221
|
* await securityProblemsClient.bulkMuteSecurityProblems({
|
|
222
222
|
* body: {
|
|
223
|
-
* reason:
|
|
224
|
-
* SecurityProblemsBulkMuteReason.ConfigurationNotAffected,
|
|
223
|
+
* reason: "CONFIGURATION_NOT_AFFECTED",
|
|
225
224
|
* securityProblemIds: ["..."],
|
|
226
225
|
* },
|
|
227
226
|
* });
|
|
@@ -248,7 +247,7 @@ export declare class SecurityProblemsClient {
|
|
|
248
247
|
* const data =
|
|
249
248
|
* await securityProblemsClient.bulkUnmuteSecurityProblems({
|
|
250
249
|
* body: {
|
|
251
|
-
* reason:
|
|
250
|
+
* reason: "AFFECTED",
|
|
252
251
|
* securityProblemIds: ["..."],
|
|
253
252
|
* },
|
|
254
253
|
* });
|
|
@@ -412,10 +411,7 @@ export declare class SecurityProblemsClient {
|
|
|
412
411
|
* const data =
|
|
413
412
|
* await securityProblemsClient.muteSecurityProblem({
|
|
414
413
|
* id: "...",
|
|
415
|
-
* body: {
|
|
416
|
-
* reason:
|
|
417
|
-
* SecurityProblemMuteReason.ConfigurationNotAffected,
|
|
418
|
-
* },
|
|
414
|
+
* body: { reason: "CONFIGURATION_NOT_AFFECTED" },
|
|
419
415
|
* });
|
|
420
416
|
*
|
|
421
417
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
@@ -490,8 +486,7 @@ export declare class SecurityProblemsClient {
|
|
|
490
486
|
* await securityProblemsClient.bulkMuteRemediationItems({
|
|
491
487
|
* id: "...",
|
|
492
488
|
* body: {
|
|
493
|
-
* reason:
|
|
494
|
-
* RemediationItemsBulkMuteReason.ConfigurationNotAffected,
|
|
489
|
+
* reason: "CONFIGURATION_NOT_AFFECTED",
|
|
495
490
|
* remediationItemIds: ["..."],
|
|
496
491
|
* },
|
|
497
492
|
* });
|
|
@@ -543,7 +538,7 @@ export declare class SecurityProblemsClient {
|
|
|
543
538
|
* await securityProblemsClient.bulkUnmuteRemediationItems({
|
|
544
539
|
* id: "...",
|
|
545
540
|
* body: {
|
|
546
|
-
* reason:
|
|
541
|
+
* reason: "AFFECTED",
|
|
547
542
|
* remediationItemIds: ["..."],
|
|
548
543
|
* },
|
|
549
544
|
* });
|
|
@@ -601,7 +596,7 @@ export declare class SecurityProblemsClient {
|
|
|
601
596
|
* body: {
|
|
602
597
|
* comment: "...",
|
|
603
598
|
* muted: false,
|
|
604
|
-
* reason:
|
|
599
|
+
* reason: "IGNORE",
|
|
605
600
|
* },
|
|
606
601
|
* });
|
|
607
602
|
*
|
|
@@ -671,7 +666,7 @@ export declare class SecurityProblemsClient {
|
|
|
671
666
|
* const data =
|
|
672
667
|
* await securityProblemsClient.unmuteSecurityProblem({
|
|
673
668
|
* id: "...",
|
|
674
|
-
* body: { reason:
|
|
669
|
+
* body: { reason: "AFFECTED" },
|
|
675
670
|
* });
|
|
676
671
|
*
|
|
677
672
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
package/types/packages/client/classic-environment-v2/src/lib/apis/service-level-objectives-api.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AbstractSloAlertDto } from '../models/abstract-slo-alert-dto';
|
|
3
4
|
import { EntityShortRepresentation } from '../models/entity-short-representation';
|
|
4
5
|
import { SLOs } from '../models/sl-os';
|
|
5
6
|
import { SLO } from '../models/slo';
|
|
6
7
|
import { SloConfigItemDtoImpl } from '../models/slo-config-item-dto-impl';
|
|
7
|
-
import { ApiClientOptions } from './api-client-options';
|
|
8
8
|
/**
|
|
9
9
|
* Manage SLOs
|
|
10
10
|
*/
|
|
@@ -145,8 +145,7 @@ export declare class ServiceLevelObjectivesClient {
|
|
|
145
145
|
*
|
|
146
146
|
* const data = await serviceLevelObjectivesClient.createSlo({
|
|
147
147
|
* body: {
|
|
148
|
-
* evaluationType:
|
|
149
|
-
* SloConfigItemDtoImplEvaluationType.Aggregate,
|
|
148
|
+
* evaluationType: "AGGREGATE",
|
|
150
149
|
* name: "Payment service availability",
|
|
151
150
|
* target: 95,
|
|
152
151
|
* timeframe: "-1d",
|
|
@@ -248,8 +247,7 @@ export declare class ServiceLevelObjectivesClient {
|
|
|
248
247
|
* await serviceLevelObjectivesClient.updateSloById({
|
|
249
248
|
* id: "...",
|
|
250
249
|
* body: {
|
|
251
|
-
* evaluationType:
|
|
252
|
-
* SloConfigItemDtoImplEvaluationType.Aggregate,
|
|
250
|
+
* evaluationType: "AGGREGATE",
|
|
253
251
|
* name: "Payment service availability",
|
|
254
252
|
* target: 95,
|
|
255
253
|
* timeframe: "-1d",
|
|
@@ -308,7 +306,7 @@ export declare class ServiceLevelObjectivesClient {
|
|
|
308
306
|
* body: {
|
|
309
307
|
* alertName: "...",
|
|
310
308
|
* alertThreshold: 10,
|
|
311
|
-
* alertType:
|
|
309
|
+
* alertType: "BURN_RATE",
|
|
312
310
|
* },
|
|
313
311
|
* },
|
|
314
312
|
* );
|
package/types/packages/client/classic-environment-v2/src/lib/apis/settings-management-zones-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { ManagementZoneDetails } from '../models/management-zone-details';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
/**
|
|
5
5
|
* View management zone details
|
|
6
6
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { AccessorPermissions } from '../models/accessor-permissions';
|
|
3
4
|
import { AccessorPermissionsList } from '../models/accessor-permissions-list';
|
|
4
5
|
import { EffectivePermission } from '../models/effective-permission';
|
|
@@ -12,7 +13,6 @@ import { SettingsObjectResponse } from '../models/settings-object-response';
|
|
|
12
13
|
import { SettingsObjectUpdate } from '../models/settings-object-update';
|
|
13
14
|
import { TransferOwnershipRequest } from '../models/transfer-ownership-request';
|
|
14
15
|
import { UpdatePermissionsRequest } from '../models/update-permissions-request';
|
|
15
|
-
import { ApiClientOptions } from './api-client-options';
|
|
16
16
|
/**
|
|
17
17
|
* Manage settings objects
|
|
18
18
|
*/
|
|
@@ -459,7 +459,7 @@ export declare class SettingsObjectsClient {
|
|
|
459
459
|
*
|
|
460
460
|
* const data = await settingsObjectsClient.addPermission({
|
|
461
461
|
* objectId: "...",
|
|
462
|
-
* body: { accessor: { type:
|
|
462
|
+
* body: { accessor: { type: "user" } },
|
|
463
463
|
* });
|
|
464
464
|
*
|
|
465
465
|
* @throws {ErrorEnvelopeError} If accessor id already exists. | Failed. Forbidden. | No object available for the given objectId. | Client side error. | Server side error.
|
|
@@ -558,7 +558,7 @@ export declare class SettingsObjectsClient {
|
|
|
558
558
|
*
|
|
559
559
|
* const data = await settingsObjectsClient.getPermission({
|
|
560
560
|
* objectId: "...",
|
|
561
|
-
* accessorType:
|
|
561
|
+
* accessorType: "group",
|
|
562
562
|
* accessorId: "...",
|
|
563
563
|
* });
|
|
564
564
|
*
|
|
@@ -584,7 +584,7 @@ export declare class SettingsObjectsClient {
|
|
|
584
584
|
*
|
|
585
585
|
* const data = await settingsObjectsClient.updatePermission({
|
|
586
586
|
* objectId: "...",
|
|
587
|
-
* accessorType:
|
|
587
|
+
* accessorType: "group",
|
|
588
588
|
* accessorId: "...",
|
|
589
589
|
* body: {},
|
|
590
590
|
* });
|
|
@@ -612,7 +612,7 @@ export declare class SettingsObjectsClient {
|
|
|
612
612
|
*
|
|
613
613
|
* const data = await settingsObjectsClient.removePermission({
|
|
614
614
|
* objectId: "...",
|
|
615
|
-
* accessorType:
|
|
615
|
+
* accessorType: "group",
|
|
616
616
|
* accessorId: "...",
|
|
617
617
|
* });
|
|
618
618
|
*
|
|
@@ -638,7 +638,7 @@ export declare class SettingsObjectsClient {
|
|
|
638
638
|
*
|
|
639
639
|
* const data = await settingsObjectsClient.transferOwnership({
|
|
640
640
|
* objectId: "...",
|
|
641
|
-
* body: { newOwner: { type:
|
|
641
|
+
* body: { newOwner: { type: "user" } },
|
|
642
642
|
* });
|
|
643
643
|
*
|
|
644
644
|
* @throws {ErrorEnvelopeError} Failed. The input is invalid. | Failed. Forbidden. | No object available for the given objectId. | Client side error. | Server side error.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { SchemaDefinitionRestDto } from '../models/schema-definition-rest-dto';
|
|
3
4
|
import { SchemaList } from '../models/schema-list';
|
|
4
|
-
import { ApiClientOptions } from './api-client-options';
|
|
5
5
|
/**
|
|
6
6
|
* View settings schemas
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
|
|
2
3
|
import { MonitorExecutionResults } from '../models/monitor-execution-results';
|
|
3
|
-
import { ApiClientOptions } from './api-client-options';
|
|
4
4
|
export declare class SyntheticHttpMonitorExecutionsClient {
|
|
5
5
|
private httpClient;
|
|
6
6
|
private shouldTransformDates;
|
|
@@ -23,10 +23,7 @@ export declare class SyntheticHttpMonitorExecutionsClient {
|
|
|
23
23
|
*
|
|
24
24
|
* const data =
|
|
25
25
|
* await syntheticHttpMonitorExecutionsClient.getExecutionResult(
|
|
26
|
-
* {
|
|
27
|
-
* monitorId: "...",
|
|
28
|
-
* resultType: GetExecutionResultPathResultType.Success,
|
|
29
|
-
* },
|
|
26
|
+
* { monitorId: "...", resultType: "SUCCESS" },
|
|
30
27
|
* );
|
|
31
28
|
*
|
|
32
29
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|