@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
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace-sdk/client-classic-environment-v2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
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
|
*/
|
|
@@ -39,7 +39,7 @@ export declare class ActiveGatesClient {
|
|
|
39
39
|
* You can specify a partial name. In that case, the `CONTAINS` operator is used.
|
|
40
40
|
*/ hostname?: string;
|
|
41
41
|
/** Filters the resulting set of ActiveGates by the OS type of the host it's running on. */ osType?: 'LINUX' | 'WINDOWS';
|
|
42
|
-
/** Filters the resulting set of ActiveGates by the OS architecture of the host it's running on. */ osArchitecture?: 'X86' | 'S390' | 'ARM';
|
|
42
|
+
/** Filters the resulting set of ActiveGates by the OS architecture of the host it's running on. */ osArchitecture?: 'X86' | 'S390' | 'ARM' | 'PPCLE';
|
|
43
43
|
/**
|
|
44
44
|
* Filters the resulting set of ActiveGates by the network address.
|
|
45
45
|
*
|
|
@@ -79,6 +79,7 @@ export declare class ActiveGatesClient {
|
|
|
79
79
|
/** Filters the resulting set of ActiveGates to those which are running in container (`true`) or not (`false`). */ containerized?: boolean;
|
|
80
80
|
/** Filters the resulting set of ActiveGates to those with authorization token in specified state. */ tokenState?: 'ABSENT' | 'EXPIRING' | 'INVALID' | 'UNKNOWN' | 'UNSUPPORTED' | 'VALID';
|
|
81
81
|
/** Filters the resulting set of ActiveGates to those with set expiration date for authorization token. */ tokenExpirationSet?: boolean;
|
|
82
|
+
/** Filters the resulting set of ActiveGates to those which are running in FIPS mode (`true`) or not (`false`). */ fipsMode?: boolean;
|
|
82
83
|
abortSignal?: AbortSignal;
|
|
83
84
|
}): Promise<ActiveGateList>;
|
|
84
85
|
/**
|
|
@@ -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
|
*/
|
|
@@ -69,7 +69,8 @@ export declare class CredentialVaultClient {
|
|
|
69
69
|
* const data = await credentialVaultClient.createCredentials({
|
|
70
70
|
* body: {
|
|
71
71
|
* name: "...",
|
|
72
|
-
* scopes: [
|
|
72
|
+
* scopes: ["APP_ENGINE"],
|
|
73
|
+
* type: "AWS_MONITORING_KEY_BASED",
|
|
73
74
|
* },
|
|
74
75
|
* });
|
|
75
76
|
*
|
|
@@ -119,7 +120,8 @@ export declare class CredentialVaultClient {
|
|
|
119
120
|
* id: "...",
|
|
120
121
|
* body: {
|
|
121
122
|
* name: "...",
|
|
122
|
-
* scopes: [
|
|
123
|
+
* scopes: ["APP_ENGINE"],
|
|
124
|
+
* type: "AWS_MONITORING_KEY_BASED",
|
|
123
125
|
* },
|
|
124
126
|
* });
|
|
125
127
|
*
|
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,5 +1,8 @@
|
|
|
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';
|
|
4
|
+
import { AlertTemplateDto } from '../models/alert-template-dto';
|
|
5
|
+
import { AuditLog } from '../models/audit-log';
|
|
3
6
|
import { ErrorEnvelope } from '../models/error-envelope';
|
|
4
7
|
import { ExecuteActionsDto } from '../models/execute-actions-dto';
|
|
5
8
|
import { ExecuteActionsResponse } from '../models/execute-actions-response';
|
|
@@ -12,6 +15,7 @@ import { ExtensionList } from '../models/extension-list';
|
|
|
12
15
|
import { ExtensionMonitoringConfiguration } from '../models/extension-monitoring-configuration';
|
|
13
16
|
import { ExtensionMonitoringConfigurationsList } from '../models/extension-monitoring-configurations-list';
|
|
14
17
|
import { ExtensionStatusDto } from '../models/extension-status-dto';
|
|
18
|
+
import { ExtensionStatusWithIdDto } from '../models/extension-status-with-id-dto';
|
|
15
19
|
import { ExtensionUploadResponseDto } from '../models/extension-upload-response-dto';
|
|
16
20
|
import { JsonNode } from '../models/json-node';
|
|
17
21
|
import { MonitoringConfigurationDto } from '../models/monitoring-configuration-dto';
|
|
@@ -21,7 +25,6 @@ import { RegisteredExtensionResultDto } from '../models/registered-extension-res
|
|
|
21
25
|
import { SchemaDefinitionRestDto } from '../models/schema-definition-rest-dto';
|
|
22
26
|
import { SchemaFiles } from '../models/schema-files';
|
|
23
27
|
import { SchemasList } from '../models/schemas-list';
|
|
24
|
-
import { ApiClientOptions } from './api-client-options';
|
|
25
28
|
/**
|
|
26
29
|
* Manage Extensions 2.0 life cycle
|
|
27
30
|
*/
|
|
@@ -415,6 +418,33 @@ export declare class Extensions_2_0Client {
|
|
|
415
418
|
/** The name of the requested extension 2.0. */ extensionName: string;
|
|
416
419
|
abortSignal?: AbortSignal;
|
|
417
420
|
}): Promise<ExtensionAssetsDto>;
|
|
421
|
+
/**
|
|
422
|
+
* Gets an alert template asset for given ID
|
|
423
|
+
*
|
|
424
|
+
* **Required scope:** environment-api:extensions:read<br/>**One of the following permissions is required:**
|
|
425
|
+
* + environment:roles:manage-settings
|
|
426
|
+
* + extensions:definitions:read
|
|
427
|
+
*
|
|
428
|
+
* @returns {Promise<AlertTemplateDto>} Success
|
|
429
|
+
*
|
|
430
|
+
* @example <caption>Code example</caption>
|
|
431
|
+
* import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
432
|
+
*
|
|
433
|
+
* const data = await extensions_2_0Client.getAlertTemplate({
|
|
434
|
+
* extensionName: "...",
|
|
435
|
+
* assetId: "...",
|
|
436
|
+
* });
|
|
437
|
+
*
|
|
438
|
+
* @throws {ErrorEnvelopeError} Failed. The requested resource doesn't exist. | Client side error. | Server side error.
|
|
439
|
+
* @throws {InvalidResponseError}
|
|
440
|
+
* @throws {ApiClientError}
|
|
441
|
+
* @throws {ClientRequestError}
|
|
442
|
+
*/
|
|
443
|
+
getAlertTemplate(config: {
|
|
444
|
+
/** The name of the requested extension 2.0. */ extensionName: string;
|
|
445
|
+
/** ID of the requested asset. */ assetId: string;
|
|
446
|
+
abortSignal?: AbortSignal;
|
|
447
|
+
}): Promise<AlertTemplateDto>;
|
|
418
448
|
/**
|
|
419
449
|
* List of the latest extension environment configuration events
|
|
420
450
|
*
|
|
@@ -558,6 +588,31 @@ export declare class Extensions_2_0Client {
|
|
|
558
588
|
/** The name of the requested extension 2.0. */ extensionName: string;
|
|
559
589
|
abortSignal?: AbortSignal;
|
|
560
590
|
}): Promise<(MonitoringConfigurationResponse | ErrorEnvelope)[]>;
|
|
591
|
+
/**
|
|
592
|
+
* Gets the most recent status of the execution of monitoring configurations of given extension
|
|
593
|
+
*
|
|
594
|
+
* **Required scope:** environment-api:extension-configurations:read<br/>**One of the following permissions is required:**
|
|
595
|
+
* + environment:roles:manage-settings
|
|
596
|
+
* + extensions:configurations:read
|
|
597
|
+
*
|
|
598
|
+
* @returns {Promise<ExtensionStatusWithIdDto[]>} Success
|
|
599
|
+
*
|
|
600
|
+
* @example <caption>Code example</caption>
|
|
601
|
+
* import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
602
|
+
*
|
|
603
|
+
* const data = await extensions_2_0Client.getExtensionStatus({
|
|
604
|
+
* extensionName: "...",
|
|
605
|
+
* });
|
|
606
|
+
*
|
|
607
|
+
* @throws {ErrorEnvelopeError} Failed. The requested resource doesn't exist. | Client side error. | Server side error.
|
|
608
|
+
* @throws {InvalidResponseError}
|
|
609
|
+
* @throws {ApiClientError}
|
|
610
|
+
* @throws {ClientRequestError}
|
|
611
|
+
*/
|
|
612
|
+
getExtensionStatus(config: {
|
|
613
|
+
/** The name of the requested extension 2.0. */ extensionName: string;
|
|
614
|
+
abortSignal?: AbortSignal;
|
|
615
|
+
}): Promise<ExtensionStatusWithIdDto[]>;
|
|
561
616
|
/**
|
|
562
617
|
* Gets the details of the specified monitoring configuration
|
|
563
618
|
*
|
|
@@ -673,6 +728,91 @@ export declare class Extensions_2_0Client {
|
|
|
673
728
|
/** The ID of the requested monitoring configuration. */ configurationId: string;
|
|
674
729
|
abortSignal?: AbortSignal;
|
|
675
730
|
}): Promise<ExecuteActionsResponse>;
|
|
731
|
+
/**
|
|
732
|
+
* Gets the audit logs of monitoring configuration of given extension
|
|
733
|
+
*
|
|
734
|
+
* **Required scope:** environment-api:extension-configurations:read<br/>**One of the following permissions is required:**
|
|
735
|
+
* + environment:roles:manage-settings
|
|
736
|
+
* + extensions:configurations:read
|
|
737
|
+
*
|
|
738
|
+
* @returns {Promise<AuditLog>} Success
|
|
739
|
+
*
|
|
740
|
+
* @example <caption>Code example</caption>
|
|
741
|
+
* import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
742
|
+
*
|
|
743
|
+
* const data =
|
|
744
|
+
* await extensions_2_0Client.monitoringConfigurationAudit({
|
|
745
|
+
* extensionName: "...",
|
|
746
|
+
* configurationId: "...",
|
|
747
|
+
* });
|
|
748
|
+
*
|
|
749
|
+
* @throws {ErrorEnvelopeError} Failed. The requested resource doesn't exist. | Client side error. | Server side error.
|
|
750
|
+
* @throws {InvalidResponseError}
|
|
751
|
+
* @throws {ApiClientError}
|
|
752
|
+
* @throws {ClientRequestError}
|
|
753
|
+
*/
|
|
754
|
+
monitoringConfigurationAudit(config: {
|
|
755
|
+
/** The name of the requested extension 2.0. */ extensionName: string;
|
|
756
|
+
/** The ID of the requested monitoring configuration. */ configurationId: string;
|
|
757
|
+
/**
|
|
758
|
+
* The cursor for the next page of results. You can find it in the **nextPageKey** field of the previous response.
|
|
759
|
+
*
|
|
760
|
+
* The first page is always returned if you don't specify the **nextPageKey** query parameter.
|
|
761
|
+
*
|
|
762
|
+
* When the **nextPageKey** is set to obtain subsequent pages, you must omit all other query parameters.
|
|
763
|
+
*/ nextPageKey?: string;
|
|
764
|
+
/**
|
|
765
|
+
* The amount of extensions in a single response payload.
|
|
766
|
+
*
|
|
767
|
+
* The maximal allowed page size is 100.
|
|
768
|
+
*
|
|
769
|
+
* If not set, 20 is used.
|
|
770
|
+
*/ pageSize?: number;
|
|
771
|
+
/**
|
|
772
|
+
* The start of the requested timeframe.
|
|
773
|
+
*
|
|
774
|
+
* You can use one of the following formats:
|
|
775
|
+
* * Timestamp in UTC milliseconds.
|
|
776
|
+
* * Human-readable format of `2021-01-25T05:57:01.123+01:00`. If no time zone is specified, UTC is used. You can use a space character instead of the `T`. Seconds and fractions of a second are optional.
|
|
777
|
+
* * Relative timeframe, back from now. The format is `now-NU/A`, where `N` is the amount of time, `U` is the unit of time, and `A` is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, `now-1y/w` is one year back, aligned by a week.
|
|
778
|
+
* You can also specify relative timeframe without an alignment: `now-NU`.
|
|
779
|
+
* Supported time units for the relative timeframe are:
|
|
780
|
+
* * `m`: minutes
|
|
781
|
+
* * `h`: hours
|
|
782
|
+
* * `d`: days
|
|
783
|
+
* * `w`: weeks
|
|
784
|
+
* * `M`: months
|
|
785
|
+
* * `y`: years
|
|
786
|
+
*
|
|
787
|
+
* If not set, the relative timeframe of two weeks is used (`now-2w`).
|
|
788
|
+
*/ from?: string;
|
|
789
|
+
/**
|
|
790
|
+
* The end of the requested timeframe.
|
|
791
|
+
*
|
|
792
|
+
* You can use one of the following formats:
|
|
793
|
+
* * Timestamp in UTC milliseconds.
|
|
794
|
+
* * Human-readable format of `2021-01-25T05:57:01.123+01:00`. If no time zone is specified, UTC is used. You can use a space character instead of the `T`. Seconds and fractions of a second are optional.
|
|
795
|
+
* * Relative timeframe, back from now. The format is `now-NU/A`, where `N` is the amount of time, `U` is the unit of time, and `A` is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, `now-1y/w` is one year back, aligned by a week.
|
|
796
|
+
* You can also specify relative timeframe without an alignment: `now-NU`.
|
|
797
|
+
* Supported time units for the relative timeframe are:
|
|
798
|
+
* * `m`: minutes
|
|
799
|
+
* * `h`: hours
|
|
800
|
+
* * `d`: days
|
|
801
|
+
* * `w`: weeks
|
|
802
|
+
* * `M`: months
|
|
803
|
+
* * `y`: years
|
|
804
|
+
*
|
|
805
|
+
* If not set, the current timestamp is used.
|
|
806
|
+
*/ to?: string;
|
|
807
|
+
/**
|
|
808
|
+
* The sorting of audit log entries:
|
|
809
|
+
* * `timestamp`: Oldest first.
|
|
810
|
+
* * `-timestamp`: Newest first.
|
|
811
|
+
*
|
|
812
|
+
* If not set, the newest first sorting is applied.
|
|
813
|
+
*/ sort?: string;
|
|
814
|
+
abortSignal?: AbortSignal;
|
|
815
|
+
}): Promise<AuditLog>;
|
|
676
816
|
/**
|
|
677
817
|
* Gets the list of the events linked to specific monitoring configuration
|
|
678
818
|
*
|
|
@@ -877,7 +1017,11 @@ export declare class Extensions_2_0Client {
|
|
|
877
1017
|
/**
|
|
878
1018
|
* Gets the configuration schema of the specified version of the extension 2.0
|
|
879
1019
|
*
|
|
880
|
-
* **
|
|
1020
|
+
* **One of the following scopes is required:**
|
|
1021
|
+
* + environment-api:extensions:read
|
|
1022
|
+
* + environment-api:extension-configurations:read
|
|
1023
|
+
*
|
|
1024
|
+
* <br/>**One of the following permissions is required:**
|
|
881
1025
|
* + environment:roles:manage-settings
|
|
882
1026
|
* + extensions:definitions:read
|
|
883
1027
|
*
|
|
@@ -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
|
*/
|
|
@@ -282,7 +282,7 @@ export declare class LogsClient {
|
|
|
282
282
|
*/
|
|
283
283
|
storeLog(config: ({
|
|
284
284
|
body: LogMessageJson;
|
|
285
|
-
type: 'application/json' | 'application/json; charset=utf-8';
|
|
285
|
+
type: 'application/json' | 'application/json; charset=utf-8' | 'application/jsonl' | 'application/jsonl; charset=utf-8' | 'application/jsonlines' | 'application/jsonlines+json' | 'application/jsonlines+json; charset=utf-8' | 'application/jsonlines; charset=utf-8' | 'application/x-jsonlines' | 'application/x-jsonlines; charset=utf-8' | 'application/x-ndjson' | 'application/x-ndjson; charset=utf-8';
|
|
286
286
|
} | {
|
|
287
287
|
body: LogMessagePlain;
|
|
288
288
|
type: 'text/plain; charset=utf-8';
|
|
@@ -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
|
*/
|