@dynatrace-sdk/client-classic-environment-v2 0.6.4 → 0.6.7

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 CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  @dynatrace-sdk/client-classic-environment-v2
4
4
 
5
+ ## 0.6.7
6
+
7
+ ### Patch Changes
8
+
9
+ - 36e1853d: Fix multiple response types.
10
+
11
+ ## 0.6.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Handle multipart Content-Type header.
16
+
17
+ ## 0.6.5
18
+
19
+ ### Patch Changes
20
+
21
+ - Regenerate clients with template-typescript-client v0.12.2.
22
+
5
23
  ## 0.6.4
6
24
 
7
25
  ### Patch Changes
package/cjs/index.js CHANGED
@@ -63,7 +63,6 @@ __export(src_exports, {
63
63
  DavisSecurityAdviceTechnology: () => DavisSecurityAdviceTechnology,
64
64
  DavisSecurityAdvisorClient: () => DavisSecurityAdvisorClient,
65
65
  EnumTypeType: () => EnumTypeType,
66
- ErrorEnvelopeError: () => ErrorEnvelopeError,
67
66
  EventIngestEventType: () => EventIngestEventType,
68
67
  EventIngestResultStatus: () => EventIngestResultStatus,
69
68
  EventStatus: () => EventStatus,
@@ -158,8 +157,6 @@ __export(src_exports, {
158
157
  SecurityProblemVulnerabilityType: () => SecurityProblemVulnerabilityType,
159
158
  SecurityProblemsClient: () => SecurityProblemsClient,
160
159
  ServiceLevelObjectivesClient: () => ServiceLevelObjectivesClient,
161
- SettingsObjectResponseArrayError: () => SettingsObjectResponseArrayError,
162
- SettingsObjectResponseError: () => SettingsObjectResponseError,
163
160
  SettingsObjectsClient: () => SettingsObjectsClient,
164
161
  SettingsSchemasClient: () => SettingsSchemasClient,
165
162
  SloBurnRateBurnRateType: () => SloBurnRateBurnRateType,
@@ -176,7 +173,6 @@ __export(src_exports, {
176
173
  UpdateJobJobState: () => UpdateJobJobState,
177
174
  UpdateJobUpdateMethod: () => UpdateJobUpdateMethod,
178
175
  UpdateJobUpdateType: () => UpdateJobUpdateType,
179
- ValidationResponseError: () => ValidationResponseError,
180
176
  VulnerableFunctionInputSegmentType: () => VulnerableFunctionInputSegmentType,
181
177
  VulnerableFunctionInputType: () => VulnerableFunctionInputType,
182
178
  VulnerableFunctionProcessGroupsUsage: () => VulnerableFunctionProcessGroupsUsage,
@@ -1937,6 +1933,9 @@ var AccessTokensApiTokensClient = class {
1937
1933
  method: "PUT",
1938
1934
  requestBodyType: "json",
1939
1935
  body: encodedBody,
1936
+ headers: {
1937
+ "Content-Type": "application/json; charset=utf-8"
1938
+ },
1940
1939
  abortSignal: config.abortSignal,
1941
1940
  statusValidator: (status) => {
1942
1941
  if (200 <= status && status < 300) {
@@ -2047,7 +2046,10 @@ var AccessTokensApiTokensClient = class {
2047
2046
  method: "POST",
2048
2047
  requestBodyType: "json",
2049
2048
  body: encodedBody,
2050
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
2049
+ headers: {
2050
+ "Content-Type": "application/json; charset=utf-8",
2051
+ Accept: "application/json; charset=utf-8"
2052
+ },
2051
2053
  abortSignal: config.abortSignal,
2052
2054
  statusValidator: (status) => {
2053
2055
  if (200 <= status && status < 300) {
@@ -3037,6 +3039,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
3037
3039
  method: "PUT",
3038
3040
  requestBodyType: "json",
3039
3041
  body: encodedBody,
3042
+ headers: {
3043
+ "Content-Type": "application/json; charset=utf-8"
3044
+ },
3040
3045
  abortSignal: config.abortSignal,
3041
3046
  statusValidator: (status) => {
3042
3047
  if (200 <= status && status < 300) {
@@ -3088,6 +3093,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
3088
3093
  method: "POST",
3089
3094
  requestBodyType: "json",
3090
3095
  body: encodedBody,
3096
+ headers: {
3097
+ "Content-Type": "application/json; charset=utf-8"
3098
+ },
3091
3099
  abortSignal: config.abortSignal,
3092
3100
  statusValidator: (status) => {
3093
3101
  if (200 <= status && status < 300) {
@@ -3161,6 +3169,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
3161
3169
  method: "PUT",
3162
3170
  requestBodyType: "json",
3163
3171
  body: encodedBody,
3172
+ headers: {
3173
+ "Content-Type": "application/json; charset=utf-8"
3174
+ },
3164
3175
  abortSignal: config.abortSignal,
3165
3176
  statusValidator: (status) => {
3166
3177
  if (200 <= status && status < 300) {
@@ -3212,6 +3223,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
3212
3223
  method: "POST",
3213
3224
  requestBodyType: "json",
3214
3225
  body: encodedBody,
3226
+ headers: {
3227
+ "Content-Type": "application/json; charset=utf-8"
3228
+ },
3215
3229
  abortSignal: config.abortSignal,
3216
3230
  statusValidator: (status) => {
3217
3231
  if (200 <= status && status < 300) {
@@ -3774,6 +3788,9 @@ var ActiveGatesAutoUpdateJobsClient = class {
3774
3788
  method: "POST",
3775
3789
  requestBodyType: "json",
3776
3790
  body: encodedBody,
3791
+ headers: {
3792
+ "Content-Type": "application/json; charset=utf-8"
3793
+ },
3777
3794
  abortSignal: config.abortSignal,
3778
3795
  statusValidator: (status) => {
3779
3796
  if (200 <= status && status < 300) {
@@ -5923,7 +5940,10 @@ var EventsClient = class {
5923
5940
  method: "POST",
5924
5941
  requestBodyType: "json",
5925
5942
  body: encodedBody,
5926
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
5943
+ headers: {
5944
+ "Content-Type": "application/json; charset=utf-8",
5945
+ Accept: "application/json; charset=utf-8"
5946
+ },
5927
5947
  abortSignal: config.abortSignal
5928
5948
  });
5929
5949
  const responseValue = await response.body("json");
@@ -8863,7 +8883,9 @@ var Extensions_2_0Client = class {
8863
8883
  method: "POST",
8864
8884
  requestBodyType: "form-data",
8865
8885
  body: encodedBody,
8866
- headers: { "Content-Type": "multipart/form-data", Accept: "application/json; charset=utf-8, application/json" },
8886
+ headers: {
8887
+ Accept: "application/json; charset=utf-8, application/json"
8888
+ },
8867
8889
  abortSignal: config.abortSignal,
8868
8890
  statusValidator: (status) => {
8869
8891
  if (200 <= status && status < 300) {
@@ -9532,7 +9554,10 @@ var LogsClient = class {
9532
9554
  method: "POST",
9533
9555
  requestBodyType: mimeTypeToEncoding(config.type),
9534
9556
  body: encodedBody,
9535
- headers: { "Content-Type": config.type, Accept: "application/json; charset=utf-8, application/json" },
9557
+ headers: {
9558
+ "Content-Type": config.type,
9559
+ Accept: "application/json; charset=utf-8, application/json"
9560
+ },
9536
9561
  abortSignal: config.abortSignal,
9537
9562
  statusValidator: (status) => {
9538
9563
  if (200 <= status && status < 300) {
@@ -10877,6 +10902,7 @@ var MetricsClient = class {
10877
10902
  requestBodyType: "text",
10878
10903
  body: config.body,
10879
10904
  headers: {
10905
+ "Content-Type": "text/plain; charset=utf-8",
10880
10906
  Accept: "application/json; charset=utf-8, application/json"
10881
10907
  },
10882
10908
  abortSignal: config.abortSignal,
@@ -11759,7 +11785,10 @@ var MonitoredEntitiesClient = class {
11759
11785
  method: "POST",
11760
11786
  requestBodyType: "json",
11761
11787
  body: encodedBody,
11762
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
11788
+ headers: {
11789
+ "Content-Type": "application/json; charset=utf-8",
11790
+ Accept: "application/json; charset=utf-8"
11791
+ },
11763
11792
  abortSignal: config.abortSignal,
11764
11793
  statusValidator: (status) => {
11765
11794
  if (200 <= status && status < 300) {
@@ -11952,7 +11981,10 @@ var MonitoredEntitiesCustomTagsClient = class {
11952
11981
  method: "POST",
11953
11982
  requestBodyType: "json",
11954
11983
  body: encodedBody,
11955
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
11984
+ headers: {
11985
+ "Content-Type": "application/json; charset=utf-8",
11986
+ Accept: "application/json; charset=utf-8"
11987
+ },
11956
11988
  abortSignal: config.abortSignal
11957
11989
  });
11958
11990
  const responseValue = await response.body("json");
@@ -12360,6 +12392,9 @@ var NetworkZonesClient = class {
12360
12392
  method: "PUT",
12361
12393
  requestBodyType: "json",
12362
12394
  body: encodedBody,
12395
+ headers: {
12396
+ "Content-Type": "application/json; charset=utf-8"
12397
+ },
12363
12398
  abortSignal: config.abortSignal
12364
12399
  });
12365
12400
  return;
@@ -13133,7 +13168,10 @@ var ProblemsClient = class {
13133
13168
  method: "POST",
13134
13169
  requestBodyType: "json",
13135
13170
  body: encodedBody,
13136
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
13171
+ headers: {
13172
+ "Content-Type": "application/json; charset=utf-8",
13173
+ Accept: "application/json; charset=utf-8"
13174
+ },
13137
13175
  abortSignal: config.abortSignal
13138
13176
  });
13139
13177
  switch (response.status) {
@@ -13195,6 +13233,9 @@ var ProblemsClient = class {
13195
13233
  method: "POST",
13196
13234
  requestBodyType: "json",
13197
13235
  body: encodedBody,
13236
+ headers: {
13237
+ "Content-Type": "application/json; charset=utf-8"
13238
+ },
13198
13239
  abortSignal: config.abortSignal
13199
13240
  });
13200
13241
  return;
@@ -13225,6 +13266,9 @@ var ProblemsClient = class {
13225
13266
  method: "PUT",
13226
13267
  requestBodyType: "json",
13227
13268
  body: encodedBody,
13269
+ headers: {
13270
+ "Content-Type": "application/json; charset=utf-8"
13271
+ },
13228
13272
  abortSignal: config.abortSignal
13229
13273
  });
13230
13274
  return;
@@ -15145,6 +15189,9 @@ var SecurityProblemsClient = class {
15145
15189
  method: "POST",
15146
15190
  requestBodyType: "json",
15147
15191
  body: encodedBody,
15192
+ headers: {
15193
+ "Content-Type": "application/json; charset=utf-8"
15194
+ },
15148
15195
  abortSignal: config.abortSignal
15149
15196
  });
15150
15197
  return;
@@ -15159,6 +15206,9 @@ var SecurityProblemsClient = class {
15159
15206
  method: "PUT",
15160
15207
  requestBodyType: "json",
15161
15208
  body: encodedBody,
15209
+ headers: {
15210
+ "Content-Type": "application/json; charset=utf-8"
15211
+ },
15162
15212
  abortSignal: config.abortSignal
15163
15213
  });
15164
15214
  return;
@@ -15173,6 +15223,9 @@ var SecurityProblemsClient = class {
15173
15223
  method: "POST",
15174
15224
  requestBodyType: "json",
15175
15225
  body: encodedBody,
15226
+ headers: {
15227
+ "Content-Type": "application/json; charset=utf-8"
15228
+ },
15176
15229
  abortSignal: config.abortSignal
15177
15230
  });
15178
15231
  return;
@@ -15649,6 +15702,9 @@ var ServiceLevelObjectivesClient = class {
15649
15702
  method: "POST",
15650
15703
  requestBodyType: "json",
15651
15704
  body: encodedBody,
15705
+ headers: {
15706
+ "Content-Type": "application/json; charset=utf-8"
15707
+ },
15652
15708
  abortSignal: config.abortSignal,
15653
15709
  statusValidator: (status) => {
15654
15710
  if (200 <= status && status < 300) {
@@ -15834,6 +15890,9 @@ var ServiceLevelObjectivesClient = class {
15834
15890
  method: "POST",
15835
15891
  requestBodyType: "json",
15836
15892
  body: encodedBody,
15893
+ headers: {
15894
+ "Content-Type": "application/json; charset=utf-8"
15895
+ },
15837
15896
  abortSignal: config.abortSignal,
15838
15897
  statusValidator: (status) => {
15839
15898
  if (200 <= status && status < 300) {
@@ -16020,6 +16079,9 @@ var ServiceLevelObjectivesClient = class {
16020
16079
  method: "PUT",
16021
16080
  requestBodyType: "json",
16022
16081
  body: encodedBody,
16082
+ headers: {
16083
+ "Content-Type": "application/json; charset=utf-8"
16084
+ },
16023
16085
  abortSignal: config.abortSignal,
16024
16086
  statusValidator: (status) => {
16025
16087
  if (200 <= status && status < 300) {
@@ -17846,7 +17908,10 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
17846
17908
  method: "PUT",
17847
17909
  requestBodyType: "json",
17848
17910
  body: encodedBody,
17849
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
17911
+ headers: {
17912
+ "Content-Type": "application/json; charset=utf-8",
17913
+ Accept: "application/json; charset=utf-8"
17914
+ },
17850
17915
  abortSignal: config.abortSignal
17851
17916
  });
17852
17917
  const responseValue = await response.body("json");
@@ -17894,6 +17959,9 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
17894
17959
  method: "PUT",
17895
17960
  requestBodyType: "json",
17896
17961
  body: encodedBody,
17962
+ headers: {
17963
+ "Content-Type": "application/json; charset=utf-8"
17964
+ },
17897
17965
  abortSignal: config.abortSignal
17898
17966
  });
17899
17967
  return;
@@ -18575,7 +18643,10 @@ var SyntheticOnDemandMonitorExecutionsClient = class {
18575
18643
  method: "POST",
18576
18644
  requestBodyType: "json",
18577
18645
  body: encodedBody,
18578
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
18646
+ headers: {
18647
+ "Content-Type": "application/json; charset=utf-8",
18648
+ Accept: "application/json; charset=utf-8"
18649
+ },
18579
18650
  abortSignal: config.abortSignal
18580
18651
  });
18581
18652
  const responseValue = await response.body("json");
package/docs/DOCS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Classic Environment V2
2
2
 
3
- SDK package version **0.6.4**
3
+ SDK package version **0.6.7**
4
4
 
5
5
  ```bash
6
6
  npm install @dynatrace-sdk/client-classic-environment-v2
@@ -4302,6 +4302,75 @@ Success | Multi-Status, if not all requests resulted in the same status
4302
4302
 
4303
4303
 
4304
4304
 
4305
+ </div>
4306
+
4307
+
4308
+
4309
+ </div>
4310
+ <div class="padding-bottom--md">
4311
+ <strong>extensions_2_0Client.createMonitoringConfiguration(config): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>&lt;Array&lt;<a href="#errorenvelope">ErrorEnvelope</a> | <a href="#monitoringconfigurationresponse">MonitoringConfigurationResponse</a>&gt;&gt;</strong>
4312
+
4313
+ <div class="padding-left--md">
4314
+
4315
+
4316
+
4317
+
4318
+ **Parameters**
4319
+
4320
+ <div class="padding-left--md padding-bottom--md">
4321
+ <strong>config</strong>: Object
4322
+ <div class="padding-left--md">
4323
+
4324
+
4325
+
4326
+ </div>
4327
+
4328
+
4329
+
4330
+ </div>
4331
+
4332
+ <div class="padding-left--md padding-bottom--md">
4333
+ <strong>config.abortSignal</strong>: <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal">AbortSignal</a>
4334
+ <div class="padding-left--md">
4335
+
4336
+
4337
+
4338
+ </div>
4339
+
4340
+
4341
+
4342
+ </div>
4343
+
4344
+ <div class="padding-left--md padding-bottom--md">
4345
+ <strong>config.body</strong>: Array&lt;<a href="#monitoringconfigurationdto">MonitoringConfigurationDto</a>&gt;
4346
+ <div class="padding-left--md">
4347
+
4348
+
4349
+
4350
+ </div>
4351
+
4352
+
4353
+
4354
+ </div>
4355
+
4356
+ <div class="padding-left--md padding-bottom--md">
4357
+ <strong>config.extensionName</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
4358
+ <div class="padding-left--md">
4359
+
4360
+ The name of the requested extension 2.0.
4361
+
4362
+ </div>
4363
+
4364
+
4365
+
4366
+ </div>
4367
+
4368
+
4369
+
4370
+ <!-- no returns -->
4371
+
4372
+
4373
+
4305
4374
  </div>
4306
4375
 
4307
4376
 
@@ -13854,438 +13923,6 @@ Success
13854
13923
 
13855
13924
  ## Types
13856
13925
 
13857
- ### ErrorEnvelopeError
13858
- <div class="padding-left--md">
13859
-
13860
-
13861
-
13862
-
13863
-
13864
- <div class="padding-left--md padding-bottom--md">
13865
- <strong>body</strong>: <a href="#errorenvelope">ErrorEnvelope</a>
13866
- <div class="padding-left--md">
13867
-
13868
-
13869
-
13870
- </div>
13871
-
13872
-
13873
-
13874
- </div>
13875
-
13876
- <div class="padding-left--md padding-bottom--md">
13877
- <strong>errorType</strong>: <a href="#errortype">ErrorType</a>
13878
- <div class="padding-left--md">
13879
-
13880
-
13881
-
13882
- </div>
13883
-
13884
-
13885
-
13886
- </div>
13887
-
13888
- <div class="padding-left--md padding-bottom--md">
13889
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
13890
- <div class="padding-left--md">
13891
-
13892
-
13893
-
13894
- </div>
13895
-
13896
-
13897
-
13898
- </div>
13899
-
13900
- <div class="padding-left--md padding-bottom--md">
13901
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
13902
- <div class="padding-left--md">
13903
-
13904
-
13905
-
13906
- </div>
13907
-
13908
-
13909
-
13910
- </div>
13911
-
13912
- <div class="padding-left--md padding-bottom--md">
13913
- <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
13914
- <div class="padding-left--md">
13915
-
13916
-
13917
-
13918
- </div>
13919
-
13920
-
13921
-
13922
- </div>
13923
-
13924
- <div class="padding-left--md padding-bottom--md">
13925
- <strong>stack</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
13926
- <div class="padding-left--md">
13927
-
13928
-
13929
-
13930
- </div>
13931
-
13932
-
13933
-
13934
- </div>
13935
-
13936
- <div class="padding-left--md padding-bottom--md">
13937
- <strong>prepareStackTrace</strong>: Object
13938
- <div class="padding-left--md">
13939
-
13940
-
13941
-
13942
- </div>
13943
-
13944
-
13945
-
13946
- </div>
13947
-
13948
- <div class="padding-left--md padding-bottom--md">
13949
- <strong>stackTraceLimit</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a>
13950
- <div class="padding-left--md">
13951
-
13952
-
13953
-
13954
- </div>
13955
-
13956
-
13957
-
13958
- </div>
13959
-
13960
-
13961
- </div>
13962
-
13963
-
13964
-
13965
- ### SettingsObjectResponseArrayError
13966
- <div class="padding-left--md">
13967
-
13968
-
13969
-
13970
-
13971
-
13972
- <div class="padding-left--md padding-bottom--md">
13973
- <strong>body</strong>: Array&lt;<a href="#settingsobjectresponse">SettingsObjectResponse</a>&gt;
13974
- <div class="padding-left--md">
13975
-
13976
-
13977
-
13978
- </div>
13979
-
13980
-
13981
-
13982
- </div>
13983
-
13984
- <div class="padding-left--md padding-bottom--md">
13985
- <strong>errorType</strong>: <a href="#errortype">ErrorType</a>
13986
- <div class="padding-left--md">
13987
-
13988
-
13989
-
13990
- </div>
13991
-
13992
-
13993
-
13994
- </div>
13995
-
13996
- <div class="padding-left--md padding-bottom--md">
13997
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
13998
- <div class="padding-left--md">
13999
-
14000
-
14001
-
14002
- </div>
14003
-
14004
-
14005
-
14006
- </div>
14007
-
14008
- <div class="padding-left--md padding-bottom--md">
14009
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14010
- <div class="padding-left--md">
14011
-
14012
-
14013
-
14014
- </div>
14015
-
14016
-
14017
-
14018
- </div>
14019
-
14020
- <div class="padding-left--md padding-bottom--md">
14021
- <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
14022
- <div class="padding-left--md">
14023
-
14024
-
14025
-
14026
- </div>
14027
-
14028
-
14029
-
14030
- </div>
14031
-
14032
- <div class="padding-left--md padding-bottom--md">
14033
- <strong>stack</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14034
- <div class="padding-left--md">
14035
-
14036
-
14037
-
14038
- </div>
14039
-
14040
-
14041
-
14042
- </div>
14043
-
14044
- <div class="padding-left--md padding-bottom--md">
14045
- <strong>prepareStackTrace</strong>: Object
14046
- <div class="padding-left--md">
14047
-
14048
-
14049
-
14050
- </div>
14051
-
14052
-
14053
-
14054
- </div>
14055
-
14056
- <div class="padding-left--md padding-bottom--md">
14057
- <strong>stackTraceLimit</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a>
14058
- <div class="padding-left--md">
14059
-
14060
-
14061
-
14062
- </div>
14063
-
14064
-
14065
-
14066
- </div>
14067
-
14068
-
14069
- </div>
14070
-
14071
-
14072
-
14073
- ### SettingsObjectResponseError
14074
- <div class="padding-left--md">
14075
-
14076
-
14077
-
14078
-
14079
-
14080
- <div class="padding-left--md padding-bottom--md">
14081
- <strong>body</strong>: <a href="#settingsobjectresponse">SettingsObjectResponse</a>
14082
- <div class="padding-left--md">
14083
-
14084
-
14085
-
14086
- </div>
14087
-
14088
-
14089
-
14090
- </div>
14091
-
14092
- <div class="padding-left--md padding-bottom--md">
14093
- <strong>errorType</strong>: <a href="#errortype">ErrorType</a>
14094
- <div class="padding-left--md">
14095
-
14096
-
14097
-
14098
- </div>
14099
-
14100
-
14101
-
14102
- </div>
14103
-
14104
- <div class="padding-left--md padding-bottom--md">
14105
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14106
- <div class="padding-left--md">
14107
-
14108
-
14109
-
14110
- </div>
14111
-
14112
-
14113
-
14114
- </div>
14115
-
14116
- <div class="padding-left--md padding-bottom--md">
14117
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14118
- <div class="padding-left--md">
14119
-
14120
-
14121
-
14122
- </div>
14123
-
14124
-
14125
-
14126
- </div>
14127
-
14128
- <div class="padding-left--md padding-bottom--md">
14129
- <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
14130
- <div class="padding-left--md">
14131
-
14132
-
14133
-
14134
- </div>
14135
-
14136
-
14137
-
14138
- </div>
14139
-
14140
- <div class="padding-left--md padding-bottom--md">
14141
- <strong>stack</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14142
- <div class="padding-left--md">
14143
-
14144
-
14145
-
14146
- </div>
14147
-
14148
-
14149
-
14150
- </div>
14151
-
14152
- <div class="padding-left--md padding-bottom--md">
14153
- <strong>prepareStackTrace</strong>: Object
14154
- <div class="padding-left--md">
14155
-
14156
-
14157
-
14158
- </div>
14159
-
14160
-
14161
-
14162
- </div>
14163
-
14164
- <div class="padding-left--md padding-bottom--md">
14165
- <strong>stackTraceLimit</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a>
14166
- <div class="padding-left--md">
14167
-
14168
-
14169
-
14170
- </div>
14171
-
14172
-
14173
-
14174
- </div>
14175
-
14176
-
14177
- </div>
14178
-
14179
-
14180
-
14181
- ### ValidationResponseError
14182
- <div class="padding-left--md">
14183
-
14184
-
14185
-
14186
-
14187
-
14188
- <div class="padding-left--md padding-bottom--md">
14189
- <strong>body</strong>: <a href="#validationresponse">ValidationResponse</a>
14190
- <div class="padding-left--md">
14191
-
14192
-
14193
-
14194
- </div>
14195
-
14196
-
14197
-
14198
- </div>
14199
-
14200
- <div class="padding-left--md padding-bottom--md">
14201
- <strong>errorType</strong>: <a href="#errortype">ErrorType</a>
14202
- <div class="padding-left--md">
14203
-
14204
-
14205
-
14206
- </div>
14207
-
14208
-
14209
-
14210
- </div>
14211
-
14212
- <div class="padding-left--md padding-bottom--md">
14213
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14214
- <div class="padding-left--md">
14215
-
14216
-
14217
-
14218
- </div>
14219
-
14220
-
14221
-
14222
- </div>
14223
-
14224
- <div class="padding-left--md padding-bottom--md">
14225
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14226
- <div class="padding-left--md">
14227
-
14228
-
14229
-
14230
- </div>
14231
-
14232
-
14233
-
14234
- </div>
14235
-
14236
- <div class="padding-left--md padding-bottom--md">
14237
- <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
14238
- <div class="padding-left--md">
14239
-
14240
-
14241
-
14242
- </div>
14243
-
14244
-
14245
-
14246
- </div>
14247
-
14248
- <div class="padding-left--md padding-bottom--md">
14249
- <strong>stack</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
14250
- <div class="padding-left--md">
14251
-
14252
-
14253
-
14254
- </div>
14255
-
14256
-
14257
-
14258
- </div>
14259
-
14260
- <div class="padding-left--md padding-bottom--md">
14261
- <strong>prepareStackTrace</strong>: Object
14262
- <div class="padding-left--md">
14263
-
14264
-
14265
-
14266
- </div>
14267
-
14268
-
14269
-
14270
- </div>
14271
-
14272
- <div class="padding-left--md padding-bottom--md">
14273
- <strong>stackTraceLimit</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a>
14274
- <div class="padding-left--md">
14275
-
14276
-
14277
-
14278
- </div>
14279
-
14280
-
14281
-
14282
- </div>
14283
-
14284
-
14285
- </div>
14286
-
14287
-
14288
-
14289
13926
  ### AbstractCredentialsResponseElement
14290
13927
  <div class="padding-left--md">
14291
13928
 
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "dynagen": {
3
- "version": "0.9.0",
3
+ "version": "0.10.2",
4
4
  "generatedAt": "",
5
5
  "template": {
6
6
  "name": "@dynatrace-sdk/template-typescript-client",
7
- "version": "0.12.1"
7
+ "version": "0.13.3"
8
8
  }
9
9
  },
10
10
  "spec": {
package/esm/index.js CHANGED
@@ -1309,6 +1309,9 @@ var AccessTokensApiTokensClient = class {
1309
1309
  method: "PUT",
1310
1310
  requestBodyType: "json",
1311
1311
  body: encodedBody,
1312
+ headers: {
1313
+ "Content-Type": "application/json; charset=utf-8"
1314
+ },
1312
1315
  abortSignal: config.abortSignal,
1313
1316
  statusValidator: (status) => {
1314
1317
  if (200 <= status && status < 300) {
@@ -1419,7 +1422,10 @@ var AccessTokensApiTokensClient = class {
1419
1422
  method: "POST",
1420
1423
  requestBodyType: "json",
1421
1424
  body: encodedBody,
1422
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
1425
+ headers: {
1426
+ "Content-Type": "application/json; charset=utf-8",
1427
+ Accept: "application/json; charset=utf-8"
1428
+ },
1423
1429
  abortSignal: config.abortSignal,
1424
1430
  statusValidator: (status) => {
1425
1431
  if (200 <= status && status < 300) {
@@ -2409,6 +2415,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
2409
2415
  method: "PUT",
2410
2416
  requestBodyType: "json",
2411
2417
  body: encodedBody,
2418
+ headers: {
2419
+ "Content-Type": "application/json; charset=utf-8"
2420
+ },
2412
2421
  abortSignal: config.abortSignal,
2413
2422
  statusValidator: (status) => {
2414
2423
  if (200 <= status && status < 300) {
@@ -2460,6 +2469,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
2460
2469
  method: "POST",
2461
2470
  requestBodyType: "json",
2462
2471
  body: encodedBody,
2472
+ headers: {
2473
+ "Content-Type": "application/json; charset=utf-8"
2474
+ },
2463
2475
  abortSignal: config.abortSignal,
2464
2476
  statusValidator: (status) => {
2465
2477
  if (200 <= status && status < 300) {
@@ -2533,6 +2545,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
2533
2545
  method: "PUT",
2534
2546
  requestBodyType: "json",
2535
2547
  body: encodedBody,
2548
+ headers: {
2549
+ "Content-Type": "application/json; charset=utf-8"
2550
+ },
2536
2551
  abortSignal: config.abortSignal,
2537
2552
  statusValidator: (status) => {
2538
2553
  if (200 <= status && status < 300) {
@@ -2584,6 +2599,9 @@ var ActiveGatesAutoUpdateConfigurationClient = class {
2584
2599
  method: "POST",
2585
2600
  requestBodyType: "json",
2586
2601
  body: encodedBody,
2602
+ headers: {
2603
+ "Content-Type": "application/json; charset=utf-8"
2604
+ },
2587
2605
  abortSignal: config.abortSignal,
2588
2606
  statusValidator: (status) => {
2589
2607
  if (200 <= status && status < 300) {
@@ -3146,6 +3164,9 @@ var ActiveGatesAutoUpdateJobsClient = class {
3146
3164
  method: "POST",
3147
3165
  requestBodyType: "json",
3148
3166
  body: encodedBody,
3167
+ headers: {
3168
+ "Content-Type": "application/json; charset=utf-8"
3169
+ },
3149
3170
  abortSignal: config.abortSignal,
3150
3171
  statusValidator: (status) => {
3151
3172
  if (200 <= status && status < 300) {
@@ -5295,7 +5316,10 @@ var EventsClient = class {
5295
5316
  method: "POST",
5296
5317
  requestBodyType: "json",
5297
5318
  body: encodedBody,
5298
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
5319
+ headers: {
5320
+ "Content-Type": "application/json; charset=utf-8",
5321
+ Accept: "application/json; charset=utf-8"
5322
+ },
5299
5323
  abortSignal: config.abortSignal
5300
5324
  });
5301
5325
  const responseValue = await response.body("json");
@@ -8235,7 +8259,9 @@ var Extensions_2_0Client = class {
8235
8259
  method: "POST",
8236
8260
  requestBodyType: "form-data",
8237
8261
  body: encodedBody,
8238
- headers: { "Content-Type": "multipart/form-data", Accept: "application/json; charset=utf-8, application/json" },
8262
+ headers: {
8263
+ Accept: "application/json; charset=utf-8, application/json"
8264
+ },
8239
8265
  abortSignal: config.abortSignal,
8240
8266
  statusValidator: (status) => {
8241
8267
  if (200 <= status && status < 300) {
@@ -8904,7 +8930,10 @@ var LogsClient = class {
8904
8930
  method: "POST",
8905
8931
  requestBodyType: mimeTypeToEncoding(config.type),
8906
8932
  body: encodedBody,
8907
- headers: { "Content-Type": config.type, Accept: "application/json; charset=utf-8, application/json" },
8933
+ headers: {
8934
+ "Content-Type": config.type,
8935
+ Accept: "application/json; charset=utf-8, application/json"
8936
+ },
8908
8937
  abortSignal: config.abortSignal,
8909
8938
  statusValidator: (status) => {
8910
8939
  if (200 <= status && status < 300) {
@@ -10249,6 +10278,7 @@ var MetricsClient = class {
10249
10278
  requestBodyType: "text",
10250
10279
  body: config.body,
10251
10280
  headers: {
10281
+ "Content-Type": "text/plain; charset=utf-8",
10252
10282
  Accept: "application/json; charset=utf-8, application/json"
10253
10283
  },
10254
10284
  abortSignal: config.abortSignal,
@@ -11131,7 +11161,10 @@ var MonitoredEntitiesClient = class {
11131
11161
  method: "POST",
11132
11162
  requestBodyType: "json",
11133
11163
  body: encodedBody,
11134
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
11164
+ headers: {
11165
+ "Content-Type": "application/json; charset=utf-8",
11166
+ Accept: "application/json; charset=utf-8"
11167
+ },
11135
11168
  abortSignal: config.abortSignal,
11136
11169
  statusValidator: (status) => {
11137
11170
  if (200 <= status && status < 300) {
@@ -11324,7 +11357,10 @@ var MonitoredEntitiesCustomTagsClient = class {
11324
11357
  method: "POST",
11325
11358
  requestBodyType: "json",
11326
11359
  body: encodedBody,
11327
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
11360
+ headers: {
11361
+ "Content-Type": "application/json; charset=utf-8",
11362
+ Accept: "application/json; charset=utf-8"
11363
+ },
11328
11364
  abortSignal: config.abortSignal
11329
11365
  });
11330
11366
  const responseValue = await response.body("json");
@@ -11732,6 +11768,9 @@ var NetworkZonesClient = class {
11732
11768
  method: "PUT",
11733
11769
  requestBodyType: "json",
11734
11770
  body: encodedBody,
11771
+ headers: {
11772
+ "Content-Type": "application/json; charset=utf-8"
11773
+ },
11735
11774
  abortSignal: config.abortSignal
11736
11775
  });
11737
11776
  return;
@@ -12505,7 +12544,10 @@ var ProblemsClient = class {
12505
12544
  method: "POST",
12506
12545
  requestBodyType: "json",
12507
12546
  body: encodedBody,
12508
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
12547
+ headers: {
12548
+ "Content-Type": "application/json; charset=utf-8",
12549
+ Accept: "application/json; charset=utf-8"
12550
+ },
12509
12551
  abortSignal: config.abortSignal
12510
12552
  });
12511
12553
  switch (response.status) {
@@ -12567,6 +12609,9 @@ var ProblemsClient = class {
12567
12609
  method: "POST",
12568
12610
  requestBodyType: "json",
12569
12611
  body: encodedBody,
12612
+ headers: {
12613
+ "Content-Type": "application/json; charset=utf-8"
12614
+ },
12570
12615
  abortSignal: config.abortSignal
12571
12616
  });
12572
12617
  return;
@@ -12597,6 +12642,9 @@ var ProblemsClient = class {
12597
12642
  method: "PUT",
12598
12643
  requestBodyType: "json",
12599
12644
  body: encodedBody,
12645
+ headers: {
12646
+ "Content-Type": "application/json; charset=utf-8"
12647
+ },
12600
12648
  abortSignal: config.abortSignal
12601
12649
  });
12602
12650
  return;
@@ -14517,6 +14565,9 @@ var SecurityProblemsClient = class {
14517
14565
  method: "POST",
14518
14566
  requestBodyType: "json",
14519
14567
  body: encodedBody,
14568
+ headers: {
14569
+ "Content-Type": "application/json; charset=utf-8"
14570
+ },
14520
14571
  abortSignal: config.abortSignal
14521
14572
  });
14522
14573
  return;
@@ -14531,6 +14582,9 @@ var SecurityProblemsClient = class {
14531
14582
  method: "PUT",
14532
14583
  requestBodyType: "json",
14533
14584
  body: encodedBody,
14585
+ headers: {
14586
+ "Content-Type": "application/json; charset=utf-8"
14587
+ },
14534
14588
  abortSignal: config.abortSignal
14535
14589
  });
14536
14590
  return;
@@ -14545,6 +14599,9 @@ var SecurityProblemsClient = class {
14545
14599
  method: "POST",
14546
14600
  requestBodyType: "json",
14547
14601
  body: encodedBody,
14602
+ headers: {
14603
+ "Content-Type": "application/json; charset=utf-8"
14604
+ },
14548
14605
  abortSignal: config.abortSignal
14549
14606
  });
14550
14607
  return;
@@ -15021,6 +15078,9 @@ var ServiceLevelObjectivesClient = class {
15021
15078
  method: "POST",
15022
15079
  requestBodyType: "json",
15023
15080
  body: encodedBody,
15081
+ headers: {
15082
+ "Content-Type": "application/json; charset=utf-8"
15083
+ },
15024
15084
  abortSignal: config.abortSignal,
15025
15085
  statusValidator: (status) => {
15026
15086
  if (200 <= status && status < 300) {
@@ -15206,6 +15266,9 @@ var ServiceLevelObjectivesClient = class {
15206
15266
  method: "POST",
15207
15267
  requestBodyType: "json",
15208
15268
  body: encodedBody,
15269
+ headers: {
15270
+ "Content-Type": "application/json; charset=utf-8"
15271
+ },
15209
15272
  abortSignal: config.abortSignal,
15210
15273
  statusValidator: (status) => {
15211
15274
  if (200 <= status && status < 300) {
@@ -15392,6 +15455,9 @@ var ServiceLevelObjectivesClient = class {
15392
15455
  method: "PUT",
15393
15456
  requestBodyType: "json",
15394
15457
  body: encodedBody,
15458
+ headers: {
15459
+ "Content-Type": "application/json; charset=utf-8"
15460
+ },
15395
15461
  abortSignal: config.abortSignal,
15396
15462
  statusValidator: (status) => {
15397
15463
  if (200 <= status && status < 300) {
@@ -17218,7 +17284,10 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
17218
17284
  method: "PUT",
17219
17285
  requestBodyType: "json",
17220
17286
  body: encodedBody,
17221
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
17287
+ headers: {
17288
+ "Content-Type": "application/json; charset=utf-8",
17289
+ Accept: "application/json; charset=utf-8"
17290
+ },
17222
17291
  abortSignal: config.abortSignal
17223
17292
  });
17224
17293
  const responseValue = await response.body("json");
@@ -17266,6 +17335,9 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
17266
17335
  method: "PUT",
17267
17336
  requestBodyType: "json",
17268
17337
  body: encodedBody,
17338
+ headers: {
17339
+ "Content-Type": "application/json; charset=utf-8"
17340
+ },
17269
17341
  abortSignal: config.abortSignal
17270
17342
  });
17271
17343
  return;
@@ -17947,7 +18019,10 @@ var SyntheticOnDemandMonitorExecutionsClient = class {
17947
18019
  method: "POST",
17948
18020
  requestBodyType: "json",
17949
18021
  body: encodedBody,
17950
- headers: { "Content-Type": "application/json; charset=utf-8", Accept: "application/json; charset=utf-8" },
18022
+ headers: {
18023
+ "Content-Type": "application/json; charset=utf-8",
18024
+ Accept: "application/json; charset=utf-8"
18025
+ },
17951
18026
  abortSignal: config.abortSignal
17952
18027
  });
17953
18028
  const responseValue = await response.body("json");
@@ -18511,7 +18586,6 @@ export {
18511
18586
  DavisSecurityAdviceTechnology,
18512
18587
  DavisSecurityAdvisorClient,
18513
18588
  EnumTypeType,
18514
- ErrorEnvelopeError,
18515
18589
  EventIngestEventType,
18516
18590
  EventIngestResultStatus,
18517
18591
  EventStatus,
@@ -18606,8 +18680,6 @@ export {
18606
18680
  SecurityProblemVulnerabilityType,
18607
18681
  SecurityProblemsClient,
18608
18682
  ServiceLevelObjectivesClient,
18609
- SettingsObjectResponseArrayError,
18610
- SettingsObjectResponseError,
18611
18683
  SettingsObjectsClient,
18612
18684
  SettingsSchemasClient,
18613
18685
  SloBurnRateBurnRateType,
@@ -18624,7 +18696,6 @@ export {
18624
18696
  UpdateJobJobState,
18625
18697
  UpdateJobUpdateMethod,
18626
18698
  UpdateJobUpdateType,
18627
- ValidationResponseError,
18628
18699
  VulnerableFunctionInputSegmentType,
18629
18700
  VulnerableFunctionInputType,
18630
18701
  VulnerableFunctionProcessGroupsUsage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-classic-environment-v2",
3
- "version": "0.6.4",
3
+ "version": "0.6.7",
4
4
  "dependencies": {
5
5
  "@dynatrace-sdk/http-client": "^0.4.8"
6
6
  },
@@ -1,4 +1,5 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
+ import { ErrorEnvelope } from '../models/error-envelope';
2
3
  import { Extension } from '../models/extension';
3
4
  import { ExtensionEnvironmentConfigurationVersion } from '../models/extension-environment-configuration-version';
4
5
  import { ExtensionEventsList } from '../models/extension-events-list';
@@ -107,6 +108,11 @@ export declare class Extensions_2_0Client {
107
108
  /** The name of the requested extension 2.0. */ extensionName: string;
108
109
  abortSignal?: AbortSignal;
109
110
  }): Promise<MonitoringConfigurationResponse[]>;
111
+ createMonitoringConfiguration(config: {
112
+ body: MonitoringConfigurationDto[];
113
+ /** The name of the requested extension 2.0. */ extensionName: string;
114
+ abortSignal?: AbortSignal;
115
+ }): Promise<(MonitoringConfigurationResponse | ErrorEnvelope)[]>;
110
116
  /**
111
117
  * Gets the configuration schema of the specified version of the extension 2.0
112
118
  *
@@ -1,6 +1,6 @@
1
1
  export { isClientRequestError } from './client-request-error';
2
2
  export { isApiClientError } from './api-client-error';
3
- export { isErrorEnvelopeError, ErrorEnvelopeError } from './error-envelope-error';
4
- export { isValidationResponseError, ValidationResponseError } from './validation-response-error';
5
- export { isSettingsObjectResponseError, SettingsObjectResponseError } from './settings-object-response-error';
6
- export { isSettingsObjectResponseArrayError, SettingsObjectResponseArrayError, } from './settings-object-response-array-error';
3
+ export { isErrorEnvelopeError } from './error-envelope-error';
4
+ export { isValidationResponseError } from './validation-response-error';
5
+ export { isSettingsObjectResponseError } from './settings-object-response-error';
6
+ export { isSettingsObjectResponseArrayError } from './settings-object-response-array-error';
@@ -11,4 +11,3 @@ export declare function addGlobalErrorSerializer(serializer: GlobalErrorSerializ
11
11
  * @return {boolean} information if global error serializer is supported on current environment.
12
12
  */
13
13
  export declare function isGlobalErrorSerializerSupported(): boolean;
14
- export declare function getAddGlobalErrorSerializer(): ((serializer: GlobalErrorSerializer) => void) | undefined;
@@ -3,3 +3,4 @@ export * from './error-type';
3
3
  export * from './global-error-serializer';
4
4
  export * from './http-serialized-error';
5
5
  export * from './serialized-error';
6
+ export * from './dt-runtime-error-handlers';