@dynatrace-sdk/client-classic-environment-v2 1.7.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/cjs/index.js +2901 -2654
- package/docs/DOCS.md +491 -412
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +2901 -2654
- package/package.json +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +29 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/index.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +6 -4
- package/types/packages/client/classic-environment-v2/src/lib/apis/{synthetic-multi-protocol-monitors-api.d.ts → synthetic-network-availability-monitors-api.d.ts} +26 -26
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-additional-metadata.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-additional-metadata.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create-scopes-item.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create.d.ts +2 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-scopes-item.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update-scopes-item.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update.d.ts +1 -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/audit-log-entry-patch.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/audit-log-entry-patch.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/cloud-event.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/cloud-event.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/credentials-response-element.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/credentials-response-element.transformation.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/credentials.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/credentials.transformation.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-properties.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-properties.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/enum-value-value.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/enum-value-value.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/event-ingest-properties.d.ts +2 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-dto-actions.d.ts +7 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-dto-actions.transformation.d.ts +7 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-dto.d.ts +4 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-dto.transformation.d.ts +10 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-response.d.ts +6 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-response.transformation.d.ts +6 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-monitoring-configuration-value.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-monitoring-configuration-value.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +6 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/ingest-body.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/ingest-body.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/json-node.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/json-node.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-plain.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-plain.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/log-records-list.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/object-node.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/object-node.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/precondition-expected-value.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/precondition-expected-value.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/precondition.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/precondition.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-default.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-default.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/settings-value.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/settings-value.transformation.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-constraint-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto.d.ts +5 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto.transformation.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-request-configuration-dto.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-request-monitor-customized-script.d.ts +3 -3
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-request-monitor-customized-script.transformation.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
|
|
2
2
|
import { ActiveGateGroupsInfoDto } from '../models/active-gate-groups-info-dto';
|
|
3
3
|
import { ErrorEnvelope } from '../models/error-envelope';
|
|
4
|
+
import { ExecuteActionsDto } from '../models/execute-actions-dto';
|
|
5
|
+
import { ExecuteActionsResponse } from '../models/execute-actions-response';
|
|
4
6
|
import { Extension } from '../models/extension';
|
|
5
7
|
import { ExtensionAssetsDto } from '../models/extension-assets-dto';
|
|
6
8
|
import { ExtensionEnvironmentConfigurationVersion } from '../models/extension-environment-configuration-version';
|
|
@@ -538,6 +540,33 @@ export declare class Extensions_2_0Client {
|
|
|
538
540
|
/** The ID of the requested monitoring configuration. */ configurationId: string;
|
|
539
541
|
abortSignal?: AbortSignal;
|
|
540
542
|
}): Promise<void>;
|
|
543
|
+
/**
|
|
544
|
+
* Executes Data Source action of Active Gate or Host
|
|
545
|
+
*
|
|
546
|
+
* **Required scope:** environment-api:extension-configuration-actions:write<br/>**One of the following permissions is required:**
|
|
547
|
+
* + environment:roles:manage-settings
|
|
548
|
+
* + extensions:configuration.actions:write
|
|
549
|
+
*
|
|
550
|
+
* @returns Accepted. Response doesn't have a body.
|
|
551
|
+
*
|
|
552
|
+
* @example <caption>Code example</caption>
|
|
553
|
+
* import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
554
|
+
*
|
|
555
|
+
* const data =
|
|
556
|
+
* await extensions_2_0Client.executeExtensionMonitoringConfigurationActions(
|
|
557
|
+
* {
|
|
558
|
+
* extensionName: "...",
|
|
559
|
+
* configurationId: "...",
|
|
560
|
+
* body: {},
|
|
561
|
+
* },
|
|
562
|
+
* );
|
|
563
|
+
*/
|
|
564
|
+
executeExtensionMonitoringConfigurationActions(config: {
|
|
565
|
+
body: ExecuteActionsDto;
|
|
566
|
+
/** The name of the requested extension 2.0. */ extensionName: string;
|
|
567
|
+
/** The ID of the requested monitoring configuration. */ configurationId: string;
|
|
568
|
+
abortSignal?: AbortSignal;
|
|
569
|
+
}): Promise<ExecuteActionsResponse>;
|
|
541
570
|
/**
|
|
542
571
|
* Gets the list of the events linked to specific monitoring configuration
|
|
543
572
|
*
|
|
@@ -25,5 +25,5 @@ export * from './settings-objects-api';
|
|
|
25
25
|
export * from './settings-schemas-api';
|
|
26
26
|
export * from './synthetic-http-monitor-executions-api';
|
|
27
27
|
export * from './synthetic-locations-nodes-and-configuration-api';
|
|
28
|
-
export * from './synthetic-
|
|
28
|
+
export * from './synthetic-network-availability-monitors-api';
|
|
29
29
|
export * from './synthetic-on-demand-monitor-executions-api';
|
|
@@ -25,7 +25,7 @@ export declare class LogsClient {
|
|
|
25
25
|
*
|
|
26
26
|
* If *Log Management and Analytics, powered by Grail* is enabled, then a bearer OAuth token (with *storage:logs:read* and *storage:buckets:read* scopes) needs to be used for authentication.
|
|
27
27
|
*
|
|
28
|
-
* Please note that *Dynatrace API explorer* does not currently support OAuth authentication
|
|
28
|
+
* Please note that *Dynatrace API explorer* does not currently support OAuth authentication.
|
|
29
29
|
*
|
|
30
30
|
* @returns Success
|
|
31
31
|
*
|
|
@@ -106,7 +106,7 @@ export declare class LogsClient {
|
|
|
106
106
|
/**
|
|
107
107
|
* Exports log records | maturity=EARLY_ADOPTER
|
|
108
108
|
*
|
|
109
|
-
* **Required scope:**
|
|
109
|
+
* **Required scope:** storage:logs:read<br/>**Required permission:** environment:roles:logviewer<br/><br/>Returns the first *X* records (specified in the **pageSize** query parameter).
|
|
110
110
|
*
|
|
111
111
|
* Unlike the **search** API, this API does not split the result into slices and has no limit for the total number of records. Log records are sorted by the criteria specified in the **sort** query parameter.
|
|
112
112
|
*
|
|
@@ -269,13 +269,13 @@ export declare class LogsClient {
|
|
|
269
269
|
*
|
|
270
270
|
* **Required scope:** storage:logs:read<br/>**Required permission:** environment:roles:logviewer<br/><br/>Returns the first *X* records (specified in the **limit** query parameter). Log records are sorted by the criteria specified in the **sort** query parameter.
|
|
271
271
|
*
|
|
272
|
-
* If the query is too large to be processed in a single request, it is divided into slices. In that case the first response contains the **nextSliceKey** cursor for the second slice. Use it in the **nextSliceKey** query parameter to obtain the second slice, which contains **nextSliceKey** cursor for the third slice, and so on.
|
|
272
|
+
* If the query is too large to be processed in a single request, it is divided into slices (slices are unsupported on *Log Management and Analytics, powered by Grail*). In that case the first response contains the **nextSliceKey** cursor for the second slice. Use it in the **nextSliceKey** query parameter to obtain the second slice, which contains **nextSliceKey** cursor for the third slice, and so on.
|
|
273
273
|
*
|
|
274
274
|
* Results can be distributed unevenly between slices and some slices might be empty.
|
|
275
275
|
*
|
|
276
276
|
* If *Log Management and Analytics, powered by Grail* is enabled, then a bearer OAuth token (with *storage:logs:read* and *storage:buckets:read* scopes) needs to be used for authentication.
|
|
277
277
|
*
|
|
278
|
-
* Please note that *Dynatrace API explorer* does not currently support OAuth authentication
|
|
278
|
+
* Please note that *Dynatrace API explorer* does not currently support OAuth authentication.
|
|
279
279
|
*
|
|
280
280
|
* @returns Success
|
|
281
281
|
*
|
|
@@ -348,6 +348,8 @@ export declare class LogsClient {
|
|
|
348
348
|
* The first slice is always returned if you don't specify this parameter.
|
|
349
349
|
*
|
|
350
350
|
* If this parameter is set, all other query parameters are ignored.
|
|
351
|
+
*
|
|
352
|
+
* Unsupported on *Log Management and Analytics, powered by Grail*.
|
|
351
353
|
*/ nextSliceKey?: string;
|
|
352
354
|
abortSignal?: AbortSignal;
|
|
353
355
|
}): Promise<LogRecordsList>;
|
|
@@ -4,28 +4,28 @@ import { SyntheticMonitorListDto } from '../models/synthetic-monitor-list-dto';
|
|
|
4
4
|
import { SyntheticMultiProtocolMonitorDto } from '../models/synthetic-multi-protocol-monitor-dto';
|
|
5
5
|
import { SyntheticMultiProtocolMonitorUpdateDto } from '../models/synthetic-multi-protocol-monitor-update-dto';
|
|
6
6
|
/**
|
|
7
|
-
* Create, read, update and delete synthetic monitors. Currently
|
|
7
|
+
* Create, read, update and delete synthetic monitors. Currently network availability monitors only.
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class SyntheticNetworkAvailabilityMonitorsClient {
|
|
10
10
|
private httpClient;
|
|
11
11
|
/**
|
|
12
|
-
* @param {HttpClient} httpClientImplementation - You can provide custom http client as a parameter to constructor of a
|
|
12
|
+
* @param {HttpClient} httpClientImplementation - You can provide custom http client as a parameter to constructor of a SyntheticNetworkAvailabilityMonitorsClient. Custom http client should implement {HttpClient} interface.
|
|
13
13
|
* @example
|
|
14
|
-
* const
|
|
14
|
+
* const syntheticNetworkAvailabilityMonitorsClientNodeJs = new SyntheticNetworkAvailabilityMonitorsClient(yourCustomImplementation);
|
|
15
15
|
*/
|
|
16
16
|
constructor(httpClientImplementation: HttpClient);
|
|
17
17
|
/**
|
|
18
|
-
* Gets all synthetic monitors. Currently
|
|
18
|
+
* Gets all synthetic monitors. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
19
19
|
*
|
|
20
20
|
* **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:viewer
|
|
21
21
|
*
|
|
22
22
|
* @returns Success
|
|
23
23
|
*
|
|
24
24
|
* @example <caption>Code example</caption>
|
|
25
|
-
* import {
|
|
25
|
+
* import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
26
26
|
*
|
|
27
27
|
* const data =
|
|
28
|
-
* await
|
|
28
|
+
* await syntheticNetworkAvailabilityMonitorsClient.getMonitors();
|
|
29
29
|
*/
|
|
30
30
|
getMonitors(config?: {
|
|
31
31
|
/**
|
|
@@ -36,17 +36,17 @@ export declare class SyntheticMultiProtocolMonitorsClient {
|
|
|
36
36
|
abortSignal?: AbortSignal;
|
|
37
37
|
}): Promise<SyntheticMonitorListDto>;
|
|
38
38
|
/**
|
|
39
|
-
* Creates a synthetic monitor definition. Currently
|
|
39
|
+
* Creates a synthetic monitor definition. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
40
40
|
*
|
|
41
41
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:viewer
|
|
42
42
|
*
|
|
43
43
|
* @returns Success
|
|
44
44
|
*
|
|
45
45
|
* @example <caption>Code example</caption>
|
|
46
|
-
* import {
|
|
46
|
+
* import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
47
47
|
*
|
|
48
48
|
* const data =
|
|
49
|
-
* await
|
|
49
|
+
* await syntheticNetworkAvailabilityMonitorsClient.createMonitor(
|
|
50
50
|
* {},
|
|
51
51
|
* );
|
|
52
52
|
*/
|
|
@@ -55,36 +55,36 @@ export declare class SyntheticMultiProtocolMonitorsClient {
|
|
|
55
55
|
abortSignal?: AbortSignal;
|
|
56
56
|
}): Promise<MonitorEntityIdDto>;
|
|
57
57
|
/**
|
|
58
|
-
* Gets a synthetic monitor definition for the given monitor ID. Currently
|
|
58
|
+
* Gets a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
59
59
|
*
|
|
60
60
|
* **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:viewer
|
|
61
61
|
*
|
|
62
62
|
* @returns Success
|
|
63
63
|
*
|
|
64
64
|
* @example <caption>Code example</caption>
|
|
65
|
-
* import {
|
|
65
|
+
* import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
66
66
|
*
|
|
67
67
|
* const data =
|
|
68
|
-
* await
|
|
69
|
-
* monitorId: "...",
|
|
70
|
-
*
|
|
68
|
+
* await syntheticNetworkAvailabilityMonitorsClient.getMonitor(
|
|
69
|
+
* { monitorId: "..." },
|
|
70
|
+
* );
|
|
71
71
|
*/
|
|
72
72
|
getMonitor(config: {
|
|
73
73
|
/** The identifier of the monitor. */ monitorId: string;
|
|
74
74
|
abortSignal?: AbortSignal;
|
|
75
75
|
}): Promise<SyntheticMultiProtocolMonitorDto>;
|
|
76
76
|
/**
|
|
77
|
-
* Updates a synthetic monitor definition for the given monitor ID. Currently
|
|
77
|
+
* Updates a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
78
78
|
*
|
|
79
79
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:viewer
|
|
80
80
|
*
|
|
81
81
|
* @example <caption>Code example</caption>
|
|
82
|
-
* import {
|
|
82
|
+
* import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
83
83
|
*
|
|
84
84
|
* const data =
|
|
85
|
-
* await
|
|
86
|
-
* monitorId: "...",
|
|
87
|
-
*
|
|
85
|
+
* await syntheticNetworkAvailabilityMonitorsClient.updateMonitor(
|
|
86
|
+
* { monitorId: "..." },
|
|
87
|
+
* );
|
|
88
88
|
*/
|
|
89
89
|
updateMonitor(config: {
|
|
90
90
|
body: SyntheticMultiProtocolMonitorUpdateDto;
|
|
@@ -92,21 +92,21 @@ export declare class SyntheticMultiProtocolMonitorsClient {
|
|
|
92
92
|
abortSignal?: AbortSignal;
|
|
93
93
|
}): Promise<void>;
|
|
94
94
|
/**
|
|
95
|
-
* Deletes a synthetic monitor definition for the given monitor ID. Currently
|
|
95
|
+
* Deletes a synthetic monitor definition for the given monitor ID. Currently network availability monitors only. | maturity=EARLY_ADOPTER
|
|
96
96
|
*
|
|
97
97
|
* **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:viewer
|
|
98
98
|
*
|
|
99
99
|
* @example <caption>Code example</caption>
|
|
100
|
-
* import {
|
|
100
|
+
* import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
101
101
|
*
|
|
102
102
|
* const data =
|
|
103
|
-
* await
|
|
104
|
-
* monitorId: "...",
|
|
105
|
-
*
|
|
103
|
+
* await syntheticNetworkAvailabilityMonitorsClient.deleteMonitor(
|
|
104
|
+
* { monitorId: "..." },
|
|
105
|
+
* );
|
|
106
106
|
*/
|
|
107
107
|
deleteMonitor(config: {
|
|
108
108
|
/** The identifier of the monitor. */ monitorId: string;
|
|
109
109
|
abortSignal?: AbortSignal;
|
|
110
110
|
}): Promise<void>;
|
|
111
111
|
}
|
|
112
|
-
export declare const
|
|
112
|
+
export declare const syntheticNetworkAvailabilityMonitorsClient: SyntheticNetworkAvailabilityMonitorsClient;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
* A `dashboardId` property for dashboard sharing tokens.
|
|
5
5
|
* A `reportId` property for report sharing tokens
|
|
6
|
-
* This is just an alias for a type any
|
|
7
|
-
* @typedef {any} ApiTokenAdditionalMetadata
|
|
6
|
+
* This is just an alias for a type Record<string, any>.
|
|
7
|
+
* @typedef {Record<string, any>} ApiTokenAdditionalMetadata
|
|
8
8
|
*/
|
|
9
|
-
export declare type ApiTokenAdditionalMetadata = any
|
|
9
|
+
export declare type ApiTokenAdditionalMetadata = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ApiTokenAdditionalMetadata } from './api-token-additional-metadata';
|
|
2
|
-
export declare type AsJson = any
|
|
2
|
+
export declare type AsJson = Record<string, any>;
|
|
3
3
|
export declare function fromJson($model: AsJson): ApiTokenAdditionalMetadata;
|
|
4
4
|
export declare function toJson($model: ApiTokenAdditionalMetadata): AsJson;
|
|
@@ -32,6 +32,7 @@ export declare enum ApiTokenCreateScopesItem {
|
|
|
32
32
|
ProblemsWrite = "problems.write",
|
|
33
33
|
EventsRead = "events.read",
|
|
34
34
|
EventsIngest = "events.ingest",
|
|
35
|
+
BizeventsIngest = "bizevents.ingest",
|
|
35
36
|
AnalyzersRead = "analyzers.read",
|
|
36
37
|
AnalyzersWrite = "analyzers.write",
|
|
37
38
|
NetworkZonesRead = "networkZones.read",
|
|
@@ -19,7 +19,7 @@ export interface ApiTokenCreate {
|
|
|
19
19
|
* * `M`: months
|
|
20
20
|
* * `y`: years
|
|
21
21
|
*
|
|
22
|
-
* If not set, the token never expires.
|
|
22
|
+
* If not set, the token never expires. Ensure that the expiration date is not set in the past.
|
|
23
23
|
*/
|
|
24
24
|
expirationDate?: string;
|
|
25
25
|
/**
|
|
@@ -68,6 +68,7 @@ export interface ApiTokenCreate {
|
|
|
68
68
|
* * `problems.write`: Write problems.
|
|
69
69
|
* * `events.read`: Read events.
|
|
70
70
|
* * `events.ingest`: Ingest events.
|
|
71
|
+
* * `bizevents.ingest`: Ingest bizevents.
|
|
71
72
|
* * `analyzers.read`: Read analyzers.
|
|
72
73
|
* * `analyzers.write`: Write & execute analyzers.
|
|
73
74
|
* * `networkZones.read`: Read network zones.
|
package/types/packages/client/classic-environment-v2/src/lib/models/api-token-scopes-item.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export declare enum ApiTokenScopesItem {
|
|
|
39
39
|
AttacksRead = "attacks.read",
|
|
40
40
|
AttacksWrite = "attacks.write",
|
|
41
41
|
AuditLogsRead = "auditLogs.read",
|
|
42
|
+
BizeventsIngest = "bizevents.ingest",
|
|
42
43
|
CredentialVaultRead = "credentialVault.read",
|
|
43
44
|
CredentialVaultWrite = "credentialVault.write",
|
|
44
45
|
EntitiesRead = "entities.read",
|
|
@@ -32,6 +32,7 @@ export declare enum ApiTokenUpdateScopesItem {
|
|
|
32
32
|
ProblemsWrite = "problems.write",
|
|
33
33
|
EventsRead = "events.read",
|
|
34
34
|
EventsIngest = "events.ingest",
|
|
35
|
+
BizeventsIngest = "bizevents.ingest",
|
|
35
36
|
AnalyzersRead = "analyzers.read",
|
|
36
37
|
AnalyzersWrite = "analyzers.write",
|
|
37
38
|
NetworkZonesRead = "networkZones.read",
|
|
@@ -49,6 +49,7 @@ export interface ApiTokenUpdate {
|
|
|
49
49
|
* * `problems.write`: Write problems.
|
|
50
50
|
* * `events.read`: Read events.
|
|
51
51
|
* * `events.ingest`: Ingest events.
|
|
52
|
+
* * `bizevents.ingest`: Ingest bizevents.
|
|
52
53
|
* * `analyzers.read`: Read analyzers.
|
|
53
54
|
* * `analyzers.write`: Write & execute analyzers.
|
|
54
55
|
* * `networkZones.read`: Read network zones.
|
package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto-type.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare enum AssetInfoDtoType {
|
|
|
6
6
|
CustomCards = "CUSTOM_CARDS",
|
|
7
7
|
Dashboard = "DASHBOARD",
|
|
8
8
|
DeclarativeProcesses = "DECLARATIVE_PROCESSES",
|
|
9
|
+
DqlLogProcessingRule = "DQL_LOG_PROCESSING_RULE",
|
|
9
10
|
GenericRelationship = "GENERIC_RELATIONSHIP",
|
|
10
11
|
GenericType = "GENERIC_TYPE",
|
|
11
12
|
ListScreenFilters = "LIST_SCREEN_FILTERS",
|
|
@@ -14,6 +15,7 @@ export declare enum AssetInfoDtoType {
|
|
|
14
15
|
LogEvent = "LOG_EVENT",
|
|
15
16
|
LogMetric = "LOG_METRIC",
|
|
16
17
|
LogProcessingRule = "LOG_PROCESSING_RULE",
|
|
18
|
+
LqlLogProcessingRule = "LQL_LOG_PROCESSING_RULE",
|
|
17
19
|
MetricMetadata = "METRIC_METADATA",
|
|
18
20
|
MetricQuery = "METRIC_QUERY",
|
|
19
21
|
ScreenActions = "SCREEN_ACTIONS",
|
package/types/packages/client/classic-environment-v2/src/lib/models/audit-log-entry-patch.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The patch of the recorded operation as the JSON representation.
|
|
3
3
|
|
|
4
4
|
The format is an enhanced RFC 6902. The patch also carries the previous value in the **oldValue** field.
|
|
5
|
-
* This is just an alias for a type any
|
|
6
|
-
* @typedef {any} AuditLogEntryPatch
|
|
5
|
+
* This is just an alias for a type Record<string, any>.
|
|
6
|
+
* @typedef {Record<string, any>} AuditLogEntryPatch
|
|
7
7
|
*/
|
|
8
|
-
export declare type AuditLogEntryPatch = any
|
|
8
|
+
export declare type AuditLogEntryPatch = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AuditLogEntryPatch } from './audit-log-entry-patch';
|
|
2
|
-
export declare type AsJson = any
|
|
2
|
+
export declare type AsJson = Record<string, any>;
|
|
3
3
|
export declare function fromJson($model: AsJson): AuditLogEntryPatch;
|
|
4
4
|
export declare function toJson($model: AuditLogEntryPatch): AsJson;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CloudEvents is a [specification](https://github.com/cloudevents/spec/blob/v1.0/spec.json) for describing event data in common formats to provide interoperability across services, platforms and systems.
|
|
3
3
|
*/
|
|
4
4
|
export interface CloudEvent {
|
|
5
|
-
data?: any
|
|
5
|
+
data?: Record<string, any>;
|
|
6
6
|
data_base64?: string;
|
|
7
7
|
datacontenttype?: string;
|
|
8
8
|
dataschema?: string;
|
|
@@ -8,6 +8,10 @@ import { ExternalVaultConfig } from './external-vault-config';
|
|
|
8
8
|
* Metadata of the credentials set.
|
|
9
9
|
*/
|
|
10
10
|
export interface CredentialsResponseElement {
|
|
11
|
+
/**
|
|
12
|
+
* Allow access without app context, for example, from ad hoc functions in Workflows (requires the APP_ENGINE scope).
|
|
13
|
+
*/
|
|
14
|
+
allowContextlessRequests?: boolean;
|
|
11
15
|
/**
|
|
12
16
|
* The set of entities allowed to use the credential.
|
|
13
17
|
*/
|
|
@@ -6,6 +6,7 @@ import * as _CredentialsResponseElementScopesItemTransformation from './credenti
|
|
|
6
6
|
import * as _CredentialsResponseElementTypeTransformation from './credentials-response-element-type.transformation';
|
|
7
7
|
import * as _ExternalVaultConfigTransformation from './external-vault-config.transformation';
|
|
8
8
|
export interface AsJson {
|
|
9
|
+
allowContextlessRequests?: boolean;
|
|
9
10
|
allowedEntities: _CredentialAccessDataTransformation.AsJson[];
|
|
10
11
|
credentialUsageSummary: _CredentialUsageHandlerTransformation.AsJson[];
|
|
11
12
|
description: string;
|
|
@@ -8,6 +8,10 @@ import { CredentialsType } from './credentials-type';
|
|
|
8
8
|
* The actual set of fields depends on the type of credentials. Find the list of actual objects in the description of the **type** field or see [Credential vault API - JSON models](https://dt-url.net/2sa3sen).
|
|
9
9
|
*/
|
|
10
10
|
export interface Credentials {
|
|
11
|
+
/**
|
|
12
|
+
* Allow ad-hoc functions to access the credential details (requires the APP_ENGINE scope).
|
|
13
|
+
*/
|
|
14
|
+
allowContextlessRequests?: boolean;
|
|
11
15
|
/**
|
|
12
16
|
* The set of entities allowed to use the credential.
|
|
13
17
|
*/
|
package/types/packages/client/classic-environment-v2/src/lib/models/credentials.transformation.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function isPublicCertificateCredentials($model: Credentials): $mo
|
|
|
12
12
|
export declare function isTokenCredentials($model: Credentials): $model is TokenCredentials;
|
|
13
13
|
export declare function isUserPasswordCredentials($model: Credentials): $model is UserPasswordCredentials;
|
|
14
14
|
export interface AsJson {
|
|
15
|
+
allowContextlessRequests?: boolean;
|
|
15
16
|
allowedEntities?: _CredentialAccessDataTransformation.AsJson[];
|
|
16
17
|
description?: string;
|
|
17
18
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityProperties } from './entity-properties';
|
|
2
2
|
export interface AsJson {
|
|
3
|
-
[propName: string]: any;
|
|
3
|
+
[propName: string]: Record<string, any> | undefined;
|
|
4
4
|
}
|
|
5
5
|
export declare function fromJson($model: AsJson): EntityProperties;
|
|
6
6
|
export declare function toJson($model: EntityProperties): AsJson;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The allowed value of the enum.
|
|
3
|
-
* This is just an alias for a type any
|
|
4
|
-
* @typedef {any} EnumValueValue
|
|
3
|
+
* This is just an alias for a type Record<string, any>.
|
|
4
|
+
* @typedef {Record<string, any>} EnumValueValue
|
|
5
5
|
*/
|
|
6
|
-
export declare type EnumValueValue = any
|
|
6
|
+
export declare type EnumValueValue = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EnumValueValue } from './enum-value-value';
|
|
2
|
-
export declare type AsJson = any
|
|
2
|
+
export declare type AsJson = Record<string, any>;
|
|
3
3
|
export declare function fromJson($model: AsJson): EnumValueValue;
|
|
4
4
|
export declare function toJson($model: EnumValueValue): AsJson;
|
package/types/packages/client/classic-environment-v2/src/lib/models/event-ingest-properties.d.ts
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* All other keys are interpreted as user-defined event properties.
|
|
7
7
|
*
|
|
8
8
|
* Values of Dynatrace-reserved properties must fulfill the requirements of the respective property.
|
|
9
|
+
*
|
|
10
|
+
* A maximum of 100 properties can be specified. A property key is allowed to contain up to 100 characters. A property value is allowed to contain up to 4096 characters.
|
|
9
11
|
*/
|
|
10
12
|
export interface EventIngestProperties {
|
|
11
13
|
[propName: string]: string | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExecuteActionsDtoActions } from './execute-actions-dto-actions';
|
|
2
|
+
import * as _JsonNodeTransformation from './json-node.transformation';
|
|
3
|
+
export interface AsJson {
|
|
4
|
+
[propName: string]: _JsonNodeTransformation.AsJson | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare function fromJson($model: AsJson): ExecuteActionsDtoActions;
|
|
7
|
+
export declare function toJson($model: ExecuteActionsDtoActions): AsJson;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ExecuteActionsDto } from './execute-actions-dto';
|
|
3
|
+
import * as _ExecuteActionsDtoActionsTransformation from './execute-actions-dto-actions.transformation';
|
|
4
|
+
export interface AsJson {
|
|
5
|
+
actions?: _ExecuteActionsDtoActionsTransformation.AsJson;
|
|
6
|
+
}
|
|
7
|
+
export declare function fromJson($model: AsJson): ExecuteActionsDto;
|
|
8
|
+
export declare function toJson($model: ExecuteActionsDto): AsJson;
|
|
9
|
+
export declare function fromFormData(formData: FormDataResponseBody): ExecuteActionsDto;
|
|
10
|
+
export declare function toFormData($model: ExecuteActionsDto): FormDataRequestBody;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configuration
|
|
3
|
-
* This is just an alias for a type any
|
|
4
|
-
* @typedef {any} ExtensionMonitoringConfigurationValue
|
|
3
|
+
* This is just an alias for a type Record<string, any>.
|
|
4
|
+
* @typedef {Record<string, any>} ExtensionMonitoringConfigurationValue
|
|
5
5
|
*/
|
|
6
|
-
export declare type ExtensionMonitoringConfigurationValue = any
|
|
6
|
+
export declare type ExtensionMonitoringConfigurationValue = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ExtensionMonitoringConfigurationValue } from './extension-monitoring-configuration-value';
|
|
2
|
-
export declare type AsJson = any
|
|
2
|
+
export declare type AsJson = Record<string, any>;
|
|
3
3
|
export declare function fromJson($model: AsJson): ExtensionMonitoringConfigurationValue;
|
|
4
4
|
export declare function toJson($model: ExtensionMonitoringConfigurationValue): AsJson;
|
|
@@ -320,6 +320,12 @@ export * from './evidence-details';
|
|
|
320
320
|
export * as _EvidenceDetailsTransformation from './evidence-details.transformation';
|
|
321
321
|
export * from './evidence-evidence-type';
|
|
322
322
|
export * as _EvidenceEvidenceTypeTransformation from './evidence-evidence-type.transformation';
|
|
323
|
+
export * from './execute-actions-dto';
|
|
324
|
+
export * as _ExecuteActionsDtoTransformation from './execute-actions-dto.transformation';
|
|
325
|
+
export * from './execute-actions-dto-actions';
|
|
326
|
+
export * as _ExecuteActionsDtoActionsTransformation from './execute-actions-dto-actions.transformation';
|
|
327
|
+
export * from './execute-actions-response';
|
|
328
|
+
export * as _ExecuteActionsResponseTransformation from './execute-actions-response.transformation';
|
|
323
329
|
export * from './execution-full-results';
|
|
324
330
|
export * as _ExecutionFullResultsTransformation from './execution-full-results.transformation';
|
|
325
331
|
export * from './execution-simple-results';
|
|
@@ -8,7 +8,7 @@ Following properties have special semantics:
|
|
|
8
8
|
- event.kind - Always overridden to 'BIZ_EVENT'
|
|
9
9
|
|
|
10
10
|
Any other keys will be transferred as event properties.
|
|
11
|
-
* This is just an alias for a type any
|
|
12
|
-
* @typedef {any} IngestBody
|
|
11
|
+
* This is just an alias for a type Record<string, any>.
|
|
12
|
+
* @typedef {Record<string, any>} IngestBody
|
|
13
13
|
*/
|
|
14
|
-
export declare type IngestBody = any
|
|
14
|
+
export declare type IngestBody = Record<string, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The monitoring configuration
|
|
3
|
-
* This is just an alias for a type any
|
|
4
|
-
* @typedef {any} JsonNode
|
|
3
|
+
* This is just an alias for a type Record<string, any>.
|
|
4
|
+
* @typedef {Record<string, any>} JsonNode
|
|
5
5
|
*/
|
|
6
|
-
export declare type JsonNode = any
|
|
6
|
+
export declare type JsonNode = Record<string, any>;
|
|
@@ -217,7 +217,7 @@ Supported semantic attribute keys:
|
|
|
217
217
|
* winlog.opcode
|
|
218
218
|
* winlog.provider
|
|
219
219
|
* winlog.task
|
|
220
|
-
* This is just an alias for a type any
|
|
221
|
-
* @typedef {any} LogMessageJson
|
|
220
|
+
* This is just an alias for a type Record<string, any>.
|
|
221
|
+
* @typedef {Record<string, any>} LogMessageJson
|
|
222
222
|
*/
|
|
223
|
-
export declare type LogMessageJson = any
|
|
223
|
+
export declare type LogMessageJson = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogMessageJson } from './log-message-json';
|
|
2
|
-
export declare type AsJson = any
|
|
2
|
+
export declare type AsJson = Record<string, any>;
|
|
3
3
|
export declare function fromJson($model: AsJson): LogMessageJson;
|
|
4
4
|
export declare function toJson($model: LogMessageJson): AsJson;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The log message in plain text.
|
|
3
3
|
|
|
4
4
|
The length of the message is limited to 65,536 bytes for Grail tenants and to 8,192 bytes for other tenants. Any content exceeding the limit is trimmed.
|
|
5
|
-
* This is just an alias for a type any
|
|
6
|
-
* @typedef {any} LogMessagePlain
|
|
5
|
+
* This is just an alias for a type Record<string, any>.
|
|
6
|
+
* @typedef {Record<string, any>} LogMessagePlain
|
|
7
7
|
*/
|
|
8
|
-
export declare type LogMessagePlain = any
|
|
8
|
+
export declare type LogMessagePlain = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogMessagePlain } from './log-message-plain';
|
|
2
|
-
export declare type AsJson = any
|
|
2
|
+
export declare type AsJson = Record<string, any>;
|
|
3
3
|
export declare function fromJson($model: AsJson): LogMessagePlain;
|
|
4
4
|
export declare function toJson($model: LogMessagePlain): AsJson;
|