@dynatrace-sdk/client-classic-environment-v2 1.4.2 → 1.7.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -1
  3. package/cjs/index.js +12229 -8765
  4. package/docs/DOCS.md +818 -122
  5. package/dynatrace-metadata.json +2 -2
  6. package/esm/index.js +12375 -8791
  7. package/package.json +3 -2
  8. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-api-tokens-api.d.ts +1 -1
  9. package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +61 -1
  10. package/types/packages/client/classic-environment-v2/src/lib/apis/index.d.ts +1 -0
  11. package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +6 -2
  12. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +4 -0
  13. package/types/packages/client/classic-environment-v2/src/lib/apis/security-problems-api.d.ts +2 -0
  14. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-multi-protocol-monitors-api.d.ts +112 -0
  15. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/api-client-error.d.ts +2 -1
  16. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/client-request-error.d.ts +1 -1
  17. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-group-info-dto.d.ts +4 -4
  18. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-group-info-dto.transformation.d.ts +3 -3
  19. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-info-dto.d.ts +2 -2
  20. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-info-dto.transformation.d.ts +2 -2
  21. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-os-architecture.d.ts +2 -1
  22. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create-scopes-item.d.ts +3 -1
  23. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create.d.ts +2 -0
  24. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-scopes-item.d.ts +3 -1
  25. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update-scopes-item.d.ts +3 -1
  26. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update.d.ts +2 -0
  27. package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto-type.d.ts +3 -0
  28. package/types/packages/client/classic-environment-v2/src/lib/models/credentials.d.ts +1 -1
  29. package/types/packages/client/classic-environment-v2/src/lib/models/credentials.transformation.d.ts +1 -1
  30. package/types/packages/client/classic-environment-v2/src/lib/models/custom-device-creation.d.ts +2 -0
  31. package/types/packages/client/classic-environment-v2/src/lib/models/event-ingest.d.ts +3 -1
  32. package/types/packages/client/classic-environment-v2/src/lib/models/extension-info-list.d.ts +21 -0
  33. package/types/packages/client/classic-environment-v2/src/lib/models/extension-info-list.transformation.d.ts +10 -0
  34. package/types/packages/client/classic-environment-v2/src/lib/models/extension-info.d.ts +17 -0
  35. package/types/packages/client/classic-environment-v2/src/lib/models/extension-info.transformation.d.ts +8 -0
  36. package/types/packages/client/classic-environment-v2/src/lib/models/get-all-active-gates-query-os-architecture.d.ts +2 -1
  37. package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +66 -4
  38. package/types/packages/client/classic-environment-v2/src/lib/models/location-collection-element.d.ts +20 -0
  39. package/types/packages/client/classic-environment-v2/src/lib/models/location-collection-element.transformation.d.ts +5 -0
  40. package/types/packages/client/classic-environment-v2/src/lib/models/monitor-entity-id-dto.d.ts +9 -0
  41. package/types/packages/client/classic-environment-v2/src/lib/models/monitor-entity-id-dto.transformation.d.ts +6 -0
  42. package/types/packages/client/classic-environment-v2/src/lib/models/problem.d.ts +0 -2
  43. package/types/packages/client/classic-environment-v2/src/lib/models/problem.transformation.d.ts +0 -2
  44. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition.d.ts +4 -0
  45. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition.transformation.d.ts +1 -0
  46. package/types/packages/client/classic-environment-v2/src/lib/models/registered-extension-result-dto.d.ts +10 -0
  47. package/types/packages/client/classic-environment-v2/src/lib/models/registered-extension-result-dto.transformation.d.ts +7 -0
  48. package/types/packages/client/classic-environment-v2/src/lib/models/{security-problem-details-related-container-images-item.d.ts → related-container-list.d.ts} +1 -1
  49. package/types/packages/client/classic-environment-v2/src/lib/models/related-container-list.transformation.d.ts +7 -0
  50. package/types/packages/client/classic-environment-v2/src/lib/models/remediation-assessment.d.ts +4 -0
  51. package/types/packages/client/classic-environment-v2/src/lib/models/remediation-assessment.transformation.d.ts +1 -0
  52. package/types/packages/client/classic-environment-v2/src/lib/models/remediation-progress-entity-assessment.d.ts +4 -0
  53. package/types/packages/client/classic-environment-v2/src/lib/models/remediation-progress-entity-assessment.transformation.d.ts +1 -0
  54. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-assessment-accuracy.d.ts +8 -0
  55. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-assessment-accuracy.transformation.d.ts +4 -0
  56. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-base-risk-level.d.ts +10 -0
  57. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-base-risk-level.transformation.d.ts +4 -0
  58. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-data-assets.d.ts +8 -0
  59. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-data-assets.transformation.d.ts +4 -0
  60. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-exposure.d.ts +8 -0
  61. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-exposure.transformation.d.ts +4 -0
  62. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-public-exploit.d.ts +7 -0
  63. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-public-exploit.transformation.d.ts +4 -0
  64. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-risk-level.d.ts +12 -0
  65. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-risk-level.transformation.d.ts +4 -0
  66. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-vulnerable-function-usage.d.ts +8 -0
  67. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details-vulnerable-function-usage.transformation.d.ts +4 -0
  68. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details.d.ts +41 -0
  69. package/types/packages/client/classic-environment-v2/src/lib/models/risk-assessment-details.transformation.d.ts +24 -0
  70. package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-details.d.ts +4 -9
  71. package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-details.transformation.d.ts +4 -4
  72. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-list-dto.d.ts +10 -0
  73. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-list-dto.transformation.d.ts +7 -0
  74. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto-type.d.ts +8 -0
  75. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto-type.transformation.d.ts +4 -0
  76. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto.d.ts +27 -0
  77. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto.transformation.d.ts +12 -0
  78. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-summary-dto-type.d.ts +6 -0
  79. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-summary-dto-type.transformation.d.ts +4 -0
  80. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-summary-dto.d.ts +19 -0
  81. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-summary-dto.transformation.d.ts +10 -0
  82. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-constraint-dto-properties.d.ts +6 -0
  83. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-constraint-dto-properties.transformation.d.ts +6 -0
  84. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-constraint-dto.d.ts +11 -0
  85. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-constraint-dto.transformation.d.ts +8 -0
  86. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto-properties.d.ts +6 -0
  87. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto-properties.transformation.d.ts +6 -0
  88. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto-type.d.ts +6 -0
  89. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto-type.transformation.d.ts +4 -0
  90. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto.d.ts +43 -0
  91. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto.transformation.d.ts +20 -0
  92. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-properties.d.ts +6 -0
  93. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-properties.transformation.d.ts +6 -0
  94. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-request-type.d.ts +8 -0
  95. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-request-type.transformation.d.ts +4 -0
  96. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto.d.ts +27 -0
  97. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto.transformation.d.ts +15 -0
  98. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto-properties.d.ts +6 -0
  99. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto-properties.transformation.d.ts +6 -0
  100. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto-type.d.ts +6 -0
  101. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto-type.transformation.d.ts +4 -0
  102. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto.d.ts +39 -0
  103. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto.transformation.d.ts +19 -0
  104. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-request-configuration-dto-properties.d.ts +6 -0
  105. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-request-configuration-dto-properties.transformation.d.ts +6 -0
  106. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-request-configuration-dto.d.ts +12 -0
  107. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-request-configuration-dto.transformation.d.ts +9 -0
  108. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-tag-with-source-dto-source.d.ts +8 -0
  109. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-tag-with-source-dto-source.transformation.d.ts +4 -0
  110. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-tag-with-source-dto.d.ts +21 -0
  111. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-tag-with-source-dto.transformation.d.ts +10 -0
  112. package/types/packages/http-client/src/index.d.ts +1 -1
  113. package/types/packages/http-client/src/lib/types/http-client-abort-error.d.ts +1 -0
  114. package/types/packages/http-client/src/lib/types/http-client-network-error.d.ts +1 -0
  115. package/types/packages/http-client/src/lib/types/http-client-request-error.d.ts +1 -0
  116. package/types/packages/http-client/src/lib/types/http-client-response-error.d.ts +1 -0
  117. package/types/packages/client/classic-environment-v2/src/lib/models/main-event.d.ts +0 -13
  118. package/types/packages/client/classic-environment-v2/src/lib/models/main-event.transformation.d.ts +0 -7
  119. package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-details-related-container-images-item.transformation.d.ts +0 -7
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-classic-environment-v2",
3
- "version": "1.4.2",
3
+ "version": "1.7.0",
4
4
  "description": "Client for the Dynatrace Environment API v2",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
