@dynatrace-sdk/client-classic-environment-v2 3.7.3 → 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.
Files changed (47) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1012 -719
  3. package/cjs/index.js +574 -22
  4. package/dynatrace-metadata.json +2 -2
  5. package/esm/index.js +574 -22
  6. package/package.json +1 -1
  7. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-api.d.ts +2 -1
  8. package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +10 -2
  9. package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +145 -1
  10. package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +1 -1
  11. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +4 -0
  12. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +1 -1
  13. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +1 -2
  14. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +6 -6
  15. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate-os-architecture.d.ts +2 -1
  16. package/types/packages/client/classic-environment-v2/src/lib/models/active-gate.d.ts +5 -1
  17. package/types/packages/client/classic-environment-v2/src/lib/models/alert-template-dto.d.ts +3 -0
  18. package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto-type.d.ts +2 -0
  19. package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto.d.ts +1 -1
  20. package/types/packages/client/classic-environment-v2/src/lib/models/certificate-credentials.d.ts +3 -3
  21. package/types/packages/client/classic-environment-v2/src/lib/models/credentials.d.ts +1 -1
  22. package/types/packages/client/classic-environment-v2/src/lib/models/deletion-constraint-type.d.ts +10 -0
  23. package/types/packages/client/classic-environment-v2/src/lib/models/deletion-constraint.d.ts +5 -0
  24. package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-dto-status.d.ts +3 -1
  25. package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-dto.d.ts +2 -2
  26. package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-with-id-dto-status.d.ts +12 -0
  27. package/types/packages/client/classic-environment-v2/src/lib/models/extension-status-with-id-dto.d.ts +14 -0
  28. package/types/packages/client/classic-environment-v2/src/lib/models/feature-set-details.d.ts +3 -3
  29. package/types/packages/client/classic-environment-v2/src/lib/models/get-all-active-gates-query-os-architecture.d.ts +2 -1
  30. package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +9 -4
  31. package/types/packages/client/classic-environment-v2/src/lib/models/location-collection-element.d.ts +6 -0
  32. package/types/packages/client/classic-environment-v2/src/lib/models/metric-descriptor-transformations-item.d.ts +1 -0
  33. package/types/packages/client/classic-environment-v2/src/lib/models/metric-descriptor.d.ts +1 -1
  34. package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-states-state.d.ts +1 -0
  35. package/types/packages/client/classic-environment-v2/src/lib/models/monitored-entity-states.d.ts +1 -1
  36. package/types/packages/client/classic-environment-v2/src/lib/models/private-synthetic-location.d.ts +4 -4
  37. package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto-type.d.ts +1 -0
  38. package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto.d.ts +5 -1
  39. package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub.d.ts +4 -0
  40. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-outage-handling-settings-dto.d.ts +1 -1
  41. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-type.d.ts +9 -0
  42. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto.d.ts +5 -1
  43. 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
  44. 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
  45. 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
  46. 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
  47. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-private-location-update.d.ts +21 -4
package/esm/index.js CHANGED
@@ -2761,7 +2761,8 @@ var ActiveGatesClient = class {
2761
2761
  disabledModule: config.disabledModule,
2762
2762
  containerized: config.containerized,
2763
2763
  tokenState: config.tokenState,
2764
- tokenExpirationSet: config.tokenExpirationSet
2764
+ tokenExpirationSet: config.tokenExpirationSet,
2765
+ fipsMode: config.fipsMode
2765
2766
  });
