@datadog/datadog-api-client 1.2.0 → 1.3.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 (158) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE-3rdparty.csv +1 -0
  3. package/README.md +48 -3
  4. package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
  5. package/dist/packages/datadog-api-client-common/configuration.js +1 -5
  6. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  7. package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
  8. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
  9. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +8 -0
  10. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  11. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +1 -1
  12. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
  13. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +37 -48
  14. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/index.d.ts +3 -0
  16. package/dist/packages/datadog-api-client-v1/index.js +7 -5
  17. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  18. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  19. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  20. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
  22. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
  23. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  24. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
  25. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
  26. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
  28. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
  29. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
  30. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
  31. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
  32. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
  34. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
  35. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
  36. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
  37. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -1
  38. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
  40. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
  41. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  42. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +27 -3
  43. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  44. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
  45. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
  46. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
  47. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
  48. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
  49. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
  50. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
  51. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
  52. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
  53. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
  54. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
  55. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
  56. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
  58. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
  59. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
  60. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
  61. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
  62. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  63. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
  64. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
  65. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  67. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  68. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  69. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
  70. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
  71. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
  73. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
  74. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
  76. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
  77. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  78. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
  79. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
  80. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
  81. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
  82. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
  83. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
  84. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
  85. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
  86. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  87. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +8 -0
  88. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +9 -0
  89. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  90. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
  91. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
  92. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  93. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
  94. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
  95. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
  96. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +1 -0
  97. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  98. package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
  99. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +537 -22
  100. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  101. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +0 -3
  102. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  103. package/dist/packages/datadog-api-client-v2/index.d.ts +14 -1
  104. package/dist/packages/datadog-api-client-v2/index.js +23 -3
  105. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  106. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
  107. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
  108. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
  109. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
  110. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
  111. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
  112. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +25 -2
  113. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  114. package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
  115. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
  116. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
  117. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
  118. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
  119. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
  120. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
  121. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
  122. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
  123. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
  124. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
  125. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
  126. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
  127. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
  128. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
  129. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
  130. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
  131. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
  132. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
  133. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
  134. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
  135. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
  136. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
  137. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
  139. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
  140. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
  141. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
  142. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
  143. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
  145. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
  146. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
  148. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
  149. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
  151. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
  152. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
  153. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
  154. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
  155. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
  156. package/dist/version.d.ts +1 -1
  157. package/dist/version.js +1 -1
  158. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.0 / 2022-08-31
4
+
5
+ ### Fixed
6
+ * Update Pagerduty operation `DeletePagerDutyIntegrationService` response status code by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/778
7
+ ### Added
8
+ * Add support for digest auth in synthetics tests by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/786
9
+ * Add support for RUM application endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/787
10
+ * add priority parameters for dashboard monitor summary widget by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/794
11
+ * Add `logs_pattern_stream` to `list_stream` widget source by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/797
12
+ * Add group_retention_duration and on_missing_data monitor options by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/789
13
+ * Expose CSPM aws host count in Usage Metering API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/809
14
+ * Add support for configuring zstdCompressorCallback by @skarimo in https://github.com/DataDog/datadog-api-client-typescript/pull/811
15
+ * Add estimated ingested logs attribution by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/779
16
+ * Add org region to usage summary and billable usage summary by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/804
17
+ * add compression methods to metric payloads by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/775
18
+ * Add role relationships to RoleUpdateData by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/806
19
+ * Add `ci_tests` enum to FormulaAndFunctionEventsDataSource by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/805
20
+ * Add missing options and request option to synthetics test by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/796
21
+ * Add support for global variable from multistep synthetics tests by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/765
22
+ ### Changed
23
+ * update deprecated usage attribution API docs to direct users to migra… by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/798
24
+ * [Synthetics] remove started form eventType enum by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-typescript/pull/800
25
+
26
+ ## New Contributors
27
+ * @victorien-provenzano made their first contribution in https://github.com/DataDog/datadog-api-client-typescript/pull/791
28
+
29
+ **Full Changelog**: https://github.com/DataDog/datadog-api-client-typescript/compare/v1.2.0...v1.3.0
30
+
3
31
  ## 1.2.0 / 2022-08-01