- "@dynatrace-sdk/http-client": "^1.0.6"
7
+ "@dynatrace-sdk/error-handlers": "^1.2.0",
8
+ "@dynatrace-sdk/http-client": "^1.0.9"
8
9
  },
9
10
  "main": "./cjs/index.js",
10
11
  "module": "./esm/index.js",
@@ -154,7 +154,7 @@ export declare class AccessTokensApiTokensClient {
154
154
  *
155
155
  * const data =
156
156
  * await accessTokensApiTokensClient.createApiToken({
157
- * body: { name: "tokenName", scopes: "metrics.read" },
157
+ * body: { name: "tokenName", scopes: ["metrics.read"] },
158
158
  * });
159
159
  */
160
160
  createApiToken(config: {
@@ -5,6 +5,7 @@ import { Extension } from '../models/extension';
5
5
  import { ExtensionAssetsDto } from '../models/extension-assets-dto';
6
6
  import { ExtensionEnvironmentConfigurationVersion } from '../models/extension-environment-configuration-version';
7
7
  import { ExtensionEventsList } from '../models/extension-events-list';
8
+ import { ExtensionInfoList } from '../models/extension-info-list';
8
9
  import { ExtensionList } from '../models/extension-list';
9
10
  import { ExtensionMonitoringConfiguration } from '../models/extension-monitoring-configuration';
10
11
  import { ExtensionMonitoringConfigurationsList } from '../models/extension-monitoring-configurations-list';
@@ -16,6 +17,7 @@ import { JsonNode } from '../models/json-node';
16
17
  import { MonitoringConfigurationDto } from '../models/monitoring-configuration-dto';
17
18
  import { MonitoringConfigurationResponse } from '../models/monitoring-configuration-response';
18
19
  import { MonitoringConfigurationUpdateDto } from '../models/monitoring-configuration-update-dto';
20
+ import { RegisteredExtensionResultDto } from '../models/registered-extension-result-dto';
19
21
  import { SchemaDefinitionRestDto } from '../models/schema-definition-rest-dto';
20
22
  import { SchemaFiles } from '../models/schema-files';
21
23
  import { SchemasList } from '../models/schemas-list';
@@ -85,6 +87,39 @@ export declare class Extensions_2_0Client {
85
87
  /** Only run validation but do not persist the extension even if validation was successful. */ validateOnly?: boolean;
86
88
  abortSignal?: AbortSignal;
87
89
  }): Promise<ExtensionUploadResponseDto>;
90
+ /**
91
+ * Lists all the extensions 2.0 available in your environment with additional metadata
92
+ *
93
+ * **Required scope:** environment-api:extensions:read<br/>**One of the following permissions is required:**
94
+ * + environment:roles:manage-settings
95
+ * + extensions:definitions:read
96
+ *
97
+ * @returns Success
98
+ *
99
+ * @example <caption>Code example</caption>
100
+ * import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
101
+ *
102
+ * const data =
103
+ * await extensions_2_0Client.listExtensionInfos();
104
+ */
105
+ listExtensionInfos(config?: {
106
+ /**
107
+ * The cursor for the next page of results. You can find it in the **nextPageKey** field of the previous response.
108
+ *
109
+ * The first page is always returned if you don't specify the **nextPageKey** query parameter.
110
+ *
111
+ * When the **nextPageKey** is set to obtain subsequent pages, you must omit all other query parameters.
112
+ */ nextPageKey?: string;
113
+ /**
114
+ * The amount of extensions in a single response payload.
115
+ *
116
+ * The maximal allowed page size is 100.
117
+ *
118
+ * If not set, 20 is used.
119
+ */ pageSize?: number;
120
+ /** Filters the resulting set of extensions 2.0 by name. You can specify a partial name. In that case, the CONTAINS operator is used. */ name?: string;
121
+ abortSignal?: AbortSignal;
122
+ }): Promise<ExtensionInfoList>;
88
123
  /**
89
124
  * Lists all the extension 2.0 schemas versions available in your environment
90
125
  *
@@ -179,6 +214,27 @@ export declare class Extensions_2_0Client {
179
214
  */ pageSize?: number;
180
215
  abortSignal?: AbortSignal;
181
216
  }): Promise<ExtensionList>;