2766
2767
  try {
2767
2768
  const response = await this.httpClient.send({
@@ -6211,7 +6212,11 @@ var CredentialVaultClient = class {
6211
6212
  * import { credentialVaultClient } from "@dynatrace-sdk/client-classic-environment-v2";
6212
6213
  *
6213
6214
  * const data = await credentialVaultClient.createCredentials({
6214
- * body: { name: "...", scopes: ["APP_ENGINE"] },
6215
+ * body: {
6216
+ * name: "...",
6217
+ * scopes: ["APP_ENGINE"],
6218
+ * type: "AWS_MONITORING_KEY_BASED",
6219
+ * },
6215
6220
  * });
6216
6221
  *
6217
6222
  * @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
@@ -6539,7 +6544,11 @@ var CredentialVaultClient = class {
6539
6544
  *
6540
6545
  * const data = await credentialVaultClient.updateCredentials({
6541
6546
  * id: "...",
6542
- * body: { name: "...", scopes: ["APP_ENGINE"] },
6547
+ * body: {
6548
+ * name: "...",
6549
+ * scopes: ["APP_ENGINE"],
6550
+ * type: "AWS_MONITORING_KEY_BASED",
6551
+ * },
6543
6552
  * });
6544
6553
  *
6545
6554
  * @throws {ErrorEnvelopeError} Failed. The input is invalid. | Client side error. | Server side error.
@@ -10327,6 +10336,169 @@ var Extensions_2_0Client = class {
10327
10336
  }
10328
10337
  }
10329
10338
  }
10339
+ /**
10340
+ * Gets an alert template asset for given ID
10341
+ *
10342
+ * **Required scope:** environment-api:extensions:read<br/>**One of the following permissions is required:**
10343
+ * + environment:roles:manage-settings
10344
+ * + extensions:definitions:read
10345
+ *
10346
+ * @returns {Promise<AlertTemplateDto>} Success
10347
+ *
10348
+ * @example <caption>Code example</caption>
10349
+ * import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
10350
+ *
10351
+ * const data = await extensions_2_0Client.getAlertTemplate({
10352
+ * extensionName: "...",
10353
+ * assetId: "...",
10354
+ * });
10355
+ *
10356
+ * @throws {ErrorEnvelopeError} Failed. The requested resource doesn't exist. | Client side error. | Server side error.
10357
+ * @throws {InvalidResponseError}
10358
+ * @throws {ApiClientError}
10359
+ * @throws {ClientRequestError}
10360
+ */
10361
+ async getAlertTemplate(config) {
10362
+ try {
10363
+ const response = await this.httpClient.send({
10364
+ url: `/platform/classic/environment-api/v2/extensions/${config.extensionName}/environmentConfiguration/assets/alertTemplates/${config.assetId}`,
10365
+ method: "GET",
10366
+ headers: {
10367
+ Accept: "application/json; charset=utf-8, application/json"
10368
+ },
10369
+ abortSignal: config instanceof EventTarget ? config : config.abortSignal,
10370
+ statusValidator: (status) => {
10371
+ return [200].includes(status);
10372
+ }
10373
+ });
10374
+ const responseValue = await response.body("json");
10375
+ try {
10376
+ return this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
10377
+ } catch (err) {
10378
+ throw new InvalidResponseError15(
10379
+ `Extensions_2_0Client.getAlertTemplate:200`,
10380
+ err,
10381
+ responseValue,
10382
+ void 0,
10383
+ void 0,
10384
+ response
10385
+ );
10386
+ }
10387
+ } catch (e) {
10388
+ if (isHttpClientAbortError15(e) || isInvalidResponseError14(e)) {
10389
+ throw e;
10390
+ }
10391
+ if (!isHttpClientResponseError15(e)) {
10392
+ throw new ApiClientError15("UnexpectedError", "Unexpected error", e);
10393
+ }
10394
+ const response = e.response;
10395
+ await apiGatewayErrorsHandler15(response);
10396
+ switch (response.status) {
10397
+ case 404: {
10398
+ const responseValue = await response.body("json");
10399
+ try {
10400
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
10401
+ throw new ErrorEnvelopeError(
10402
+ `404`,
10403
+ response,
10404
+ errorBody,
10405
+ getErrorMessage15(errorBody, "Failed. The requested resource doesn't exist."),
10406
+ e
10407
+ );
10408
+ } catch (err) {
10409
+ if (err instanceof ErrorEnvelopeError) {
10410
+ throw err;
10411
+ }
10412
+ throw new InvalidResponseError15(
10413
+ `Extensions_2_0Client.getAlertTemplate:404`,
10414
+ err,
10415
+ responseValue,
10416
+ "ErrorEnvelope",
10417
+ void 0,
10418
+ response
10419
+ );
10420
+ }
10421
+ }
10422
+ default: {
10423
+ if (response.status >= 400 && response.status <= 499) {
10424
+ const responseValue = await response.body("json");
10425
+ try {
10426
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
10427
+ throw new ErrorEnvelopeError(
10428
+ `${response.status}`,
10429
+ response,
10430
+ errorBody,
10431
+ getErrorMessage15(errorBody, "Client side error."),
10432
+ e
10433
+ );
10434
+ } catch (err) {
10435
+ if (err instanceof ErrorEnvelopeError) {
10436
+ throw err;
10437
+ }
10438
+ throw new InvalidResponseError15(
10439
+ `Extensions_2_0Client.getAlertTemplate:${response.status}`,
10440
+ err,
10441
+ responseValue,
10442
+ "ErrorEnvelope",
10443
+ void 0,
10444
+ response
10445
+ );
10446
+ }
10447
+ } else if (response.status >= 500 && response.status <= 599) {
10448
+ const responseValue = await response.body("json");
10449
+ try {
10450
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
10451
+ throw new ErrorEnvelopeError(
10452
+ `${response.status}`,
10453
+ response,
10454
+ errorBody,
10455
+ getErrorMessage15(errorBody, "Server side error."),
10456
+ e
10457
+ );
10458
+ } catch (err) {
10459
+ if (err instanceof ErrorEnvelopeError) {
10460
+ throw err;
10461
+ }
10462
+ throw new InvalidResponseError15(
10463
+ `Extensions_2_0Client.getAlertTemplate:${response.status}`,
10464
+ err,
10465
+ responseValue,
10466
+ "ErrorEnvelope",
10467
+ void 0,
10468
+ response
10469
+ );
10470
+ }
10471
+ } else {
10472
+ try {
10473
+ const responseValue = await response.body("json");
10474
+ throw new ClientRequestError17(
10475
+ `${response.status}`,
10476
+ response,
10477
+ responseValue,
10478
+ getErrorMessage15(
10479
+ responseValue,
10480
+ `Unexpected api response: code=${response.status} body="${responseValue}"`
10481
+ )
10482
+ );
10483
+ } catch (error) {
10484
+ if (error instanceof ClientRequestError17) {
10485
+ throw error;
10486
+ }
10487
+ const responseValue = await response.body("text").catch(() => "");
10488
+ throw new InvalidResponseError15(
10489
+ `${response.status}`,
10490
+ error,
10491
+ responseValue,
10492
+ "json",
10493
+ "Unexpected api response",
10494
+ response
10495
+ );
10496
+ }
10497
+ }
10498
+ }
10499
+ }
10500
+ }
10501
+ }
10330
10502
  /**
10331
10503
  * List of the latest extension environment configuration events
10332
10504
  *
@@ -10889,6 +11061,168 @@ var Extensions_2_0Client = class {
10889
11061
  }
10890
11062
  }
10891
11063
  }
11064
+ /**
11065
+ * Gets the most recent status of the execution of monitoring configurations of given extension
11066
+ *
11067
+ * **Required scope:** environment-api:extension-configurations:read<br/>**One of the following permissions is required:**
11068
+ * + environment:roles:manage-settings
11069
+ * + extensions:configurations:read
11070
+ *
11071
+ * @returns {Promise<ExtensionStatusWithIdDto[]>} Success
11072
+ *
11073
+ * @example <caption>Code example</caption>
11074
+ * import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
11075
+ *
11076
+ * const data = await extensions_2_0Client.getExtensionStatus({
11077
+ * extensionName: "...",
11078
+ * });
11079
+ *
11080
+ * @throws {ErrorEnvelopeError} Failed. The requested resource doesn't exist. | Client side error. | Server side error.
11081
+ * @throws {InvalidResponseError}
11082
+ * @throws {ApiClientError}
11083
+ * @throws {ClientRequestError}
11084
+ */
11085
+ async getExtensionStatus(config) {
11086
+ try {
11087
+ const response = await this.httpClient.send({
11088
+ url: `/platform/classic/environment-api/v2/extensions/${config.extensionName}/monitoringConfigurations/status`,
11089
+ method: "GET",
11090
+ headers: {
11091
+ Accept: "application/json; charset=utf-8, application/json"
11092
+ },
11093
+ abortSignal: config instanceof EventTarget ? config : config.abortSignal,
11094
+ statusValidator: (status) => {
11095
+ return [200].includes(status);
11096
+ }
11097
+ });
11098
+ const responseValue = await response.body("json");
11099
+ try {
11100
+ return this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
11101
+ } catch (err) {
11102
+ throw new InvalidResponseError15(
11103
+ `Extensions_2_0Client.getExtensionStatus:200`,
11104
+ err,
11105
+ responseValue,
11106
+ void 0,
11107
+ void 0,
11108
+ response
11109
+ );
11110
+ }
11111
+ } catch (e) {
11112
+ if (isHttpClientAbortError15(e) || isInvalidResponseError14(e)) {
11113
+ throw e;
11114
+ }
11115
+ if (!isHttpClientResponseError15(e)) {
11116
+ throw new ApiClientError15("UnexpectedError", "Unexpected error", e);
11117
+ }
11118
+ const response = e.response;
11119
+ await apiGatewayErrorsHandler15(response);
11120
+ switch (response.status) {
11121
+ case 404: {
11122
+ const responseValue = await response.body("json");
11123
+ try {
11124
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
11125
+ throw new ErrorEnvelopeError(
11126
+ `404`,
11127
+ response,
11128
+ errorBody,
11129
+ getErrorMessage15(errorBody, "Failed. The requested resource doesn't exist."),
11130
+ e
11131
+ );
11132
+ } catch (err) {
11133
+ if (err instanceof ErrorEnvelopeError) {
11134
+ throw err;
11135
+ }
11136
+ throw new InvalidResponseError15(
11137
+ `Extensions_2_0Client.getExtensionStatus:404`,
11138
+ err,
11139
+ responseValue,
11140
+ "ErrorEnvelope",
11141
+ void 0,
11142
+ response
11143
+ );
11144
+ }
11145
+ }
11146
+ default: {
11147
+ if (response.status >= 400 && response.status <= 499) {
11148
+ const responseValue = await response.body("json");
11149
+ try {
11150
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
11151
+ throw new ErrorEnvelopeError(
11152
+ `${response.status}`,
11153
+ response,
11154
+ errorBody,
11155
+ getErrorMessage15(errorBody, "Client side error."),
11156
+ e
11157
+ );
11158
+ } catch (err) {
11159
+ if (err instanceof ErrorEnvelopeError) {
11160
+ throw err;
11161
+ }
11162
+ throw new InvalidResponseError15(
11163
+ `Extensions_2_0Client.getExtensionStatus:${response.status}`,
11164
+ err,
11165
+ responseValue,
11166
+ "ErrorEnvelope",
11167
+ void 0,
11168
+ response
11169
+ );
11170
+ }
11171
+ } else if (response.status >= 500 && response.status <= 599) {
11172
+ const responseValue = await response.body("json");
11173
+ try {
11174
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
11175
+ throw new ErrorEnvelopeError(
11176
+ `${response.status}`,
11177
+ response,
11178
+ errorBody,
11179
+ getErrorMessage15(errorBody, "Server side error."),
11180
+ e
11181
+ );
11182
+ } catch (err) {
11183
+ if (err instanceof ErrorEnvelopeError) {
11184
+ throw err;
11185
+ }
11186
+ throw new InvalidResponseError15(
11187
+ `Extensions_2_0Client.getExtensionStatus:${response.status}`,
11188
+ err,
11189
+ responseValue,
11190
+ "ErrorEnvelope",
11191
+ void 0,
11192
+ response
11193
+ );
11194
+ }
11195
+ } else {
11196
+ try {
11197
+ const responseValue = await response.body("json");
11198
+ throw new ClientRequestError17(
11199
+ `${response.status}`,
11200
+ response,
11201
+ responseValue,
11202
+ getErrorMessage15(
11203
+ responseValue,
11204
+ `Unexpected api response: code=${response.status} body="${responseValue}"`
11205
+ )
11206
+ );
11207
+ } catch (error) {
11208
+ if (error instanceof ClientRequestError17) {
11209
+ throw error;
11210
+ }
11211
+ const responseValue = await response.body("text").catch(() => "");
11212
+ throw new InvalidResponseError15(
11213
+ `${response.status}`,
11214
+ error,
11215
+ responseValue,
11216
+ "json",
11217
+ "Unexpected api response",
11218
+ response
11219
+ );
11220
+ }
11221
+ }
11222
+ }
11223
+ }
11224
+ }
11225
+ }
10892
11226
  /**
10893
11227
  * Gets the details of the specified monitoring configuration
10894
11228
  *
@@ -11645,6 +11979,180 @@ var Extensions_2_0Client = class {
11645
11979
  }
11646
11980
  }
11647
11981
  }
11982
+ /**
11983
+ * Gets the audit logs of monitoring configuration of given extension
11984
+ *
11985
+ * **Required scope:** environment-api:extension-configurations:read<br/>**One of the following permissions is required:**
11986
+ * + environment:roles:manage-settings
11987
+ * + extensions:configurations:read
11988
+ *
11989
+ * @returns {Promise<AuditLog>} Success
11990
+ *
11991
+ * @example <caption>Code example</caption>
11992
+ * import { extensions_2_0Client } from "@dynatrace-sdk/client-classic-environment-v2";
11993
+ *
11994
+ * const data =
11995
+ * await extensions_2_0Client.monitoringConfigurationAudit({
11996
+ * extensionName: "...",
11997
+ * configurationId: "...",
11998
+ * });
11999
+ *
12000
+ * @throws {ErrorEnvelopeError} Failed. The requested resource doesn't exist. | Client side error. | Server side error.
12001
+ * @throws {InvalidResponseError}
12002
+ * @throws {ApiClientError}
12003
+ * @throws {ClientRequestError}
12004
+ */
12005
+ async monitoringConfigurationAudit(config) {
12006
+ if (!config) {
12007
+ throw new ApiClientError15("API client error", "API client call is missing mandatory config parameter");
12008
+ }
12009
+ const query = toQueryString10({
12010
+ nextPageKey: config.nextPageKey,
12011
+ pageSize: config.pageSize,
12012
+ from: config.from,
12013
+ to: config.to,
12014
+ sort: config.sort
12015
+ });
12016
+ try {
12017
+ const response = await this.httpClient.send({
12018
+ url: `/platform/classic/environment-api/v2/extensions/${config.extensionName}/monitoringConfigurations/${config.configurationId}/audit${query}`,
12019
+ method: "GET",
12020
+ headers: {
12021
+ Accept: "application/json; charset=utf-8, application/json"
12022
+ },
12023
+ abortSignal: config instanceof EventTarget ? config : config.abortSignal,
12024
+ statusValidator: (status) => {
12025
+ return [200].includes(status);
12026
+ }
12027
+ });
12028
+ const responseValue = await response.body("json");
12029
+ try {
12030
+ return this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
12031
+ } catch (err) {
12032
+ throw new InvalidResponseError15(
12033
+ `Extensions_2_0Client.monitoringConfigurationAudit:200`,
12034
+ err,
12035
+ responseValue,
12036
+ void 0,
12037
+ void 0,
12038
+ response
12039
+ );
12040
+ }
12041
+ } catch (e) {
12042
+ if (isHttpClientAbortError15(e) || isInvalidResponseError14(e)) {
12043
+ throw e;
12044
+ }
12045
+ if (!isHttpClientResponseError15(e)) {
12046
+ throw new ApiClientError15("UnexpectedError", "Unexpected error", e);
12047
+ }
12048
+ const response = e.response;
12049
+ await apiGatewayErrorsHandler15(response);
12050
+ switch (response.status) {
12051
+ case 404: {
12052
+ const responseValue = await response.body("json");
12053
+ try {
12054
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
12055
+ throw new ErrorEnvelopeError(
12056
+ `404`,
12057
+ response,
12058
+ errorBody,
12059
+ getErrorMessage15(errorBody, "Failed. The requested resource doesn't exist."),
12060
+ e
12061
+ );
12062
+ } catch (err) {
12063
+ if (err instanceof ErrorEnvelopeError) {
12064
+ throw err;
12065
+ }
12066
+ throw new InvalidResponseError15(
12067
+ `Extensions_2_0Client.monitoringConfigurationAudit:404`,
12068
+ err,
12069
+ responseValue,
12070
+ "ErrorEnvelope",
12071
+ void 0,
12072
+ response
12073
+ );
12074
+ }
12075
+ }
12076
+ default: {
12077
+ if (response.status >= 400 && response.status <= 499) {
12078
+ const responseValue = await response.body("json");
12079
+ try {
12080
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
12081
+ throw new ErrorEnvelopeError(
12082
+ `${response.status}`,
12083
+ response,
12084
+ errorBody,
12085
+ getErrorMessage15(errorBody, "Client side error."),
12086
+ e
12087
+ );
12088
+ } catch (err) {
12089
+ if (err instanceof ErrorEnvelopeError) {
12090
+ throw err;
12091
+ }
12092
+ throw new InvalidResponseError15(
12093
+ `Extensions_2_0Client.monitoringConfigurationAudit:${response.status}`,
12094
+ err,
12095
+ responseValue,
12096
+ "ErrorEnvelope",
12097
+ void 0,
12098
+ response
12099
+ );
12100
+ }
12101
+ } else if (response.status >= 500 && response.status <= 599) {
12102
+ const responseValue = await response.body("json");
12103
+ try {
12104
+ const errorBody = this.shouldTransformDates ? transformResponse15(responseValue, []) : responseValue;
12105
+ throw new ErrorEnvelopeError(
12106
+ `${response.status}`,
12107
+ response,
12108
+ errorBody,
12109
+ getErrorMessage15(errorBody, "Server side error."),
12110
+ e
12111
+ );
12112
+ } catch (err) {
12113
+ if (err instanceof ErrorEnvelopeError) {
12114
+ throw err;
12115
+ }
12116
+ throw new InvalidResponseError15(
12117
+ `Extensions_2_0Client.monitoringConfigurationAudit:${response.status}`,
12118
+ err,
12119
+ responseValue,
12120
+ "ErrorEnvelope",
12121
+ void 0,
12122
+ response
12123
+ );
12124
+ }
12125
+ } else {
12126
+ try {
12127
+ const responseValue = await response.body("json");
12128
+ throw new ClientRequestError17(
12129
+ `${response.status}`,
12130
+ response,
12131
+ responseValue,
12132
+ getErrorMessage15(
12133
+ responseValue,
12134
+ `Unexpected api response: code=${response.status} body="${responseValue}"`
12135
+ )
12136
+ );
12137
+ } catch (error) {
12138
+ if (error instanceof ClientRequestError17) {
12139
+ throw error;
12140
+ }
12141
+ const responseValue = await response.body("text").catch(() => "");
12142
+ throw new InvalidResponseError15(
12143
+ `${response.status}`,
12144
+ error,
12145
+ responseValue,
12146
+ "json",
12147
+ "Unexpected api response",
12148
+ response
12149
+ );
12150
+ }
12151
+ }
12152
+ }
12153
+ }
12154
+ }
12155
+ }
11648
12156
  /**
11649
12157
  * Gets the list of the events linked to specific monitoring configuration
11650
12158
  *
@@ -12451,7 +12959,11 @@ var Extensions_2_0Client = class {
12451
12959
  /**
12452
12960
  * Gets the configuration schema of the specified version of the extension 2.0
12453
12961
  *
12454
- * **Required scope:** environment-api:extension-configurations:read<br/>**One of the following permissions is required:**
12962
+ * **One of the following scopes is required:**
12963
+ * + environment-api:extensions:read
12964
+ * + environment-api:extension-configurations:read
12965
+ *
12966
+ * <br/>**One of the following permissions is required:**
12455
12967
  * + environment:roles:manage-settings
12456
12968
  * + extensions:definitions:read
12457
12969
  *
@@ -22832,6 +23344,8 @@ var SettingsObjectsClient = class {
22832
23344
  *
22833
23345
  * If no object along the hierarchy is persisted, the default value as defined in the schema will be returned.
22834
23346
  *
23347
+ * **Deprecation notice:** The ability to query values of any schema by leaving out the `schemaIds` parameter in the first-page query is deprecated and will eventually be removed.
23348
+ *
22835
23349
  * @returns {Promise<EffectiveSettingsValuesList>} Success
22836
23350
  *
22837
23351
  * @example <caption>Code example</caption>
@@ -23207,6 +23721,8 @@ var SettingsObjectsClient = class {
23207
23721
  *
23208
23722
  * If nothing is persisted or if all persisted settings objects are not accessible due to missing permissions, no items will be returned.
23209
23723
  *
23724
+ * **Deprecation notice:** The ability to query values of any schema by leaving out the `schemaIds` parameter in the first-page query is deprecated and will eventually be removed.
23725
+ *
23210
23726
  * To query the effective values (including schema defaults) please see [/settings/effectiveValues](#/Settings%20-%20Objects/getEffectiveSettingsValues).
23211
23727
  *
23212
23728
  * @returns {Promise<ObjectsList>} Success. Accessible objects returned.
@@ -26805,7 +27321,7 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
26805
27321
  /**
26806
27322
  * Lists all synthetic locations (both public and private) available for your environment
26807
27323
  *
26808
- * **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:manage-settings
27324
+ * **Required scope:** environment-api:synthetic:read<br/>**Required permission:** environment:roles:viewer
26809
27325
  *
26810
27326
  * @returns {Promise<SyntheticLocations>} Success
26811
27327
  *
@@ -27971,7 +28487,6 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
27971
28487
  throw new ApiClientError31("API client error", "API client call is missing mandatory config parameter");
27972
28488
  }
27973
28489
  const query = toQueryString25({
27974
- platform: config.platform,
27975
28490
  activeGateName: config.activeGateName,
27976
28491
  namespace: config.namespace,
27977
28492
  customRegistry: config.customRegistry,
@@ -28641,7 +29156,7 @@ var SyntheticNetworkAvailabilityMonitorsClient = class {
28641
29156
  *
28642
29157
  * **Required scope:** environment-api:synthetic-monitors:read<br/>**Required permission:** environment:roles:manage-settings
28643
29158
  *
28644
- * @returns {Promise<SyntheticMultiProtocolMonitorDto>} Success
29159
+ * @returns {Promise<SyntheticMultiProtocolMonitorResponse>} Success
28645
29160
  *
28646
29161
  * @example <caption>Code example</caption>
28647
29162
  * import { syntheticNetworkAvailabilityMonitorsClient } from "@dynatrace-sdk/client-classic-environment-v2";
@@ -30247,6 +30762,7 @@ var ActiveGateOsArchitecture = /* @__PURE__ */ ((ActiveGateOsArchitecture2) => {
30247
30762
  ActiveGateOsArchitecture2["S390"] = "S390";
30248
30763
  ActiveGateOsArchitecture2["X86"] = "X86";
30249
30764
  ActiveGateOsArchitecture2["Arm"] = "ARM";
30765
+ ActiveGateOsArchitecture2["Ppcle"] = "PPCLE";
30250
30766
  return ActiveGateOsArchitecture2;
30251
30767
  })(ActiveGateOsArchitecture || {});
30252
30768
 
@@ -30594,6 +31110,7 @@ var AssessmentAccuracyDetailsReducedReasonsItem = /* @__PURE__ */ ((AssessmentAc
30594
31110
  // packages/client/classic-environment-v2/src/lib/models/asset-info-dto-type.ts
30595
31111
  var AssetInfoDtoType = /* @__PURE__ */ ((AssetInfoDtoType2) => {
30596
31112
  AssetInfoDtoType2["Alert"] = "ALERT";
31113
+ AssetInfoDtoType2["AlertTemplate"] = "ALERT_TEMPLATE";
30597
31114
  AssetInfoDtoType2["AwsService"] = "AWS_SERVICE";
30598
31115
  AssetInfoDtoType2["CustomCards"] = "CUSTOM_CARDS";
30599
31116
  AssetInfoDtoType2["Dashboard"] = "DASHBOARD";
@@ -30613,6 +31130,7 @@ var AssetInfoDtoType = /* @__PURE__ */ ((AssetInfoDtoType2) => {
30613
31130
  AssetInfoDtoType2["LqlLogProcessingRule"] = "LQL_LOG_PROCESSING_RULE";
30614
31131
  AssetInfoDtoType2["MetricMetadata"] = "METRIC_METADATA";
30615
31132
  AssetInfoDtoType2["MetricQuery"] = "METRIC_QUERY";
31133
+ AssetInfoDtoType2["ProcessGroupingRules"] = "PROCESS_GROUPING_RULES";
30616
31134
  AssetInfoDtoType2["ScreenActions"] = "SCREEN_ACTIONS";
30617
31135
  AssetInfoDtoType2["ScreenChartGroups"] = "SCREEN_CHART_GROUPS";
30618
31136
  AssetInfoDtoType2["ScreenDqlTable"] = "SCREEN_DQL_TABLE";
@@ -30853,6 +31371,14 @@ var DavisSecurityAdviceTechnology = /* @__PURE__ */ ((DavisSecurityAdviceTechnol
30853
31371
  return DavisSecurityAdviceTechnology2;
30854
31372
  })(DavisSecurityAdviceTechnology || {});
30855
31373
 
31374
+ // packages/client/classic-environment-v2/src/lib/models/deletion-constraint-type.ts
31375
+ var DeletionConstraintType = /* @__PURE__ */ ((DeletionConstraintType2) => {
31376
+ DeletionConstraintType2["CustomValidatorRef"] = "CUSTOM_VALIDATOR_REF";
31377
+ DeletionConstraintType2["ReferentialIntegrity"] = "REFERENTIAL_INTEGRITY";
31378
+ DeletionConstraintType2["Unknown"] = "UNKNOWN";
31379
+ return DeletionConstraintType2;
31380
+ })(DeletionConstraintType || {});
31381
+
30856
31382
  // packages/client/classic-environment-v2/src/lib/models/effective-permission-granted.ts
30857
31383
  var EffectivePermissionGranted = /* @__PURE__ */ ((EffectivePermissionGranted2) => {
30858
31384
  EffectivePermissionGranted2["Condition"] = "condition";
@@ -30976,10 +31502,22 @@ var ExtensionEventDtoStatus = /* @__PURE__ */ ((ExtensionEventDtoStatus2) => {
30976
31502
  var ExtensionStatusDtoStatus = /* @__PURE__ */ ((ExtensionStatusDtoStatus2) => {
30977
31503
  ExtensionStatusDtoStatus2["Error"] = "ERROR";
30978
31504
  ExtensionStatusDtoStatus2["Ok"] = "OK";
31505
+ ExtensionStatusDtoStatus2["Pending"] = "PENDING";
30979
31506
  ExtensionStatusDtoStatus2["Unknown"] = "UNKNOWN";
31507
+ ExtensionStatusDtoStatus2["Warning"] = "WARNING";
30980
31508
  return ExtensionStatusDtoStatus2;
30981
31509
  })(ExtensionStatusDtoStatus || {});
30982
31510
 
31511
+ // packages/client/classic-environment-v2/src/lib/models/extension-status-with-id-dto-status.ts
31512
+ var ExtensionStatusWithIdDtoStatus = /* @__PURE__ */ ((ExtensionStatusWithIdDtoStatus2) => {
31513
+ ExtensionStatusWithIdDtoStatus2["Error"] = "ERROR";
31514
+ ExtensionStatusWithIdDtoStatus2["Ok"] = "OK";
31515
+ ExtensionStatusWithIdDtoStatus2["Pending"] = "PENDING";
31516
+ ExtensionStatusWithIdDtoStatus2["Unknown"] = "UNKNOWN";
31517
+ ExtensionStatusWithIdDtoStatus2["Warning"] = "WARNING";
31518
+ return ExtensionStatusWithIdDtoStatus2;
31519
+ })(ExtensionStatusWithIdDtoStatus || {});
31520
+
30983
31521
  // packages/client/classic-environment-v2/src/lib/models/external-vault-config-source-auth-method.ts
30984
31522
  var ExternalVaultConfigSourceAuthMethod = /* @__PURE__ */ ((ExternalVaultConfigSourceAuthMethod2) => {
30985
31523
  ExternalVaultConfigSourceAuthMethod2["AzureKeyVaultClientSecret"] = "AZURE_KEY_VAULT_CLIENT_SECRET";
@@ -31091,6 +31629,7 @@ var GetAllActiveGatesQueryOsArchitecture = /* @__PURE__ */ ((GetAllActiveGatesQu
31091
31629
  GetAllActiveGatesQueryOsArchitecture2["X86"] = "X86";
31092
31630
  GetAllActiveGatesQueryOsArchitecture2["S390"] = "S390";
31093
31631
  GetAllActiveGatesQueryOsArchitecture2["Arm"] = "ARM";
31632
+ GetAllActiveGatesQueryOsArchitecture2["Ppcle"] = "PPCLE";
31094
31633
  return GetAllActiveGatesQueryOsArchitecture2;
31095
31634
  })(GetAllActiveGatesQueryOsArchitecture || {});
31096
31635
 
@@ -31451,6 +31990,7 @@ var MetricDescriptorTransformationsItem = /* @__PURE__ */ ((MetricDescriptorTran
31451
31990
  MetricDescriptorTransformationsItem2["EvaluateModel"] = "evaluateModel";
31452
31991
  MetricDescriptorTransformationsItem2["Filter"] = "filter";
31453
31992
  MetricDescriptorTransformationsItem2["Fold"] = "fold";
31993
+ MetricDescriptorTransformationsItem2["Histogram"] = "histogram";
31454
31994
  MetricDescriptorTransformationsItem2["Last"] = "last";
31455
31995
  MetricDescriptorTransformationsItem2["LastReal"] = "lastReal";
31456
31996
  MetricDescriptorTransformationsItem2["Limit"] = "limit";
@@ -31544,6 +32084,7 @@ var MonitoredEntityStatesState = /* @__PURE__ */ ((MonitoredEntityStatesState2)
31544
32084
  MonitoredEntityStatesState2["ProcessGroupDisabledViaGlobalSettings"] = "process_group_disabled_via_global_settings";
31545
32085
  MonitoredEntityStatesState2["ProcessGroupDisabledViaInjectionRule"] = "process_group_disabled_via_injection_rule";
31546
32086
  MonitoredEntityStatesState2["ProcessGroupDisabledViaInjectionRuleRestart"] = "process_group_disabled_via_injection_rule_restart";
32087
+ MonitoredEntityStatesState2["ProcessGroupPgrGroupUpdateSuppressed"] = "process_group_pgr_group_update_suppressed";
31547
32088
  MonitoredEntityStatesState2["RestartRequired"] = "restart_required";
31548
32089
  MonitoredEntityStatesState2["RestartRequiredApache"] = "restart_required_apache";
31549
32090
  MonitoredEntityStatesState2["RestartRequiredDockerDeamon"] = "restart_required_docker_deamon";
@@ -31984,6 +32525,7 @@ var RollupType = /* @__PURE__ */ ((RollupType2) => {
31984
32525
 
31985
32526
  // packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto-type.ts
31986
32527
  var SchemaConstraintRestDtoType = /* @__PURE__ */ ((SchemaConstraintRestDtoType2) => {
32528
+ SchemaConstraintRestDtoType2["ByteSizeLimit"] = "BYTE_SIZE_LIMIT";
31987
32529
  SchemaConstraintRestDtoType2["CustomValidatorRef"] = "CUSTOM_VALIDATOR_REF";
31988
32530
  SchemaConstraintRestDtoType2["MultiScopeCustomValidatorRef"] = "MULTI_SCOPE_CUSTOM_VALIDATOR_REF";
31989
32531
  SchemaConstraintRestDtoType2["MultiScopeUnique"] = "MULTI_SCOPE_UNIQUE";
@@ -32161,6 +32703,13 @@ var SyntheticMonitorPerformanceThresholdDtoAggregation = /* @__PURE__ */ ((Synth
32161
32703
  return SyntheticMonitorPerformanceThresholdDtoAggregation2;
32162
32704
  })(SyntheticMonitorPerformanceThresholdDtoAggregation || {});
32163
32705
 
32706
+ // packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-performance-threshold-dto-type.ts
32707
+ var SyntheticMonitorPerformanceThresholdDtoType = /* @__PURE__ */ ((SyntheticMonitorPerformanceThresholdDtoType2) => {
32708
+ SyntheticMonitorPerformanceThresholdDtoType2["Monitor"] = "MONITOR";
32709
+ SyntheticMonitorPerformanceThresholdDtoType2["Step"] = "STEP";
32710
+ return SyntheticMonitorPerformanceThresholdDtoType2;
32711
+ })(SyntheticMonitorPerformanceThresholdDtoType || {});
32712
+
32164
32713
  // packages/client/classic-environment-v2/src/lib/models/synthetic-monitor-summary-dto-type.ts
32165
32714
  var SyntheticMonitorSummaryDtoType = /* @__PURE__ */ ((SyntheticMonitorSummaryDtoType2) => {
32166
32715
  SyntheticMonitorSummaryDtoType2["Browser"] = "BROWSER";
@@ -32170,13 +32719,19 @@ var SyntheticMonitorSummaryDtoType = /* @__PURE__ */ ((SyntheticMonitorSummaryDt
32170
32719
  return SyntheticMonitorSummaryDtoType2;
32171
32720
  })(SyntheticMonitorSummaryDtoType || {});
32172
32721
 
32173
- // packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto-type.ts
32174
- var SyntheticMultiProtocolMonitorDtoType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorDtoType2) => {
32175
- SyntheticMultiProtocolMonitorDtoType2["MultiProtocol"] = "MULTI_PROTOCOL";
32176
- SyntheticMultiProtocolMonitorDtoType2["Browser"] = "BROWSER";
32177
- SyntheticMultiProtocolMonitorDtoType2["Http"] = "HTTP";
32178
- return SyntheticMultiProtocolMonitorDtoType2;
32179
- })(SyntheticMultiProtocolMonitorDtoType || {});
32722
+ // packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-request-type.ts
32723
+ var SyntheticMultiProtocolMonitorRequestType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorRequestType2) => {
32724
+ SyntheticMultiProtocolMonitorRequestType2["MultiProtocol"] = "MULTI_PROTOCOL";
32725
+ return SyntheticMultiProtocolMonitorRequestType2;
32726
+ })(SyntheticMultiProtocolMonitorRequestType || {});
32727
+
32728
+ // packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-response-type.ts
32729
+ var SyntheticMultiProtocolMonitorResponseType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorResponseType2) => {
32730
+ SyntheticMultiProtocolMonitorResponseType2["MultiProtocol"] = "MULTI_PROTOCOL";
32731
+ SyntheticMultiProtocolMonitorResponseType2["Browser"] = "BROWSER";
32732
+ SyntheticMultiProtocolMonitorResponseType2["Http"] = "HTTP";
32733
+ return SyntheticMultiProtocolMonitorResponseType2;
32734
+ })(SyntheticMultiProtocolMonitorResponseType || {});
32180
32735
 
32181
32736
  // packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-step-dto-request-type.ts
32182
32737
  var SyntheticMultiProtocolMonitorStepDtoRequestType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorStepDtoRequestType2) => {
@@ -32186,12 +32741,6 @@ var SyntheticMultiProtocolMonitorStepDtoRequestType = /* @__PURE__ */ ((Syntheti
32186
32741
  return SyntheticMultiProtocolMonitorStepDtoRequestType2;
32187
32742
  })(SyntheticMultiProtocolMonitorStepDtoRequestType || {});
32188
32743
 
32189
- // packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto-type.ts
32190
- var SyntheticMultiProtocolMonitorUpdateDtoType = /* @__PURE__ */ ((SyntheticMultiProtocolMonitorUpdateDtoType2) => {
32191
- SyntheticMultiProtocolMonitorUpdateDtoType2["MultiProtocol"] = "MULTI_PROTOCOL";
32192
- return SyntheticMultiProtocolMonitorUpdateDtoType2;
32193
- })(SyntheticMultiProtocolMonitorUpdateDtoType || {});
32194
-
32195
32744
  // packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-batch-status-batch-status.ts
32196
32745
  var SyntheticOnDemandBatchStatusBatchStatus = /* @__PURE__ */ ((SyntheticOnDemandBatchStatusBatchStatus2) => {
32197
32746
  SyntheticOnDemandBatchStatusBatchStatus2["Failed"] = "FAILED";
@@ -32401,6 +32950,7 @@ export {
32401
32950
  DavisSecurityAdviceAdviceType,
32402
32951
  DavisSecurityAdviceTechnology,
32403
32952
  DavisSecurityAdvisorClient,
32953
+ DeletionConstraintType,
32404
32954
  EffectivePermissionGranted,
32405
32955
  EntryPointUsageSegmentSegmentType,
32406
32956
  EntryPointUsageSegmentSourceType,
@@ -32416,6 +32966,7 @@ export {
32416
32966
  ExecutionStepMonitorType,
32417
32967
  ExtensionEventDtoStatus,
32418
32968
  ExtensionStatusDtoStatus,
32969
+ ExtensionStatusWithIdDtoStatus,
32419
32970
  Extensions_2_0Client,
32420
32971
  ExternalVaultConfigSourceAuthMethod,
32421
32972
  ExternalVaultConfigType,
@@ -32560,10 +33111,11 @@ export {
32560
33111
  SyntheticLocationUpdateType,
32561
33112
  SyntheticLocationsNodesAndConfigurationClient,
32562
33113
  SyntheticMonitorPerformanceThresholdDtoAggregation,
33114
+ SyntheticMonitorPerformanceThresholdDtoType,
32563
33115
  SyntheticMonitorSummaryDtoType,
32564
- SyntheticMultiProtocolMonitorDtoType,
33116
+ SyntheticMultiProtocolMonitorRequestType,
33117
+ SyntheticMultiProtocolMonitorResponseType,
32565
33118
  SyntheticMultiProtocolMonitorStepDtoRequestType,
32566
- SyntheticMultiProtocolMonitorUpdateDtoType,
32567
33119
  SyntheticNetworkAvailabilityMonitorsClient,
32568
33120
  SyntheticOnDemandBatchStatusBatchStatus,
32569
33121
  SyntheticOnDemandExecutionExecutionStage,