4
32
 
5
33
  ### Fixed
@@ -39,3 +39,4 @@ typedoc,Apache-2.0,Copyright (c) 2015 Sebastian Lenz Copyright (c) 2016-2021 Typ
39
39
  typescript,Apache-2.0,Copyright (c) Microsoft Corporation.
40
40
  url-parse,MIT,Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors.
41
41
  loglevel,MIT,Copyright (c) 2013 Tim Perry
42
+ zstd.ts,BSD-2-Clause,Copyright (c) [2021] [Beeno Tung (Tung Cheung Leong)]
package/README.md CHANGED
@@ -62,7 +62,7 @@ const configuration = client.createConfiguration(configurationOpts);
62
62
  This client includes access to Datadog API endpoints while they are in an unstable state and may undergo breaking changes. An extra configuration step is required to enable these endpoints:
63
63
 
64
64
  ```typescript
65
- configuration.unstableOperations["<operationName>"] = true
65
+ configuration.unstableOperations["<version>.<operationName>"] = true
66
66
  ```
67
67
 
68
68
  where <operationName> is the name of the method used to interact with that endpoint. For example: `listLogIndexes`, or `getLogsIndex`.
@@ -150,7 +150,7 @@ import { client, v2 } from "@datadog/datadog-api-client";
150
150
 