217
+ /**
218
+ * Installs Extension from HUB
219
+ *
220
+ * **Required scope:** environment-api:extensions:write<br/>**One of the following permissions is required:**
221
+ * + environment:roles:manage-settings
222
+ * + extensions:definitions:write
223
+ *
224
+ * @returns Success. The extension 2.0 has been uploaded.
225
+ *
226
+ * @example <caption>Code example</caption>
227
+ * import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
228
+ *
229
+ * const data = await extensions_2_0Client.installExtension({
230
+ * extensionName: "...",
231
+ * });
232
+ */
233
+ installExtension(config: {
234
+ /** The name of the requested extension 2.0. */ extensionName: string;
235
+ /** Filters the resulting set of configurations by extension 2.0 version. */ version?: string;
236
+ abortSignal?: AbortSignal;
237
+ }): Promise<RegisteredExtensionResultDto>;
182
238
  /**
183
239
  * Gets the active environment configuration version of the specified extension 2.0
184
240
  *
@@ -630,7 +686,11 @@ export declare class Extensions_2_0Client {
630
686
  abortSignal?: AbortSignal;
631
687
  }): Promise<Extension>;
632
688
  /**
633
- * List all ActiveGate groups available for extension | maturity=IN_DEVELOPMENT
689
+ * List all activeGate groups available for extension
690
+ *
691
+ * **Required scope:** environment-api:extension-configurations:write<br/>**One of the following permissions is required:**
692
+ * + environment:roles:manage-settings
693
+ * + extensions:configurations:write
634
694
  *
635
695
  * @returns Success
636
696
  *
@@ -25,4 +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-multi-protocol-monitors-api';
28
29
  export * from './synthetic-on-demand-monitor-executions-api';
@@ -25,6 +25,8 @@ 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
29
+ *
28
30
  * @returns Success
29
31
  *
30
32
  * @example <caption>Code example</caption>
@@ -225,7 +227,7 @@ export declare class LogsClient {
225
227
  * import { logsClient } from "@dynatrace-sdk/client-classic-environment-v2";
226
228
  *
227
229
  * const data = await logsClient.storeLog({
228
- * type: "application/json; charset=utf-8",
230
+ * type: "application/json",
229
231
  * body: [
230
232
  * {
231
233
  * content:
@@ -255,7 +257,7 @@ export declare class LogsClient {
255
257
  */
256
258
  storeLog(config: ({
257
259
  body: LogMessageJson;
258
- type: 'application/json; charset=utf-8';
260
+ type: 'application/json' | 'application/json; charset=utf-8';
259
261
  } | {
260
262
  body: LogMessagePlain;
261
263
  type: 'text/plain; charset=utf-8';
@@ -273,6 +275,8 @@ export declare class LogsClient {
273
275
  *
274
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.
275
277
  *
278
+ * Please note that *Dynatrace API explorer* does not currently support OAuth authentication
279
+ *
276
280
  * @returns Success
277
281
  *
278
282
  * @example <caption>Code example</caption>
@@ -130,6 +130,8 @@ export declare class MonitoredEntitiesClient {
130
130
  * To add properties, list them with leading plus `+`. You can specify several properties, separated by a comma (for example `fields=+lastSeenTms,+properties.BITNESS`).
131
131
  *
132
132
  * Use the [GET entity type](https://dt-url.net/2ka3ivt) request to fetch the list of properties available for your entity type. Fields from the **properties** object must be specified in the `properties.FIELD` format (for example, `properties.BITNESS`).
133
+ *
134
+ * When requesting large amounts of relationship fields, throttling can apply.
133
135
  */ fields?: string;
134
136
  /**
135
137
  * Defines the ordering of the entities returned.
@@ -216,6 +218,8 @@ export declare class MonitoredEntitiesClient {
216
218
  * To add properties, list them with leading plus `+`. You can specify several properties, separated by a comma (for example `fields=+lastSeenTms,+properties.BITNESS`).
217
219
  *
218
220
  * Use the [GET entity type](https://dt-url.net/2ka3ivt) request to fetch the list of properties available for your entity type. Fields from the **properties** object must be specified in the `properties.FIELD` format (for example, `properties.BITNESS`).
221
+ *
222
+ * When requesting large amounts of relationship fields, throttling can apply.
219
223
  */ fields?: string;
220
224
  abortSignal?: AbortSignal;
221
225
  }): Promise<Entity>;
@@ -405,6 +405,7 @@ export declare class SecurityProblemsClient {
405
405
  * * Reachable data asset assessment: `assessment.dataAssets("value")` Possible values are `REACHABLE`, and `NOT_DETECTED`.
406
406
  * * Network exposure assessment: `assessment.exposure("value")` Possible values are `PUBLIC_NETWORK`, and `NOT_DETECTED`.
407
407
  * * Vulnerable function usage assessment: `assessment.vulnerableFunctionUsage("value")` Possible values are `IN_USE`, and `NOT_IN_USE`.
408
+ * * Vulnerable function restart required: `assessment.vulnerableFunctionRestartRequired("value")` Possible values are `TRUE` or `FALSE`.
408
409
  * * Vulnerable function in use contains: `assessment.vulnerableFunctionInUseContains("value")`. Possible values are `class::function`, `class::` and `function`. The `CONTAINS` operator is used. Only vulnerable functions in use are considered.
409
410
  * * Assessment accuracy: `assessment.accuracy("value")` Possible values are `FULL` and `REDUCED`.
410
411
  * * Entity name contains: `entityNameContains("value-1")`. The `CONTAINS` operator is used.
@@ -549,6 +550,7 @@ export declare class SecurityProblemsClient {
549
550
  *
550
551
  * * State: `state("value")`. Possible values the **state** field are `AFFECTED` and `UNAFFECTED`. If not set, all entities are returned.
551
552
  * * Vulnerable function usage assessment: `assessment.vulnerableFunctionUsage("value")` Possible values are `IN_USE`, and `NOT_IN_USE`.
553
+ * * Vulnerable function restart required: `assessment.vulnerableFunctionRestartRequired("value")` Possible values are `TRUE` or `FALSE`.
552
554
  * * Vulnerable function in use contains: `assessment.vulnerableFunctionInUseContains("value")`. Possible values are `class::function`, `class::` and `function`. The `CONTAINS` operator is used. Only vulnerable functions in use are considered.
553
555
  * * Entity name contains: `entityNameContains("value-1")`. The `CONTAINS` operator is used.
554
556
  *
@@ -0,0 +1,112 @@
1
+ import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
+ import { MonitorEntityIdDto } from '../models/monitor-entity-id-dto';
3
+ import { SyntheticMonitorListDto } from '../models/synthetic-monitor-list-dto';
4
+ import { SyntheticMultiProtocolMonitorDto } from '../models/synthetic-multi-protocol-monitor-dto';
5
+ import { SyntheticMultiProtocolMonitorUpdateDto } from '../models/synthetic-multi-protocol-monitor-update-dto';
6
+ /**
7
+ * Create, read, update and delete synthetic monitors. Currently multi-protocol monitors only.
8
+ */
9
+ export declare class SyntheticMultiProtocolMonitorsClient {
10
+ private httpClient;
11
+ /**
12
+ * @param {HttpClient} httpClientImplementation - You can provide custom http client as a parameter to constructor of a SyntheticMultiProtocolMonitorsClient. Custom http client should implement {HttpClient} interface.
13
+ * @example
14
+ * const syntheticMultiProtocolMonitorsClientNodeJs = new SyntheticMultiProtocolMonitorsClient(yourCustomImplementation);
15
+ */
16
+ constructor(httpClientImplementation: HttpClient);
17
+ /**
18
+ * Gets all synthetic monitors. Currently multi-protocol monitors only. | maturity=EARLY_ADOPTER
19
+ *
20
+ * **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:viewer
21
+ *
22
+ * @returns Success
23
+ *
24
+ * @example <caption>Code example</caption>
25
+ * import { syntheticMultiProtocolMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
26
+ *
27
+ * const data =
28
+ * await syntheticMultiProtocolMonitorsClient.getMonitors();
29
+ */
30
+ getMonitors(config?: {
31
+ /**
32
+ * Filters the resulting set of monitors to those which are part of the specified management zone.
33
+ *
34
+ * Specify the ID of the management zone here.
35
+ */ managementZone?: number;
36
+ abortSignal?: AbortSignal;
37
+ }): Promise<SyntheticMonitorListDto>;
38
+ /**
39
+ * Creates a synthetic monitor definition. Currently multi-protocol monitors only. | maturity=EARLY_ADOPTER
40
+ *
41
+ * **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:viewer
42
+ *
43
+ * @returns Success
44
+ *
45
+ * @example <caption>Code example</caption>
46
+ * import { syntheticMultiProtocolMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
47
+ *
48
+ * const data =
49
+ * await syntheticMultiProtocolMonitorsClient.createMonitor(
50
+ * {},
51
+ * );
52
+ */
53
+ createMonitor(config: {
54
+ body: SyntheticMultiProtocolMonitorUpdateDto;
55
+ abortSignal?: AbortSignal;
56
+ }): Promise<MonitorEntityIdDto>;
57
+ /**
58
+ * Gets a synthetic monitor definition for the given monitor ID. Currently multi-protocol monitors only. | maturity=EARLY_ADOPTER
59
+ *
60
+ * **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:viewer
61
+ *
62
+ * @returns Success
63
+ *
64
+ * @example <caption>Code example</caption>
65
+ * import { syntheticMultiProtocolMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
66
+ *
67
+ * const data =
68
+ * await syntheticMultiProtocolMonitorsClient.getMonitor({
69
+ * monitorId: "...",
70
+ * });
71
+ */
72
+ getMonitor(config: {
73
+ /** The identifier of the monitor. */ monitorId: string;
74
+ abortSignal?: AbortSignal;
75
+ }): Promise<SyntheticMultiProtocolMonitorDto>;
76
+ /**
77
+ * Updates a synthetic monitor definition for the given monitor ID. Currently multi-protocol monitors only. | maturity=EARLY_ADOPTER
78
+ *
79
+ * **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:viewer
80
+ *
81
+ * @example <caption>Code example</caption>
82
+ * import { syntheticMultiProtocolMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
83
+ *
84
+ * const data =
85
+ * await syntheticMultiProtocolMonitorsClient.updateMonitor({
86
+ * monitorId: "...",
87
+ * });
88
+ */
89
+ updateMonitor(config: {
90
+ body: SyntheticMultiProtocolMonitorUpdateDto;
91
+ /** The identifier of the monitor. */ monitorId: string;
92
+ abortSignal?: AbortSignal;
93
+ }): Promise<void>;
94
+ /**
95
+ * Deletes a synthetic monitor definition for the given monitor ID. Currently multi-protocol monitors only. | maturity=EARLY_ADOPTER
96
+ *
97
+ * **Required scope:** environment-api:synthetic-monitors:write<br/>**Required permission:** environment:roles:viewer
98
+ *
99
+ * @example <caption>Code example</caption>
100
+ * import { syntheticMultiProtocolMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
101
+ *
102
+ * const data =
103
+ * await syntheticMultiProtocolMonitorsClient.deleteMonitor({
104
+ * monitorId: "...",
105
+ * });
106
+ */
107
+ deleteMonitor(config: {
108
+ /** The identifier of the monitor. */ monitorId: string;
109
+ abortSignal?: AbortSignal;
110
+ }): Promise<void>;
111
+ }
112
+ export declare const syntheticMultiProtocolMonitorsClient: SyntheticMultiProtocolMonitorsClient;
@@ -3,7 +3,8 @@ import { ErrorType } from '@dynatrace-sdk/error-handlers';
3
3
  * Error base. All client errors should extend this class.
4
4
  */
5
5
  export declare class ApiClientError extends Error {
6
+ readonly cause?: any;
6
7
  errorType: ErrorType;
7
- constructor(name: string, message?: string);
8
+ constructor(name: string, message?: string, cause?: any);
8
9
  }
9
10
  export declare function isApiClientError(e: any): e is ApiClientError;
@@ -3,6 +3,6 @@ import { ApiClientError } from './api-client-error';
3
3
  export declare class ClientRequestError<DTO> extends ApiClientError {
4
4
  body: DTO;
5
5
  response: HttpClientResponse;
6
- constructor(name: string, response: HttpClientResponse, body: DTO, message?: string);
6
+ constructor(name: string, response: HttpClientResponse, body: DTO, message?: string, cause?: any);
7
7
  }
8
8
  export declare function isClientRequestError<DTO>(e: any): e is ClientRequestError<DTO>;
@@ -6,13 +6,13 @@ export interface ActiveGateGroupInfoDto {
6
6
  /**
7
7
  * ActiveGates in group.
8
8
  */
9
- activeGates?: ActiveGateInfoDto[];
9
+ activeGates: ActiveGateInfoDto[];
10
10
  /**
11
- * Number of ActiveGates in group available for Extension.
11
+ * Number of ActiveGates in group available for extension.
12
12
  */
13
- availableActiveGates?: number;
13
+ availableActiveGates: number;
14
14
  /**
15
15
  * ActiveGate group name.
16
16
  */
17
- groupName?: string;
17
+ groupName: string;
18
18
  }
@@ -1,9 +1,9 @@
1
1
  import { ActiveGateGroupInfoDto } from './active-gate-group-info-dto';
2
2
  import * as _ActiveGateInfoDtoTransformation from './active-gate-info-dto.transformation';
3
3
  export interface AsJson {
4
- activeGates?: _ActiveGateInfoDtoTransformation.AsJson[];
5
- availableActiveGates?: number;
6
- groupName?: string;
4
+ activeGates: _ActiveGateInfoDtoTransformation.AsJson[];
5
+ availableActiveGates: number;
6
+ groupName: string;
7
7
  }
8
8
  export declare function fromJson($model: AsJson): ActiveGateGroupInfoDto;
9
9
  export declare function toJson($model: ActiveGateGroupInfoDto): AsJson;
@@ -5,9 +5,9 @@ export interface ActiveGateInfoDto {
5
5
  /**
6
6
  * List of errors if Extension cannot be run on the ActiveGate
7
7
  */
8
- errors?: string[];
8
+ errors: string[];
9
9
  /**
10
10
  * ActiveGate ID.
11
11
  */
12
- id?: number;
12
+ id: number;
13
13
  }
@@ -1,7 +1,7 @@
1
1
  import { ActiveGateInfoDto } from './active-gate-info-dto';
2
2
  export interface AsJson {
3
- errors?: string[];
4
- id?: number;
3
+ errors: string[];
4
+ id: number;
5
5
  }
6
6
  export declare function fromJson($model: AsJson): ActiveGateInfoDto;
7
7
  export declare function toJson($model: ActiveGateInfoDto): AsJson;
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export declare enum ActiveGateOsArchitecture {
5
5
  S390 = "S390",
6
- X86 = "X86"
6
+ X86 = "X86",
7
+ Arm = "ARM"
7
8
  }
@@ -71,9 +71,11 @@ export declare enum ApiTokenCreateScopesItem {
71
71
  OneAgentsRead = "oneAgents.read",
72
72
  OneAgentsWrite = "oneAgents.write",
73
73
  TracesLookup = "traces.lookup",
74
+ UnifiedAnalysisRead = "unifiedAnalysis.read",
74
75
  HubRead = "hub.read",
75
76
  HubWrite = "hub.write",
76
77
  HubInstall = "hub.install",
77
78
  JavaScriptMappingFilesRead = "javaScriptMappingFiles.read",
78
- JavaScriptMappingFilesWrite = "javaScriptMappingFiles.write"
79
+ JavaScriptMappingFilesWrite = "javaScriptMappingFiles.write",
80
+ ExtensionConfigurationActionsWrite = "extensionConfigurationActions.write"
79
81
  }
@@ -107,11 +107,13 @@ export interface ApiTokenCreate {
107
107
  * * `oneAgents.read`: Read OneAgents.
108
108
  * * `oneAgents.write`: Write OneAgents.
109
109
  * * `traces.lookup`: Look up a single trace.
110
+ * * `unifiedAnalysis.read`: Read Unified Analysis page.
110
111
  * * `hub.read`: Read Hub related data.
111
112
  * * `hub.write`: Manage metadata of Hub items.
112
113
  * * `hub.install`: Install and update Hub items.
113
114
  * * `javaScriptMappingFiles.read`: Read JavaScript mapping files.
114
115
  * * `javaScriptMappingFiles.write`: Write JavaScript mapping files.
116
+ * * `extensionConfigurationActions.write`: Actions for extension monitoring configurations.
115
117
  */
116
118
  scopes: ApiTokenCreateScopesItem[];
117
119
  }
@@ -45,6 +45,7 @@ export declare enum ApiTokenScopesItem {
45
45
  EntitiesWrite = "entities.write",
46
46
  EventsIngest = "events.ingest",
47
47
  EventsRead = "events.read",
48
+ ExtensionConfigurationActionsWrite = "extensionConfigurationActions.write",
48
49
  ExtensionConfigurationsRead = "extensionConfigurations.read",
49
50
  ExtensionConfigurationsWrite = "extensionConfigurations.write",
50
51
  ExtensionEnvironmentRead = "extensionEnvironment.read",
@@ -81,5 +82,6 @@ export declare enum ApiTokenScopesItem {
81
82
  SyntheticLocationsRead = "syntheticLocations.read",
82
83
  SyntheticLocationsWrite = "syntheticLocations.write",
83
84
  TenantTokenRotationWrite = "tenantTokenRotation.write",
84
- TracesLookup = "traces.lookup"
85
+ TracesLookup = "traces.lookup",
86
+ UnifiedAnalysisRead = "unifiedAnalysis.read"
85
87
  }
@@ -71,9 +71,11 @@ export declare enum ApiTokenUpdateScopesItem {
71
71
  OneAgentsRead = "oneAgents.read",
72
72
  OneAgentsWrite = "oneAgents.write",
73
73
  TracesLookup = "traces.lookup",
74
+ UnifiedAnalysisRead = "unifiedAnalysis.read",
74
75
  HubRead = "hub.read",
75
76
  HubWrite = "hub.write",
76
77
  HubInstall = "hub.install",
77
78
  JavaScriptMappingFilesRead = "javaScriptMappingFiles.read",
78
- JavaScriptMappingFilesWrite = "javaScriptMappingFiles.write"
79
+ JavaScriptMappingFilesWrite = "javaScriptMappingFiles.write",
80
+ ExtensionConfigurationActionsWrite = "extensionConfigurationActions.write"
79
81
  }
@@ -88,11 +88,13 @@ export interface ApiTokenUpdate {
88
88
  * * `oneAgents.read`: Read OneAgents.
89
89
  * * `oneAgents.write`: Write OneAgents.
90
90
  * * `traces.lookup`: Look up a single trace.
91
+ * * `unifiedAnalysis.read`: Read Unified Analysis page.
91
92
  * * `hub.read`: Read Hub related data.
92
93
  * * `hub.write`: Manage metadata of Hub items.
93
94
  * * `hub.install`: Install and update Hub items.
94
95
  * * `javaScriptMappingFiles.read`: Read JavaScript mapping files.
95
96
  * * `javaScriptMappingFiles.write`: Write JavaScript mapping files.
97
+ * * `extensionConfigurationActions.write`: Actions for extension monitoring configurations.
96
98
  */
97
99
  scopes?: ApiTokenUpdateScopesItem[];
98
100
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export declare enum AssetInfoDtoType {
5
5
  Alert = "ALERT",
6
+ CustomCards = "CUSTOM_CARDS",
6
7
  Dashboard = "DASHBOARD",
7
8
  DeclarativeProcesses = "DECLARATIVE_PROCESSES",
8
9
  GenericRelationship = "GENERIC_RELATIONSHIP",
@@ -11,11 +12,13 @@ export declare enum AssetInfoDtoType {
11
12
  ListScreenInjections = "LIST_SCREEN_INJECTIONS",
12
13
  ListScreenLayout = "LIST_SCREEN_LAYOUT",
13
14
  LogEvent = "LOG_EVENT",
15
+ LogMetric = "LOG_METRIC",
14
16
  LogProcessingRule = "LOG_PROCESSING_RULE",
15
17
  MetricMetadata = "METRIC_METADATA",
16
18
  MetricQuery = "METRIC_QUERY",
17
19
  ScreenActions = "SCREEN_ACTIONS",
18
20
  ScreenChartGroups = "SCREEN_CHART_GROUPS",
21
+ ScreenDqlTable = "SCREEN_DQL_TABLE",
19
22
  ScreenEntitiesLists = "SCREEN_ENTITIES_LISTS",
20
23
  ScreenEventsCards = "SCREEN_EVENTS_CARDS",
21
24
  ScreenFilters = "SCREEN_FILTERS",
@@ -28,7 +28,7 @@ export interface Credentials {
28
28
  * The credentials set is available to every user (`false`) or to owner only (`true`).
29
29
  */
30
30
  ownerAccessOnly?: boolean;
31
- scope: CredentialsScope;
31
+ scope?: CredentialsScope;
32
32
  /**
33
33
  * The set of scopes of the credentials set.
34
34
  */
@@ -17,7 +17,7 @@ export interface AsJson {
17
17
  id?: string;
18
18
  name: string;
19
19
  ownerAccessOnly?: boolean;
20
- scope: _CredentialsScopeTransformation.AsJson;
20
+ scope?: _CredentialsScopeTransformation.AsJson;
21
21
  scopes: _CredentialsScopesItemTransformation.AsJson[];
22
22
  type?: _CredentialsTypeTransformation.AsJson;
23
23
  }
@@ -22,6 +22,8 @@ export interface CustomDeviceCreation {
22
22
  *
23
23
  * These names are used to automatically discover the horizontal communication relationship between this component and all other observed components within Smartscape. Once a connection is discovered, it is automatically mapped and shown within Smartscape.
24
24
  *
25
+ * Non-public DNS addresses can also be mapped internally. This is applicable only if the domain name consists of at least two parts, for example `hostname.xyz`.
26
+ *
25
27
  * If you send a value, the existing values will be overwritten.
26
28
  *
27
29
  * If you send `null` or an empty value; or omit this field, the existing values will be kept.
@@ -25,7 +25,9 @@ export interface EventIngest {
25
25
  *
26
26
  * If not set, the current timestamp is used.
27
27
  *
28
- * Depending on the event type, the start time must not lie in the future more than 5 minutes for trigger events and 7 days for info events.
28
+ * Depending on the event type, the start time must not lie in the past more than 6 hours for problem-opening events and 30 days for info events.
29
+ *
30
+ * Depending on the event type, the start time must not lie in the future more than 5 minutes for problem-opening events and 7 days for info events.
29
31
  */
30
32
  startTime?: number;
31
33
  /**
@@ -0,0 +1,21 @@
1
+ import { ExtensionInfo } from './extension-info';
2
+ export interface ExtensionInfoList {
3
+ /**
4
+ * A list of extensions with additional metadata.
5
+ */
6
+ extensions: ExtensionInfo[];
7
+ /**
8
+ * The cursor for the next page of results. Has the value of `null` on the last page.
9
+ *
10
+ * Use it in the **nextPageKey** query parameter to obtain subsequent pages of the result.
11
+ */
12
+ nextPageKey?: string;
13
+ /**
14
+ * The number of entries per page.
15
+ */
16
+ pageSize?: number;
17
+ /**
18
+ * The total number of entries in the result.
19
+ */
20
+ totalCount: number;
21
+ }
@@ -0,0 +1,10 @@
1
+ import { ExtensionInfoList } from './extension-info-list';
2
+ import * as _ExtensionInfoTransformation from './extension-info.transformation';
3
+ export interface AsJson {
4
+ extensions: _ExtensionInfoTransformation.AsJson[];
5
+ nextPageKey?: string;
6
+ pageSize?: number;
7
+ totalCount: number;
8
+ }
9
+ export declare function fromJson($model: AsJson): ExtensionInfoList;
10
+ export declare function toJson($model: ExtensionInfoList): AsJson;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A list of extensions with additional metadata.
3
+ */
4
+ export interface ExtensionInfo {
5
+ /**
6
+ * Extension name
7
+ */
8
+ extensionName: string;
9
+ /**
10
+ * Extension keywords
11
+ */
12
+ keywords: string[];
13
+ /**
14
+ * Extension version
15
+ */
16
+ version: string;
17
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionInfo } from './extension-info';
2
+ export interface AsJson {
3
+ extensionName: string;
4
+ keywords: string[];
5
+ version: string;
6
+ }
7
+ export declare function fromJson($model: AsJson): ExtensionInfo;
8
+ export declare function toJson($model: ExtensionInfo): AsJson;
@@ -1,4 +1,5 @@
1
1
  export declare enum GetAllActiveGatesQueryOsArchitecture {
2
2
  X86 = "X86",
3
- S390 = "S390"
3
+ S390 = "S390",
4
+ Arm = "ARM"
4
5
  }