151
151
  async function main() {
152
152
  const configuration = client.createConfiguration();
153
- configuration.unstableOperations["listIncidents"] = true;
153
+ configuration.unstableOperations["v2.listIncidents"] = true;
154
154
  const apiInstance = new v2.IncidentsApi(configuration);
155
155
 
156
156
  for await (const incident of apiInstance.listIncidentsWithPagination()) {
@@ -161,9 +161,54 @@ async function main() {
161
161
  main();
162
162
  ```
163
163
 
164
+ ### Zstd compression
165
+
166
+ Zstd compression support requires users to supply their own zstd compressor callback function.
167
+ The callback should accept string arg and return compressed Buffer data.
168
+ Callback signature `(body: string) => Buffer`.
169
+ For example, using `zstd.ts` package:
170
+
171
+ ```typescript
172
+ import { compressSync } from 'zstd.ts'
173
+ import { client, v2 } from "@datadog/datadog-api-client";
174
+
175
+ async function main() {
176
+ const configurationOpts = {
177
+ zstdCompressorCallback: (body: string) => compressSync({input: Buffer.from(body, "utf8")})
178
+ }
179
+ const configuration = client.createConfiguration(configurationOpts);
180
+ const apiInstance = new v2.MetricsApi(configuration);
181
+ const params: v2.MetricsApiSubmitMetricsRequest = {
182
+ body: {
183
+ series: [
184
+ {
185
+ metric: "system.load.1",
186
+ type: 0,
187
+ points: [
188
+ {
189
+ timestamp: Math.round(new Date().getTime() / 1000),
190
+ value: 0.7,
191
+ },
192
+ ],
193
+ },
194
+ ],
195
+ },
196
+ contentEncoding: "zstd1",
197
+ };
198
+
199
+ apiInstance.submitMetrics(params).then((data: v2.IntakePayloadAccepted) => {
200
+ console.log(
201
+ "API called successfully. Returned data: " + JSON.stringify(data)
202
+ );
203
+ }).catch((error: any) => console.error(error));
204
+ }
205
+
206
+ main();
207
+ ```
208
+
164
209
  ## Documentation
165
210
 
166
- Documentation for API endpoints can be found in in [Github pages][github pages].
211
+ Documentation for API endpoints can be found in [GitHub pages][github pages].
167
212
 
168
213
  ## Contributing
169
214
 
@@ -1,4 +1,4 @@
1
- import { HttpLibrary, HttpConfiguration, RequestContext } from "./http/http";
1
+ import { HttpLibrary, HttpConfiguration, RequestContext, ZstdCompressorCallback } from "./http/http";
2
2
  import { BaseServerConfiguration } from "./servers";
3
3
  import { AuthMethods, AuthMethodsConfiguration } from "./auth";
4
4
  export interface Configuration {
@@ -49,6 +49,10 @@ export interface ConfigurationParameters {
49
49
  * Flag to enable requests tracing
50
50
  */
51
51
  debug?: boolean;
52
+ /**
53
+ * Callback method to compress string body with zstd
54
+ */
55
+ zstdCompressorCallback?: ZstdCompressorCallback;
52
56
  }
53
57
  /**
54
58
  * Configuration factory function
@@ -43,11 +43,6 @@ function createConfiguration(conf) {
43
43
  serverIndex: conf.serverIndex || 0,
44
44
  operationServerIndices: conf.operationServerIndices || {},
45
45
  unstableOperations: {
46
- "v1.getDailyCustomReports": false,
47
- "v1.getMonthlyCustomReports": false,
48
- "v1.getSpecifiedDailyCustomReports": false,
49
- "v1.getSpecifiedMonthlyCustomReports": false,
50
- "v1.getUsageAttribution": false,
51
46
  "v1.getSLOHistory": false,
52
47
  "v1.searchSLO": false,
53
48
  "v2.listEvents": false,
@@ -74,6 +69,7 @@ function createConfiguration(conf) {
74
69
  httpConfig: conf.httpConfig || {},
75
70
  debug: conf.debug,
76
71
  };
72
+ configuration.httpApi.zstdCompressorCallback = conf.zstdCompressorCallback;
77
73
  configuration.httpApi.debug = configuration.debug;
78
74
  return configuration;
79
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../packages/datadog-api-client-common/configuration.ts"],"names":[],"mappings":";;;AACA,4DAA2F;AAC3F,qCAKmB;AACnB,+BAIgB;AA+ChB;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CACjC,IAAkC;IAAlC,qBAAA,EAAA,SAAkC;IAElC,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE;QAChD,IAAM,UAAU,GAAG,iBAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,iBAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,EAAuB,CAAC,CAAC;QACzE,KAAK,IAAM,EAAE,IAAI,0BAAgB,EAAE;YACjC,0BAAgB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;SACrE;KACF;IAED,IAAM,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;IAC3C,IACE,CAAC,CAAC,YAAY,IAAI,WAAW,CAAC;QAC9B,OAAO,KAAK,SAAS;QACrB,OAAO,CAAC,GAAG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C9B,WAA4B;IAE5B,KAA6B,UAAW,EAAX,2BAAW,EAAX,yBAAW,EAAX,IAAW,EAAE;QAArC,IAAM,cAAc,oBAAA;QACvB,IAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACpD,IAAI,UAAU,EAAE;YACd,UAAU,CAAC,2BAA2B,CAAC,cAAc,CAAC,CAAC;SACxD;KACF;AACH,CAAC;AAbD,kEAaC"}
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../packages/datadog-api-client-common/configuration.ts"],"names":[],"mappings":";;;AAMA,4DAA2F;AAC3F,qCAKmB;AACnB,+BAIgB;AAmDhB;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CACjC,IAAkC;IAAlC,qBAAA,EAAA,SAAkC;IAElC,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE;QAChD,IAAM,UAAU,GAAG,iBAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,iBAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,EAAuB,CAAC,CAAC;QACzE,KAAK,IAAM,EAAE,IAAI,0BAAgB,EAAE;YACjC,0BAAgB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;SACrE;KACF;IAED,IAAM,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;IAC3C,IACE,CAAC,CAAC,YAAY,IAAI,WAAW,CAAC;QAC9B,OAAO,KAAK,SAAS;QACrB,OAAO,CAAC,GAAG,CAAC,UAAU,EACtB;QACA,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;KACpD;IACD,IACE,CAAC,CAAC,YAAY,IAAI,WAAW,CAAC;QAC9B,OAAO,KAA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C,cAAc,CAAC,CAAC;SACxD;KACF;AACH,CAAC;AAbD,kEAaC"}
@@ -132,7 +132,9 @@ export declare class ResponseContext {
132
132
  };
133
133
  getBodyAsFile(): Promise<HttpFile>;
134
134
  }
135
+ export declare type ZstdCompressorCallback = (body: string) => Buffer;
135
136
  export interface HttpLibrary {
136
137
  debug?: boolean;
138
+ zstdCompressorCallback?: ZstdCompressorCallback;
137
139
  send(request: RequestContext): Promise<ResponseContext>;
138
140
  }
@@ -1,6 +1,7 @@
1
- import { HttpLibrary, RequestContext, ResponseContext } from "./http";
1
+ import { HttpLibrary, RequestContext, ResponseContext, ZstdCompressorCallback } from "./http";
2
2
  export declare class IsomorphicFetchHttpLibrary implements HttpLibrary {
3
3
  debug: boolean;
4
+ zstdCompressorCallback: ZstdCompressorCallback | undefined;
4
5
  send(request: RequestContext): Promise<ResponseContext>;
5
6
  private logRequest;
6
7
  private logResponse;
@@ -31,6 +31,14 @@ var IsomorphicFetchHttpLibrary = /** @class */ (function () {
31
31
  else if (headers["Content-Encoding"] == "deflate") {
32
32
  body = (0, buffer_from_1.default)(pako_1.default.deflate(body).buffer);
33
33
  }
34
+ else if (headers["Content-Encoding"] == "zstd1") {
35
+ if (this.zstdCompressorCallback) {
36
+ body = this.zstdCompressorCallback(body);
37
+ }
38
+ else {
39
+ throw new Error("zstdCompressorCallback method missing");
40
+ }
41
+ }
34
42
  }
35
43
  if (!headers["Accept-Encoding"]) {
36
44
  if (compress) {
@@ -1 +1 @@
1
- {"version":3,"file":"isomorphic-fetch.js","sourceRoot":"","sources":["../../../../packages/datadog-api-client-common/http/isomorphic-fetch.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAsE;AACtE,4DAAgC;AAChC,8CAAwB;AACxB,4DAAqC;AAErC;IAAA;QACS,UAAK,GAAG,KAAK,CAAC;IA4GvB,CAAC;IA1GQ,yCAAI,GAAX,UAAY,OAAuB;QAAnC,iBAqDC;QApDC,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IA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AAM,OAAI,EACvB,qBAAc,WAAW,OAAI,EAC7B,sBAAe,QAAQ,OAAI,EAC3B,kBAAW,IAAI,UAAO,CACvB,CAAC;IACJ,CAAC;IAEO,gDAAW,GAAnB,UAAoB,QAAyB;QAC3C,IAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;QAC/C,IAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAC/D,KAAK,EACL,MAAM,CACP,CAAC;QACF,IAAM,IAAI,GAAG,QAAQ,CAAC,IAAI;YACxB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;YAC/D,CAAC,CAAC,EAAE,CAAC;QAEP,OAAO,CAAC,KAAK,CACX,eAAe,EACf,oBAAa,cAAc,OAAI,EAC/B,qBAAc,OAAO,OAAI,EACzB,kBAAW,IAAI,UAAO,CACvB,CAAC;IACJ,CAAC;IACH,iCAAC;AAAD,CAAC,AApHD,IAoHC;AApHY,gEAA0B"}
@@ -258,7 +258,7 @@ var PagerDutyIntegrationApiResponseProcessor = /** @class */ (function () {
258
258
  switch (_s.label) {
259
259
  case 0:
260
260
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
261
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
261
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
262
262
  return [2 /*return*/];
263
263
  }
264
264
  if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
@@ -990,6 +990,8 @@ export declare class UsageMeteringApi {
990
990
  constructor(configuration: Configuration, requestFactory?: UsageMeteringApiRequestFactory, responseProcessor?: UsageMeteringApiResponseProcessor);
991
991
  /**
992
992
  * Get daily custom reports.
993
+ * **Note:** This endpoint will be fully deprecated on December 1, 2022.
994
+ * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
993
995
  * @param param The request object
994
996
  */
995
997
  getDailyCustomReports(param?: UsageMeteringApiGetDailyCustomReportsRequest, options?: Configuration): Promise<UsageCustomReportsResponse>;
@@ -1014,18 +1016,20 @@ export declare class UsageMeteringApi {
1014
1016
  getHourlyUsageAttribution(param: UsageMeteringApiGetHourlyUsageAttributionRequest, options?: Configuration): Promise<HourlyUsageAttributionResponse>;
1015
1017
  /**
1016
1018
  * Get hourly usage for incident management.
1017
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1019
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1018
1020
  * @param param The request object
1019
1021
  */
1020
1022
  getIncidentManagement(param: UsageMeteringApiGetIncidentManagementRequest, options?: Configuration): Promise<UsageIncidentManagementResponse>;
1021
1023
  /**
1022
1024
  * Get hourly usage for ingested spans.
1023
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1025
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1024
1026
  * @param param The request object
1025
1027
  */
1026
1028
  getIngestedSpans(param: UsageMeteringApiGetIngestedSpansRequest, options?: Configuration): Promise<UsageIngestedSpansResponse>;
1027
1029
  /**
1028
1030
  * Get monthly custom reports.
1031
+ * **Note:** This endpoint will be fully deprecated on December 1, 2022.
1032
+ * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
1029
1033
  * @param param The request object
1030
1034
  */
1031
1035
  getMonthlyCustomReports(param?: UsageMeteringApiGetMonthlyCustomReportsRequest, options?: Configuration): Promise<UsageCustomReportsResponse>;
@@ -1050,28 +1054,34 @@ export declare class UsageMeteringApi {
1050
1054
  getMonthlyUsageAttribution(param: UsageMeteringApiGetMonthlyUsageAttributionRequest, options?: Configuration): Promise<MonthlyUsageAttributionResponse>;
1051
1055
  /**
1052
1056
  * Get specified daily custom reports.
1057
+ * **Note:** This endpoint will be fully deprecated on December 1, 2022.
1058
+ * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
1053
1059
  * @param param The request object
1054
1060
  */
1055
1061
  getSpecifiedDailyCustomReports(param: UsageMeteringApiGetSpecifiedDailyCustomReportsRequest, options?: Configuration): Promise<UsageSpecifiedCustomReportsResponse>;
1056
1062
  /**
1057
1063
  * Get specified monthly custom reports.
1064
+ * **Note:** This endpoint will be fully deprecated on December 1, 2022.
1065
+ * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
1058
1066
  * @param param The request object
1059
1067
  */
1060
1068
  getSpecifiedMonthlyCustomReports(param: UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest, options?: Configuration): Promise<UsageSpecifiedCustomReportsResponse>;
1061
1069
  /**
1062
1070
  * Get hourly usage for analyzed logs (Security Monitoring).
1063
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1071
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1064
1072
  * @param param The request object
1065
1073
  */
1066
1074
  getUsageAnalyzedLogs(param: UsageMeteringApiGetUsageAnalyzedLogsRequest, options?: Configuration): Promise<UsageAnalyzedLogsResponse>;
1067
1075
  /**
1068
1076
  * Get usage attribution.
1077
+ * **Note:** This endpoint will be fully deprecated on December 1, 2022.
1078
+ * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
1069
1079
  * @param param The request object
1070
1080
  */
1071
1081
  getUsageAttribution(param: UsageMeteringApiGetUsageAttributionRequest, options?: Configuration): Promise<UsageAttributionResponse>;
1072
1082
  /**
1073
1083
  * Get hourly usage for audit logs.
1074
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1084
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1075
1085
  * @param param The request object
1076
1086
  */
1077
1087
  getUsageAuditLogs(param: UsageMeteringApiGetUsageAuditLogsRequest, options?: Configuration): Promise<UsageAuditLogsResponse>;
@@ -1082,61 +1092,61 @@ export declare class UsageMeteringApi {
1082
1092
  getUsageBillableSummary(param?: UsageMeteringApiGetUsageBillableSummaryRequest, options?: Configuration): Promise<UsageBillableSummaryResponse>;
1083
1093
  /**
1084
1094
  * Get hourly usage for CI visibility (tests, pipeline, and spans).
1085
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1095
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1086
1096
  * @param param The request object
1087
1097
  */
1088
1098
  getUsageCIApp(param: UsageMeteringApiGetUsageCIAppRequest, options?: Configuration): Promise<UsageCIVisibilityResponse>;
1089
1099
  /**
1090
1100
  * Get hourly usage for cloud security posture management (CSPM).
1091
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1101
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1092
1102
  * @param param The request object
1093
1103
  */
1094
1104
  getUsageCloudSecurityPostureManagement(param: UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest, options?: Configuration): Promise<UsageCloudSecurityPostureManagementResponse>;
1095
1105
  /**
1096
1106
  * Get hourly usage for cloud workload security.
1097
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1107
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1098
1108
  * @param param The request object
1099
1109
  */
1100
1110
  getUsageCWS(param: UsageMeteringApiGetUsageCWSRequest, options?: Configuration): Promise<UsageCWSResponse>;
1101
1111
  /**
1102
1112
  * Get hourly usage for database monitoring
1103
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1113
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1104
1114
  * @param param The request object
1105
1115
  */
1106
1116
  getUsageDBM(param: UsageMeteringApiGetUsageDBMRequest, options?: Configuration): Promise<UsageDBMResponse>;
1107
1117
  /**
1108
1118
  * Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/).
1109
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1119
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1110
1120
  * @param param The request object
1111
1121
  */
1112
1122
  getUsageFargate(param: UsageMeteringApiGetUsageFargateRequest, options?: Configuration): Promise<UsageFargateResponse>;
1113
1123
  /**
1114
1124
  * Get hourly usage for hosts and containers.
1115
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1125
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1116
1126
  * @param param The request object
1117
1127
  */
1118
1128
  getUsageHosts(param: UsageMeteringApiGetUsageHostsRequest, options?: Configuration): Promise<UsageHostsResponse>;
1119
1129
  /**
1120
1130
  * Get hourly usage for indexed spans.
1121
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1131
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1122
1132
  * @param param The request object
1123
1133
  */
1124
1134
  getUsageIndexedSpans(param: UsageMeteringApiGetUsageIndexedSpansRequest, options?: Configuration): Promise<UsageIndexedSpansResponse>;
1125
1135
  /**
1126
1136
  * Get hourly usage for IoT.
1127
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1137
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1128
1138
  * @param param The request object
1129
1139
  */
1130
1140
  getUsageInternetOfThings(param: UsageMeteringApiGetUsageInternetOfThingsRequest, options?: Configuration): Promise<UsageIoTResponse>;
1131
1141
  /**
1132
1142
  * Get hourly usage for lambda.
1133
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1143
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1134
1144
  * @param param The request object
1135
1145
  */
1136
1146
  getUsageLambda(param: UsageMeteringApiGetUsageLambdaRequest, options?: Configuration): Promise<UsageLambdaResponse>;
1137
1147
  /**
1138
1148
  * Get hourly usage for logs.
1139
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1149
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1140
1150
  * @param param The request object
1141
1151
  */
1142
1152
  getUsageLogs(param: UsageMeteringApiGetUsageLogsRequest, options?: Configuration): Promise<UsageLogsResponse>;
@@ -1147,55 +1157,55 @@ export declare class UsageMeteringApi {
1147
1157
  getUsageLogsByIndex(param: UsageMeteringApiGetUsageLogsByIndexRequest, options?: Configuration): Promise<UsageLogsByIndexResponse>;
1148
1158
  /**
1149
1159
  * Get hourly usage for indexed logs by retention period.
1150
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1160
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1151
1161
  * @param param The request object
1152
1162
  */
1153
1163
  getUsageLogsByRetention(param: UsageMeteringApiGetUsageLogsByRetentionRequest, options?: Configuration): Promise<UsageLogsByRetentionResponse>;
1154
1164
  /**
1155
1165
  * Get hourly usage for network flows.
1156
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1166
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1157
1167
  * @param param The request object
1158
1168
  */
1159
1169
  getUsageNetworkFlows(param: UsageMeteringApiGetUsageNetworkFlowsRequest, options?: Configuration): Promise<UsageNetworkFlowsResponse>;
1160
1170
  /**
1161
1171
  * Get hourly usage for network hosts.
1162
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1172
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1163
1173
  * @param param The request object
1164
1174
  */
1165
1175
  getUsageNetworkHosts(param: UsageMeteringApiGetUsageNetworkHostsRequest, options?: Configuration): Promise<UsageNetworkHostsResponse>;
1166
1176
  /**
1167
1177
  * Get hourly usage for online archive.
1168
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1178
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1169
1179
  * @param param The request object
1170
1180
  */
1171
1181
  getUsageOnlineArchive(param: UsageMeteringApiGetUsageOnlineArchiveRequest, options?: Configuration): Promise<UsageOnlineArchiveResponse>;
1172
1182
  /**
1173
1183
  * Get hourly usage for profiled hosts.
1174
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1184
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1175
1185
  * @param param The request object
1176
1186
  */
1177
1187
  getUsageProfiling(param: UsageMeteringApiGetUsageProfilingRequest, options?: Configuration): Promise<UsageProfilingResponse>;
1178
1188
  /**
1179
1189
  * Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions.
1180
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1190
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1181
1191
  * @param param The request object
1182
1192
  */
1183
1193
  getUsageRumSessions(param: UsageMeteringApiGetUsageRumSessionsRequest, options?: Configuration): Promise<UsageRumSessionsResponse>;
1184
1194
  /**
1185
1195
  * Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units.
1186
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1196
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1187
1197
  * @param param The request object
1188
1198
  */
1189
1199
  getUsageRumUnits(param: UsageMeteringApiGetUsageRumUnitsRequest, options?: Configuration): Promise<UsageRumUnitsResponse>;
1190
1200
  /**
1191
1201
  * Get hourly usage for sensitive data scanner.
1192
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1202
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1193
1203
  * @param param The request object
1194
1204
  */
1195
1205
  getUsageSDS(param: UsageMeteringApiGetUsageSDSRequest, options?: Configuration): Promise<UsageSDSResponse>;
1196
1206
  /**
1197
1207
  * Get hourly usage for SNMP devices.
1198
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1208
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1199
1209
  * @param param The request object
1200
1210
  */
1201
1211
  getUsageSNMP(param: UsageMeteringApiGetUsageSNMPRequest, options?: Configuration): Promise<UsageSNMPResponse>;
@@ -1206,25 +1216,25 @@ export declare class UsageMeteringApi {
1206
1216
  getUsageSummary(param: UsageMeteringApiGetUsageSummaryRequest, options?: Configuration): Promise<UsageSummaryResponse>;
1207
1217
  /**
1208
1218
  * Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/).
1209
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1219
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1210
1220
  * @param param The request object
1211
1221
  */
1212
1222
  getUsageSynthetics(param: UsageMeteringApiGetUsageSyntheticsRequest, options?: Configuration): Promise<UsageSyntheticsResponse>;
1213
1223
  /**
1214
1224
  * Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/).
1215
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1225
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1216
1226
  * @param param The request object
1217
1227
  */
1218
1228
  getUsageSyntheticsAPI(param: UsageMeteringApiGetUsageSyntheticsAPIRequest, options?: Configuration): Promise<UsageSyntheticsAPIResponse>;
1219
1229
  /**
1220
1230
  * Get hourly usage for synthetics browser checks.
1221
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1231
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1222
1232
  * @param param The request object
1223
1233
  */
1224
1234
  getUsageSyntheticsBrowser(param: UsageMeteringApiGetUsageSyntheticsBrowserRequest, options?: Configuration): Promise<UsageSyntheticsBrowserResponse>;
1225
1235
  /**
1226
1236
  * Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/).
1227
- * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1237
+ * **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1228
1238
  * @param param The request object
1229
1239
  */
1230
1240
  getUsageTimeseries(param: UsageMeteringApiGetUsageTimeseriesRequest, options?: Configuration): Promise<UsageTimeseriesResponse>;