@datadog/datadog-api-client 1.2.0 → 1.4.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 (462) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE-3rdparty.csv +1 -0
  3. package/README.md +120 -3
  4. package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
  5. package/dist/packages/datadog-api-client-common/configuration.js +3 -6
  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 +11 -5
  10. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  11. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  12. package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
  13. package/dist/packages/datadog-api-client-common/util.js +1 -32
  14. package/dist/packages/datadog-api-client-common/util.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
  16. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
  17. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
  18. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
  19. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
  20. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
  22. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
  24. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
  25. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
  26. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
  28. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
  29. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
  30. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
  31. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
  32. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
  34. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
  35. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
  36. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
  37. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
  38. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
  40. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
  41. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
  42. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
  43. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
  44. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
  45. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
  46. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
  47. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
  48. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
  49. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
  50. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
  51. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
  52. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
  54. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
  56. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
  58. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
  59. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
  60. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
  61. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
  62. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
  63. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
  64. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
  65. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
  67. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
  69. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
  70. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
  71. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
  73. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
  74. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
  76. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
  77. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
  78. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
  79. package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
  80. package/dist/packages/datadog-api-client-v1/index.js +37 -7
  81. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  82. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
  83. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
  84. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
  85. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
  86. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
  87. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
  88. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
  89. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
  90. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
  91. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  92. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  93. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  94. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
  95. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
  96. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  97. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
  98. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
  99. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
  100. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
  101. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
  102. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  103. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
  104. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
  105. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
  106. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
  107. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
  108. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  109. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
  110. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
  111. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
  112. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
  113. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
  114. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  115. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
  116. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
  117. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  118. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
  119. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  120. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
  121. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
  122. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
  123. package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
  124. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
  125. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
  126. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
  127. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
  128. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
  129. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
  130. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
  131. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
  132. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
  133. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
  134. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
  135. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
  136. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
  137. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
  139. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
  140. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
  141. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
  142. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
  143. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
  145. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
  146. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
  148. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
  149. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
  151. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
  152. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
  153. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
  154. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
  155. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
  156. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
  157. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
  158. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
  159. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
  160. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
  161. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
  162. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
  163. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
  164. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
  165. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
  166. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
  167. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
  168. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
  169. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
  170. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
  171. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
  172. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
  173. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
  174. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
  175. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
  176. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
  177. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
  178. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
  179. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
  180. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
  181. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
  182. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
  183. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
  184. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
  185. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
  186. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  187. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
  188. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
  189. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
  190. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  191. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  192. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  193. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
  194. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
  195. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
  196. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
  197. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
  198. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
  199. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
  200. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
  201. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
  202. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
  203. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
  204. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
  205. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
  206. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
  207. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
  209. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
  210. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
  211. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
  212. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
  213. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  214. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
  215. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
  216. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  217. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
  218. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
  219. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  220. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
  221. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
  222. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
  223. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
  224. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
  225. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
  226. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
  227. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
  228. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
  229. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
  230. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
  231. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  232. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +12 -0
  233. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -0
  234. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  235. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
  236. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
  237. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  238. package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
  239. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
  240. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
  241. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
  242. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
  243. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
  244. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
  245. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
  246. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
  247. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
  248. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
  249. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
  250. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
  251. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  252. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
  253. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
  254. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
  255. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
  256. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
  257. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
  258. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  259. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
  260. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
  261. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
  262. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
  263. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
  264. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
  265. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
  266. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
  267. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
  268. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
  269. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
  270. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
  271. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
  272. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
  273. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
  274. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
  275. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
  276. package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
  277. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
  278. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  279. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
  280. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
  281. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
  282. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
  283. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  284. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
  285. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
  286. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
  287. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
  288. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  289. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
  290. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
  291. package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
  292. package/dist/packages/datadog-api-client-v2/index.js +69 -15
  293. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  294. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
  295. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
  296. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
  297. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
  298. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
  299. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
  300. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
  301. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
  302. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
  303. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
  304. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
  305. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
  306. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
  307. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
  308. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
  309. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
  310. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
  311. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
  312. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
  313. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
  314. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
  315. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
  316. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
  317. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
  318. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
  319. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
  320. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
  321. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
  322. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
  323. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
  324. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
  325. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
  326. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
  327. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
  328. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
  329. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
  330. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
  331. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
  332. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
  333. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
  334. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
  335. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
  336. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
  337. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
  338. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
  339. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
  340. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
  341. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
  342. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
  343. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
  344. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
  345. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
  346. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
  347. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
  348. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
  349. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
  350. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
  351. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
  352. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
  353. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
  354. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
  355. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
  356. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
  357. package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
  358. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
  359. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
  360. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
  361. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
  362. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
  363. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
  364. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
  365. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
  366. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
  367. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
  368. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
  369. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
  370. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
  371. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
  372. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
  373. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
  374. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
  375. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
  376. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
  377. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  378. package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
  379. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
  380. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
  381. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
  382. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
  383. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
  384. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
  385. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
  386. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
  387. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
  388. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
  389. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
  390. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
  391. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
  392. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
  393. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
  394. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
  395. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
  396. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
  397. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
  398. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
  399. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
  400. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
  401. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
  402. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
  403. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
  404. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
  405. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
  406. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
  407. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
  408. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
  409. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
  410. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
  411. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
  412. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
  413. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
  414. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
  415. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
  416. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
  417. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
  418. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
  419. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
  420. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
  421. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
  422. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
  423. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
  424. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
  425. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
  426. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
  427. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
  428. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
  429. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
  430. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
  431. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
  432. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
  433. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
  434. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
  435. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
  436. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
  437. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
  438. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
  439. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
  440. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
  441. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
  442. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
  443. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
  444. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
  445. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
  446. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
  447. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
  448. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
  449. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
  450. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
  451. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
  452. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
  453. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
  454. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
  455. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
  456. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
  457. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
  458. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
  459. package/dist/version.d.ts +1 -1
  460. package/dist/version.js +1 -1
  461. package/package.json +3 -2
  462. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
@@ -55,9 +55,9 @@ exports.MetricsApi = exports.MetricsApiResponseProcessor = exports.MetricsApiReq
55
55
  var baseapi_1 = require("../../datadog-api-client-common/baseapi");
56
56
  var configuration_1 = require("../../datadog-api-client-common/configuration");
57
57
  var http_1 = require("../../datadog-api-client-common/http/http");
58
+ var logger_1 = require("../../../logger");
58
59
  var ObjectSerializer_1 = require("../models/ObjectSerializer");
59
60
  var exception_1 = require("../../datadog-api-client-common/exception");
60
- var util_1 = require("../../datadog-api-client-common/util");
61
61
  var MetricsApiRequestFactory = /** @class */ (function (_super) {
62
62
  __extends(MetricsApiRequestFactory, _super);
63
63
  function MetricsApiRequestFactory() {
@@ -212,6 +212,33 @@ var MetricsApiRequestFactory = /** @class */ (function (_super) {
212
212
  });
213
213
  });
214
214
  };
215
+ MetricsApiRequestFactory.prototype.listActiveMetricConfigurations = function (metricName, windowSeconds, _options) {
216
+ return __awaiter(this, void 0, void 0, function () {
217
+ var _config, localVarPath, requestContext;
218
+ return __generator(this, function (_a) {
219
+ _config = _options || this.configuration;
220
+ // verify required parameter 'metricName' is not null or undefined
221
+ if (metricName === null || metricName === undefined) {
222
+ throw new baseapi_1.RequiredError("Required parameter metricName was null or undefined when calling listActiveMetricConfigurations.");
223
+ }
224
+ localVarPath = "/api/v2/metrics/{metric_name}/active-configurations".replace("{" + "metric_name" + "}", encodeURIComponent(String(metricName)));
225
+ requestContext = (0, configuration_1.getServer)(_config, "v2.MetricsApi.listActiveMetricConfigurations").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
226
+ requestContext.setHeaderParam("Accept", "application/json");
227
+ requestContext.setHttpConfig(_config.httpConfig);
228
+ // Query Params
229
+ if (windowSeconds !== undefined) {
230
+ requestContext.setQueryParam("window[seconds]", ObjectSerializer_1.ObjectSerializer.serialize(windowSeconds, "number", "int64"));
231
+ }
232
+ // Apply auth methods
233
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
234
+ "AuthZ",
235
+ "apiKeyAuth",
236
+ "appKeyAuth",
237
+ ]);
238
+ return [2 /*return*/, requestContext];
239
+ });
240
+ });
241
+ };
215
242
  MetricsApiRequestFactory.prototype.listTagConfigurationByName = function (metricName, _options) {
216
243
  return __awaiter(this, void 0, void 0, function () {
217
244
  var _config, localVarPath, requestContext;
@@ -235,7 +262,7 @@ var MetricsApiRequestFactory = /** @class */ (function (_super) {
235
262
  });
236
263
  });
237
264
  };
238
- MetricsApiRequestFactory.prototype.listTagConfigurations = function (filterConfigured, filterTagsConfigured, filterMetricType, filterIncludePercentiles, filterTags, windowSeconds, _options) {
265
+ MetricsApiRequestFactory.prototype.listTagConfigurations = function (filterConfigured, filterTagsConfigured, filterMetricType, filterIncludePercentiles, filterQueried, filterTags, windowSeconds, _options) {
239
266
  return __awaiter(this, void 0, void 0, function () {
240
267
  var _config, localVarPath, requestContext;
241
268
  return __generator(this, function (_a) {
@@ -257,6 +284,9 @@ var MetricsApiRequestFactory = /** @class */ (function (_super) {
257
284
  if (filterIncludePercentiles !== undefined) {
258
285
  requestContext.setQueryParam("filter[include_percentiles]", ObjectSerializer_1.ObjectSerializer.serialize(filterIncludePercentiles, "boolean", ""));
259
286
  }
287
+ if (filterQueried !== undefined) {
288
+ requestContext.setQueryParam("filter[queried]", ObjectSerializer_1.ObjectSerializer.serialize(filterQueried, "boolean", ""));
289
+ }
260
290
  if (filterTags !== undefined) {
261
291
  requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""));
262
292
  }
@@ -395,73 +425,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
395
425
  */
396
426
  MetricsApiResponseProcessor.prototype.createBulkTagsMetricsConfiguration = function (response) {
397
427
  return __awaiter(this, void 0, void 0, function () {
398
- var contentType, body_1, _a, _b, _c, _d, body_2, _e, _f, _g, _h, body_3, _j, _k, _l, _m, body_4, _o, _p, _q, _r, body_5, _s, _t, _u, _v, body_6, _w, _x, _y, _z, body;
399
- return __generator(this, function (_0) {
400
- switch (_0.label) {
428
+ var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
429
+ return __generator(this, function (_l) {
430
+ switch (_l.label) {
401
431
  case 0:
402
432
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
403
- if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3 /*break*/, 2];
433
+ if (!(response.httpStatusCode == 202)) return [3 /*break*/, 2];
404
434
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
405
435
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
406
436
  return [4 /*yield*/, response.body.text()];
407
437
  case 1:
408
- body_1 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
409
- "MetricBulkTagConfigResponse",
410
- ""]);
438
+ body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
439
+ "MetricBulkTagConfigResponse"]);
411
440
  return [2 /*return*/, body_1];
412
441
  case 2:
413
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
414
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
415
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
442
+ if (!(response.httpStatusCode == 400 ||
443
+ response.httpStatusCode == 403 ||
444
+ response.httpStatusCode == 404 ||
445
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
446
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
416
447
  return [4 /*yield*/, response.body.text()];
417
448
  case 3:
418
- body_2 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
419
- "APIErrorResponse",
420
- ""]);
421
- throw new exception_1.ApiException(400, body_2);
449
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
450
+ try {
451
+ body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
452
+ throw new exception_1.ApiException(response.httpStatusCode, body_2);
453
+ }
454
+ catch (error) {
455
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
456
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
457
+ }
458
+ _l.label = 4;
422
459
  case 4:
423
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
424
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
425
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
460
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
461
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
462
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
426
463
  return [4 /*yield*/, response.body.text()];
427
464
  case 5:
428
- body_3 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
429
- "APIErrorResponse",
430
- ""]);
431
- throw new exception_1.ApiException(403, body_3);
432
- case 6:
433
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
434
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
435
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
436
- return [4 /*yield*/, response.body.text()];
437
- case 7:
438
- body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
439
- "APIErrorResponse",
440
- ""]);
441
- throw new exception_1.ApiException(404, body_4);
442
- case 8:
443
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
444
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
445
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
446
- return [4 /*yield*/, response.body.text()];
447
- case 9:
448
- body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
449
- "APIErrorResponse",
450
- ""]);
451
- throw new exception_1.ApiException(429, body_5);
452
- case 10:
453
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
454
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
455
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
456
- return [4 /*yield*/, response.body.text()];
457
- case 11:
458
- body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
465
+ body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
459
466
  "MetricBulkTagConfigResponse",
460
467
  ""]);
461
- return [2 /*return*/, body_6];
462
- case 12: return [4 /*yield*/, response.body.text()];
463
- case 13:
464
- body = (_0.sent()) || "";
468
+ return [2 /*return*/, body_3];
469
+ case 6: return [4 /*yield*/, response.body.text()];
470
+ case 7:
471
+ body = (_l.sent()) || "";
465
472
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
466
473
  }
467
474
  });
@@ -476,73 +483,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
476
483
  */
477
484
  MetricsApiResponseProcessor.prototype.createTagConfiguration = function (response) {
478
485
  return __awaiter(this, void 0, void 0, function () {
479
- var contentType, body_7, _a, _b, _c, _d, body_8, _e, _f, _g, _h, body_9, _j, _k, _l, _m, body_10, _o, _p, _q, _r, body_11, _s, _t, _u, _v, body_12, _w, _x, _y, _z, body;
480
- return __generator(this, function (_0) {
481
- switch (_0.label) {
486
+ var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
487
+ return __generator(this, function (_l) {
488
+ switch (_l.label) {
482
489
  case 0:
483
490
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
484
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3 /*break*/, 2];
491
+ if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
485
492
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
486
493
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
487
494
  return [4 /*yield*/, response.body.text()];
488
495
  case 1:
489
- body_7 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
490
- "MetricTagConfigurationResponse",
491
- ""]);
492
- return [2 /*return*/, body_7];
496
+ body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
497
+ "MetricTagConfigurationResponse"]);
498
+ return [2 /*return*/, body_4];
493
499
  case 2:
494
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
495
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
496
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
500
+ if (!(response.httpStatusCode == 400 ||
501
+ response.httpStatusCode == 403 ||
502
+ response.httpStatusCode == 409 ||
503
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
504
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
497
505
  return [4 /*yield*/, response.body.text()];
498
506
  case 3:
499
- body_8 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
500
- "APIErrorResponse",
501
- ""]);
502
- throw new exception_1.ApiException(400, body_8);
507
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
508
+ try {
509
+ body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
510
+ throw new exception_1.ApiException(response.httpStatusCode, body_5);
511
+ }
512
+ catch (error) {
513
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
514
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
515
+ }
516
+ _l.label = 4;
503
517
  case 4:
504
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
505
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
506
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
518
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
519
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
520
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
507
521
  return [4 /*yield*/, response.body.text()];
508
522
  case 5:
509
- body_9 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
510
- "APIErrorResponse",
511
- ""]);
512
- throw new exception_1.ApiException(403, body_9);
513
- case 6:
514
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
515
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
516
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
517
- return [4 /*yield*/, response.body.text()];
518
- case 7:
519
- body_10 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
520
- "APIErrorResponse",
521
- ""]);
522
- throw new exception_1.ApiException(409, body_10);
523
- case 8:
524
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
525
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
526
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
527
- return [4 /*yield*/, response.body.text()];
528
- case 9:
529
- body_11 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
530
- "APIErrorResponse",
531
- ""]);
532
- throw new exception_1.ApiException(429, body_11);
533
- case 10:
534
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
535
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
536
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
537
- return [4 /*yield*/, response.body.text()];
538
- case 11:
539
- body_12 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
523
+ body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
540
524
  "MetricTagConfigurationResponse",
541
525
  ""]);
542
- return [2 /*return*/, body_12];
543
- case 12: return [4 /*yield*/, response.body.text()];
544
- case 13:
545
- body = (_0.sent()) || "";
526
+ return [2 /*return*/, body_6];
527
+ case 6: return [4 /*yield*/, response.body.text()];
528
+ case 7:
529
+ body = (_l.sent()) || "";
546
530
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
547
531
  }
548
532
  });
@@ -557,73 +541,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
557
541
  */
558
542
  MetricsApiResponseProcessor.prototype.deleteBulkTagsMetricsConfiguration = function (response) {
559
543
  return __awaiter(this, void 0, void 0, function () {
560
- var contentType, body_13, _a, _b, _c, _d, body_14, _e, _f, _g, _h, body_15, _j, _k, _l, _m, body_16, _o, _p, _q, _r, body_17, _s, _t, _u, _v, body_18, _w, _x, _y, _z, body;
561
- return __generator(this, function (_0) {
562
- switch (_0.label) {
544
+ var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
545
+ return __generator(this, function (_l) {
546
+ switch (_l.label) {
563
547
  case 0:
564
548
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
565
- if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3 /*break*/, 2];
549
+ if (!(response.httpStatusCode == 202)) return [3 /*break*/, 2];
566
550
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
567
551
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
568
552
  return [4 /*yield*/, response.body.text()];
569
553
  case 1:
570
- body_13 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
571
- "MetricBulkTagConfigResponse",
572
- ""]);
573
- return [2 /*return*/, body_13];
554
+ body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
555
+ "MetricBulkTagConfigResponse"]);
556
+ return [2 /*return*/, body_7];
574
557
  case 2:
575
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
576
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
577
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
558
+ if (!(response.httpStatusCode == 400 ||
559
+ response.httpStatusCode == 403 ||
560
+ response.httpStatusCode == 404 ||
561
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
562
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
578
563
  return [4 /*yield*/, response.body.text()];
579
564
  case 3:
580
- body_14 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
581
- "APIErrorResponse",
582
- ""]);
583
- throw new exception_1.ApiException(400, body_14);
565
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
566
+ try {
567
+ body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
568
+ throw new exception_1.ApiException(response.httpStatusCode, body_8);
569
+ }
570
+ catch (error) {
571
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
572
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
573
+ }
574
+ _l.label = 4;
584
575
  case 4:
585
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
586
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
587
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
576
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
577
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
578
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
588
579
  return [4 /*yield*/, response.body.text()];
589
580
  case 5:
590
- body_15 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
591
- "APIErrorResponse",
592
- ""]);
593
- throw new exception_1.ApiException(403, body_15);
594
- case 6:
595
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
596
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
597
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
598
- return [4 /*yield*/, response.body.text()];
599
- case 7:
600
- body_16 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
601
- "APIErrorResponse",
602
- ""]);
603
- throw new exception_1.ApiException(404, body_16);
604
- case 8:
605
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
606
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
607
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
608
- return [4 /*yield*/, response.body.text()];
609
- case 9:
610
- body_17 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
611
- "APIErrorResponse",
612
- ""]);
613
- throw new exception_1.ApiException(429, body_17);
614
- case 10:
615
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
616
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
617
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
618
- return [4 /*yield*/, response.body.text()];
619
- case 11:
620
- body_18 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
581
+ body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
621
582
  "MetricBulkTagConfigResponse",
622
583
  ""]);
623
- return [2 /*return*/, body_18];
624
- case 12: return [4 /*yield*/, response.body.text()];
625
- case 13:
626
- body = (_0.sent()) || "";
584
+ return [2 /*return*/, body_9];
585
+ case 6: return [4 /*yield*/, response.body.text()];
586
+ case 7:
587
+ body = (_l.sent()) || "";
627
588
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
628
589
  }
629
590
  });
@@ -638,56 +599,43 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
638
599
  */
639
600
  MetricsApiResponseProcessor.prototype.deleteTagConfiguration = function (response) {
640
601
  return __awaiter(this, void 0, void 0, function () {
641
- var contentType, body_19, _a, _b, _c, _d, body_20, _e, _f, _g, _h, body_21, _j, _k, _l, _m, body_22, _o, _p, _q, _r, body;
642
- return __generator(this, function (_s) {
643
- switch (_s.label) {
602
+ var contentType, bodyText, _a, _b, body_10, body_11, _c, _d, _e, _f, body;
603
+ return __generator(this, function (_g) {
604
+ switch (_g.label) {
644
605
  case 0:
645
606
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
646
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
607
+ if (response.httpStatusCode == 204) {
647
608
  return [2 /*return*/];
648
609
  }
649
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
650
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
651
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
610
+ if (!(response.httpStatusCode == 403 ||
611
+ response.httpStatusCode == 404 ||
612
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
613
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
652
614
  return [4 /*yield*/, response.body.text()];
653
615
  case 1:
654
- body_19 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
655
- "APIErrorResponse",
656
- ""]);
657
- throw new exception_1.ApiException(403, body_19);
616
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
617
+ try {
618
+ body_10 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
619
+ throw new exception_1.ApiException(response.httpStatusCode, body_10);
620
+ }
621
+ catch (error) {
622
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
623
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
624
+ }
625
+ _g.label = 2;
658
626
  case 2:
659
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
660
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
661
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
627
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
628
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
629
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
662
630
  return [4 /*yield*/, response.body.text()];
663
631
  case 3:
664
- body_20 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
665
- "APIErrorResponse",
666
- ""]);
667
- throw new exception_1.ApiException(404, body_20);
668
- case 4:
669
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
670
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
671
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
672
- return [4 /*yield*/, response.body.text()];
673
- case 5:
674
- body_21 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
675
- "APIErrorResponse",
676
- ""]);
677
- throw new exception_1.ApiException(429, body_21);
678
- case 6:
679
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
680
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
681
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
682
- return [4 /*yield*/, response.body.text()];
683
- case 7:
684
- body_22 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
632
+ body_11 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
685
633
  "void",
686
634
  ""]);
687
- return [2 /*return*/, body_22];
688
- case 8: return [4 /*yield*/, response.body.text()];
689
- case 9:
690
- body = (_s.sent()) || "";
635
+ return [2 /*return*/, body_11];
636
+ case 4: return [4 /*yield*/, response.body.text()];
637
+ case 5:
638
+ body = (_g.sent()) || "";
691
639
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
692
640
  }
693
641
  });
@@ -702,73 +650,108 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
702
650
  */
703
651
  MetricsApiResponseProcessor.prototype.estimateMetricsOutputSeries = function (response) {
704
652
  return __awaiter(this, void 0, void 0, function () {
705
- var contentType, body_23, _a, _b, _c, _d, body_24, _e, _f, _g, _h, body_25, _j, _k, _l, _m, body_26, _o, _p, _q, _r, body_27, _s, _t, _u, _v, body_28, _w, _x, _y, _z, body;
706
- return __generator(this, function (_0) {
707
- switch (_0.label) {
653
+ var contentType, body_12, _a, _b, _c, _d, bodyText, _e, _f, body_13, body_14, _g, _h, _j, _k, body;
654
+ return __generator(this, function (_l) {
655
+ switch (_l.label) {
708
656
  case 0:
709
657
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
710
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
658
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
711
659
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
712
660
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
713
661
  return [4 /*yield*/, response.body.text()];
714
662
  case 1:
715
- body_23 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
716
- "MetricEstimateResponse",
717
- ""]);
718
- return [2 /*return*/, body_23];
663
+ body_12 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
664
+ "MetricEstimateResponse"]);
665
+ return [2 /*return*/, body_12];
719
666
  case 2:
720
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
721
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
722
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
667
+ if (!(response.httpStatusCode == 400 ||
668
+ response.httpStatusCode == 403 ||
669
+ response.httpStatusCode == 404 ||
670
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
671
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
723
672
  return [4 /*yield*/, response.body.text()];
724
673
  case 3:
725
- body_24 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
726
- "APIErrorResponse",
727
- ""]);
728
- throw new exception_1.ApiException(400, body_24);
674
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
675
+ try {
676
+ body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
677
+ throw new exception_1.ApiException(response.httpStatusCode, body_13);
678
+ }
679
+ catch (error) {
680
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
681
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
682
+ }
683
+ _l.label = 4;
729
684
  case 4:
730
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
731
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
732
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
685
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
686
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
687
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
733
688
  return [4 /*yield*/, response.body.text()];
734
689
  case 5:
735
- body_25 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
736
- "APIErrorResponse",
690
+ body_14 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
691
+ "MetricEstimateResponse",
737
692
  ""]);
738
- throw new exception_1.ApiException(403, body_25);
739
- case 6:
740
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
741
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
742
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
743
- return [4 /*yield*/, response.body.text()];
693
+ return [2 /*return*/, body_14];
694
+ case 6: return [4 /*yield*/, response.body.text()];
744
695
  case 7:
745
- body_26 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
746
- "APIErrorResponse",
747
- ""]);
748
- throw new exception_1.ApiException(404, body_26);
749
- case 8:
750
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
751
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
752
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
696
+ body = (_l.sent()) || "";
697
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
698
+ }
699
+ });
700
+ });
701
+ };
702
+ /**
703
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
704
+ * to the expected objects
705
+ *
706
+ * @params response Response returned by the server for a request to listActiveMetricConfigurations
707
+ * @throws ApiException if the response code was not in [200, 299]
708
+ */
709
+ MetricsApiResponseProcessor.prototype.listActiveMetricConfigurations = function (response) {
710
+ return __awaiter(this, void 0, void 0, function () {
711
+ var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
712
+ return __generator(this, function (_l) {
713
+ switch (_l.label) {
714
+ case 0:
715
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
716
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
717
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
718
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
753
719
  return [4 /*yield*/, response.body.text()];
754
- case 9:
755
- body_27 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
756
- "APIErrorResponse",
757
- ""]);
758
- throw new exception_1.ApiException(429, body_27);
759
- case 10:
760
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
761
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
762
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
720
+ case 1:
721
+ body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
722
+ "MetricSuggestedTagsAndAggregationsResponse"]);
723
+ return [2 /*return*/, body_15];
724
+ case 2:
725
+ if (!(response.httpStatusCode == 400 ||
726
+ response.httpStatusCode == 403 ||
727
+ response.httpStatusCode == 404 ||
728
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
729
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
763
730
  return [4 /*yield*/, response.body.text()];
764
- case 11:
765
- body_28 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
766
- "MetricEstimateResponse",
731
+ case 3:
732
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
733
+ try {
734
+ body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
735
+ throw new exception_1.ApiException(response.httpStatusCode, body_16);
736
+ }
737
+ catch (error) {
738
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
739
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
740
+ }
741
+ _l.label = 4;
742
+ case 4:
743
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
744
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
745
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
746
+ return [4 /*yield*/, response.body.text()];
747
+ case 5:
748
+ body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
749
+ "MetricSuggestedTagsAndAggregationsResponse",
767
750
  ""]);
768
- return [2 /*return*/, body_28];
769
- case 12: return [4 /*yield*/, response.body.text()];
770
- case 13:
771
- body = (_0.sent()) || "";
751
+ return [2 /*return*/, body_17];
752
+ case 6: return [4 /*yield*/, response.body.text()];
753
+ case 7:
754
+ body = (_l.sent()) || "";
772
755
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
773
756
  }
774
757
  });
@@ -783,63 +766,49 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
783
766
  */
784
767
  MetricsApiResponseProcessor.prototype.listTagConfigurationByName = function (response) {
785
768
  return __awaiter(this, void 0, void 0, function () {
786
- var contentType, body_29, _a, _b, _c, _d, body_30, _e, _f, _g, _h, body_31, _j, _k, _l, _m, body_32, _o, _p, _q, _r, body_33, _s, _t, _u, _v, body;
787
- return __generator(this, function (_w) {
788
- switch (_w.label) {
769
+ var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, body_20, _g, _h, _j, _k, body;
770
+ return __generator(this, function (_l) {
771
+ switch (_l.label) {
789
772
  case 0:
790
773
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
791
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
774
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
792
775
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
793
776
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
794
777
  return [4 /*yield*/, response.body.text()];
795
778
  case 1:
796
- body_29 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
797
- "MetricTagConfigurationResponse",
798
- ""]);
799
- return [2 /*return*/, body_29];
779
+ body_18 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
780
+ "MetricTagConfigurationResponse"]);
781
+ return [2 /*return*/, body_18];
800
782
  case 2:
801
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
802
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
803
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
783
+ if (!(response.httpStatusCode == 403 ||
784
+ response.httpStatusCode == 404 ||
785
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
786
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
804
787
  return [4 /*yield*/, response.body.text()];
805
788
  case 3:
806
- body_30 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
807
- "APIErrorResponse",
808
- ""]);
809
- throw new exception_1.ApiException(403, body_30);
789
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
790
+ try {
791
+ body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
792
+ throw new exception_1.ApiException(response.httpStatusCode, body_19);
793
+ }
794
+ catch (error) {
795
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
796
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
797
+ }
798
+ _l.label = 4;
810
799
  case 4:
811
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
812
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
813
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
800
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
801
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
802
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
814
803
  return [4 /*yield*/, response.body.text()];
815
804
  case 5:
816
- body_31 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
817
- "APIErrorResponse",
818
- ""]);
819
- throw new exception_1.ApiException(404, body_31);
820
- case 6:
821
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
822
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
823
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
824
- return [4 /*yield*/, response.body.text()];
825
- case 7:
826
- body_32 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
827
- "APIErrorResponse",
828
- ""]);
829
- throw new exception_1.ApiException(429, body_32);
830
- case 8:
831
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
832
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
833
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
834
- return [4 /*yield*/, response.body.text()];
835
- case 9:
836
- body_33 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
805
+ body_20 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
837
806
  "MetricTagConfigurationResponse",
838
807
  ""]);
839
- return [2 /*return*/, body_33];
840
- case 10: return [4 /*yield*/, response.body.text()];
841
- case 11:
842
- body = (_w.sent()) || "";
808
+ return [2 /*return*/, body_20];
809
+ case 6: return [4 /*yield*/, response.body.text()];
810
+ case 7:
811
+ body = (_l.sent()) || "";
843
812
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
844
813
  }
845
814
  });
@@ -854,63 +823,49 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
854
823
  */
855
824
  MetricsApiResponseProcessor.prototype.listTagConfigurations = function (response) {
856
825
  return __awaiter(this, void 0, void 0, function () {
857
- var contentType, body_34, _a, _b, _c, _d, body_35, _e, _f, _g, _h, body_36, _j, _k, _l, _m, body_37, _o, _p, _q, _r, body_38, _s, _t, _u, _v, body;
858
- return __generator(this, function (_w) {
859
- switch (_w.label) {
826
+ var contentType, body_21, _a, _b, _c, _d, bodyText, _e, _f, body_22, body_23, _g, _h, _j, _k, body;
827
+ return __generator(this, function (_l) {
828
+ switch (_l.label) {
860
829
  case 0:
861
830
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
862
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
831
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
863
832
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
864
833
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
865
834
  return [4 /*yield*/, response.body.text()];
866
835
  case 1:
867
- body_34 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
868
- "MetricsAndMetricTagConfigurationsResponse",
869
- ""]);
870
- return [2 /*return*/, body_34];
836
+ body_21 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
837
+ "MetricsAndMetricTagConfigurationsResponse"]);
838
+ return [2 /*return*/, body_21];
871
839
  case 2:
872
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
873
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
874
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
840
+ if (!(response.httpStatusCode == 400 ||
841
+ response.httpStatusCode == 403 ||
842
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
843
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
875
844
  return [4 /*yield*/, response.body.text()];
876
845
  case 3:
877
- body_35 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
878
- "APIErrorResponse",
879
- ""]);
880
- throw new exception_1.ApiException(400, body_35);
846
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
847
+ try {
848
+ body_22 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
849
+ throw new exception_1.ApiException(response.httpStatusCode, body_22);
850
+ }
851
+ catch (error) {
852
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
853
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
854
+ }
855
+ _l.label = 4;
881
856
  case 4:
882
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
883
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
884
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
857
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
858
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
859
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
885
860
  return [4 /*yield*/, response.body.text()];
886
861
  case 5:
887
- body_36 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
888
- "APIErrorResponse",
889
- ""]);
890
- throw new exception_1.ApiException(403, body_36);
891
- case 6:
892
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
893
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
894
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
895
- return [4 /*yield*/, response.body.text()];
896
- case 7:
897
- body_37 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
898
- "APIErrorResponse",
899
- ""]);
900
- throw new exception_1.ApiException(429, body_37);
901
- case 8:
902
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
903
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
904
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
905
- return [4 /*yield*/, response.body.text()];
906
- case 9:
907
- body_38 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
862
+ body_23 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
908
863
  "MetricsAndMetricTagConfigurationsResponse",
909
864
  ""]);
910
- return [2 /*return*/, body_38];
911
- case 10: return [4 /*yield*/, response.body.text()];
912
- case 11:
913
- body = (_w.sent()) || "";
865
+ return [2 /*return*/, body_23];
866
+ case 6: return [4 /*yield*/, response.body.text()];
867
+ case 7:
868
+ body = (_l.sent()) || "";
914
869
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
915
870
  }
916
871
  });
@@ -925,73 +880,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
925
880
  */
926
881
  MetricsApiResponseProcessor.prototype.listTagsByMetricName = function (response) {
927
882
  return __awaiter(this, void 0, void 0, function () {
928
- var contentType, body_39, _a, _b, _c, _d, body_40, _e, _f, _g, _h, body_41, _j, _k, _l, _m, body_42, _o, _p, _q, _r, body_43, _s, _t, _u, _v, body_44, _w, _x, _y, _z, body;
929
- return __generator(this, function (_0) {
930
- switch (_0.label) {
883
+ var contentType, body_24, _a, _b, _c, _d, bodyText, _e, _f, body_25, body_26, _g, _h, _j, _k, body;
884
+ return __generator(this, function (_l) {
885
+ switch (_l.label) {
931
886
  case 0:
932
887
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
933
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
888
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
934
889
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
935
890
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
936
891
  return [4 /*yield*/, response.body.text()];
937
892
  case 1:
938
- body_39 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
939
- "MetricAllTagsResponse",
940
- ""]);
941
- return [2 /*return*/, body_39];
893
+ body_24 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
894
+ "MetricAllTagsResponse"]);
895
+ return [2 /*return*/, body_24];
942
896
  case 2:
943
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
944
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
945
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
897
+ if (!(response.httpStatusCode == 400 ||
898
+ response.httpStatusCode == 403 ||
899
+ response.httpStatusCode == 404 ||
900
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
901
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
946
902
  return [4 /*yield*/, response.body.text()];
947
903
  case 3:
948
- body_40 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
949
- "APIErrorResponse",
950
- ""]);
951
- throw new exception_1.ApiException(400, body_40);
904
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
905
+ try {
906
+ body_25 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
907
+ throw new exception_1.ApiException(response.httpStatusCode, body_25);
908
+ }
909
+ catch (error) {
910
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
911
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
912
+ }
913
+ _l.label = 4;
952
914
  case 4:
953
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
954
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
955
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
915
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
916
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
917
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
956
918
  return [4 /*yield*/, response.body.text()];
957
919
  case 5:
958
- body_41 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
959
- "APIErrorResponse",
960
- ""]);
961
- throw new exception_1.ApiException(403, body_41);
962
- case 6:
963
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
964
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
965
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
966
- return [4 /*yield*/, response.body.text()];
967
- case 7:
968
- body_42 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
969
- "APIErrorResponse",
970
- ""]);
971
- throw new exception_1.ApiException(404, body_42);
972
- case 8:
973
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
974
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
975
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
976
- return [4 /*yield*/, response.body.text()];
977
- case 9:
978
- body_43 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
979
- "APIErrorResponse",
980
- ""]);
981
- throw new exception_1.ApiException(429, body_43);
982
- case 10:
983
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
984
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
985
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
986
- return [4 /*yield*/, response.body.text()];
987
- case 11:
988
- body_44 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
920
+ body_26 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
989
921
  "MetricAllTagsResponse",
990
922
  ""]);
991
- return [2 /*return*/, body_44];
992
- case 12: return [4 /*yield*/, response.body.text()];
993
- case 13:
994
- body = (_0.sent()) || "";
923
+ return [2 /*return*/, body_26];
924
+ case 6: return [4 /*yield*/, response.body.text()];
925
+ case 7:
926
+ body = (_l.sent()) || "";
995
927
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
996
928
  }
997
929
  });
@@ -1006,73 +938,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
1006
938
  */
1007
939
  MetricsApiResponseProcessor.prototype.listVolumesByMetricName = function (response) {
1008
940
  return __awaiter(this, void 0, void 0, function () {
1009
- var contentType, body_45, _a, _b, _c, _d, body_46, _e, _f, _g, _h, body_47, _j, _k, _l, _m, body_48, _o, _p, _q, _r, body_49, _s, _t, _u, _v, body_50, _w, _x, _y, _z, body;
1010
- return __generator(this, function (_0) {
1011
- switch (_0.label) {
941
+ var contentType, body_27, _a, _b, _c, _d, bodyText, _e, _f, body_28, body_29, _g, _h, _j, _k, body;
942
+ return __generator(this, function (_l) {
943
+ switch (_l.label) {
1012
944
  case 0:
1013
945
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1014
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
946
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1015
947
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1016
948
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1017
949
  return [4 /*yield*/, response.body.text()];
1018
950
  case 1:
1019
- body_45 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1020
- "MetricVolumesResponse",
1021
- ""]);
1022
- return [2 /*return*/, body_45];
951
+ body_27 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
952
+ "MetricVolumesResponse"]);
953
+ return [2 /*return*/, body_27];
1023
954
  case 2:
1024
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1025
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1026
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
955
+ if (!(response.httpStatusCode == 400 ||
956
+ response.httpStatusCode == 403 ||
957
+ response.httpStatusCode == 404 ||
958
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
959
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1027
960
  return [4 /*yield*/, response.body.text()];
1028
961
  case 3:
1029
- body_46 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1030
- "APIErrorResponse",
1031
- ""]);
1032
- throw new exception_1.ApiException(400, body_46);
962
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
963
+ try {
964
+ body_28 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
965
+ throw new exception_1.ApiException(response.httpStatusCode, body_28);
966
+ }
967
+ catch (error) {
968
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
969
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
970
+ }
971
+ _l.label = 4;
1033
972
  case 4:
1034
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1035
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1036
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
973
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
974
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
975
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1037
976
  return [4 /*yield*/, response.body.text()];
1038
977
  case 5:
1039
- body_47 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1040
- "APIErrorResponse",
1041
- ""]);
1042
- throw new exception_1.ApiException(403, body_47);
1043
- case 6:
1044
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1045
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1046
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1047
- return [4 /*yield*/, response.body.text()];
1048
- case 7:
1049
- body_48 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1050
- "APIErrorResponse",
1051
- ""]);
1052
- throw new exception_1.ApiException(404, body_48);
1053
- case 8:
1054
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1055
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1056
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1057
- return [4 /*yield*/, response.body.text()];
1058
- case 9:
1059
- body_49 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1060
- "APIErrorResponse",
1061
- ""]);
1062
- throw new exception_1.ApiException(429, body_49);
1063
- case 10:
1064
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1065
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1066
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1067
- return [4 /*yield*/, response.body.text()];
1068
- case 11:
1069
- body_50 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
978
+ body_29 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1070
979
  "MetricVolumesResponse",
1071
980
  ""]);
1072
- return [2 /*return*/, body_50];
1073
- case 12: return [4 /*yield*/, response.body.text()];
1074
- case 13:
1075
- body = (_0.sent()) || "";
981
+ return [2 /*return*/, body_29];
982
+ case 6: return [4 /*yield*/, response.body.text()];
983
+ case 7:
984
+ body = (_l.sent()) || "";
1076
985
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1077
986
  }
1078
987
  });
@@ -1087,83 +996,51 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
1087
996
  */
1088
997
  MetricsApiResponseProcessor.prototype.submitMetrics = function (response) {
1089
998
  return __awaiter(this, void 0, void 0, function () {
1090
- var contentType, body_51, _a, _b, _c, _d, body_52, _e, _f, _g, _h, body_53, _j, _k, _l, _m, body_54, _o, _p, _q, _r, body_55, _s, _t, _u, _v, body_56, _w, _x, _y, _z, body_57, _0, _1, _2, _3, body;
1091
- return __generator(this, function (_4) {
1092
- switch (_4.label) {
999
+ var contentType, body_30, _a, _b, _c, _d, bodyText, _e, _f, body_31, body_32, _g, _h, _j, _k, body;
1000
+ return __generator(this, function (_l) {
1001
+ switch (_l.label) {
1093
1002
  case 0:
1094
1003
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1095
- if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3 /*break*/, 2];
1004
+ if (!(response.httpStatusCode == 202)) return [3 /*break*/, 2];
1096
1005
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1097
1006
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1098
1007
  return [4 /*yield*/, response.body.text()];
1099
1008
  case 1:
1100
- body_51 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
1101
- "IntakePayloadAccepted",
1102
- ""]);
1103
- return [2 /*return*/, body_51];
1009
+ body_30 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1010
+ "IntakePayloadAccepted"]);
1011
+ return [2 /*return*/, body_30];
1104
1012
  case 2:
1105
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1106
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1107
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1013
+ if (!(response.httpStatusCode == 400 ||
1014
+ response.httpStatusCode == 403 ||
1015
+ response.httpStatusCode == 408 ||
1016
+ response.httpStatusCode == 413 ||
1017
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1018
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1108
1019
  return [4 /*yield*/, response.body.text()];
1109
1020
  case 3:
1110
- body_52 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
1111
- "APIErrorResponse",
1112
- ""]);
1113
- throw new exception_1.ApiException(400, body_52);
1021
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1022
+ try {
1023
+ body_31 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1024
+ throw new exception_1.ApiException(response.httpStatusCode, body_31);
1025
+ }
1026
+ catch (error) {
1027
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1028
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1029
+ }
1030
+ _l.label = 4;
1114
1031
  case 4:
1115
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1116
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1117
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1032
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1033
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1034
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1118
1035
  return [4 /*yield*/, response.body.text()];
1119
1036
  case 5:
1120
- body_53 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
1121
- "APIErrorResponse",
1122
- ""]);
1123
- throw new exception_1.ApiException(403, body_53);
1124
- case 6:
1125
- if (!(0, util_1.isCodeInRange)("408", response.httpStatusCode)) return [3 /*break*/, 8];
1126
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1127
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1128
- return [4 /*yield*/, response.body.text()];
1129
- case 7:
1130
- body_54 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
1131
- "APIErrorResponse",
1132
- ""]);
1133
- throw new exception_1.ApiException(408, body_54);
1134
- case 8:
1135
- if (!(0, util_1.isCodeInRange)("413", response.httpStatusCode)) return [3 /*break*/, 10];
1136
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1137
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1138
- return [4 /*yield*/, response.body.text()];
1139
- case 9:
1140
- body_55 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
1141
- "APIErrorResponse",
1142
- ""]);
1143
- throw new exception_1.ApiException(413, body_55);
1144
- case 10:
1145
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
1146
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1147
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1148
- return [4 /*yield*/, response.body.text()];
1149
- case 11:
1150
- body_56 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
1151
- "APIErrorResponse",
1152
- ""]);
1153
- throw new exception_1.ApiException(429, body_56);
1154
- case 12:
1155
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
1156
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1157
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1158
- return [4 /*yield*/, response.body.text()];
1159
- case 13:
1160
- body_57 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
1037
+ body_32 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1161
1038
  "IntakePayloadAccepted",
1162
1039
  ""]);
1163
- return [2 /*return*/, body_57];
1164
- case 14: return [4 /*yield*/, response.body.text()];
1165
- case 15:
1166
- body = (_4.sent()) || "";
1040
+ return [2 /*return*/, body_32];
1041
+ case 6: return [4 /*yield*/, response.body.text()];
1042
+ case 7:
1043
+ body = (_l.sent()) || "";
1167
1044
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1168
1045
  }
1169
1046
  });
@@ -1178,73 +1055,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
1178
1055
  */
1179
1056
  MetricsApiResponseProcessor.prototype.updateTagConfiguration = function (response) {
1180
1057
  return __awaiter(this, void 0, void 0, function () {
1181
- var contentType, body_58, _a, _b, _c, _d, body_59, _e, _f, _g, _h, body_60, _j, _k, _l, _m, body_61, _o, _p, _q, _r, body_62, _s, _t, _u, _v, body_63, _w, _x, _y, _z, body;
1182
- return __generator(this, function (_0) {
1183
- switch (_0.label) {
1058
+ var contentType, body_33, _a, _b, _c, _d, bodyText, _e, _f, body_34, body_35, _g, _h, _j, _k, body;
1059
+ return __generator(this, function (_l) {
1060
+ switch (_l.label) {
1184
1061
  case 0:
1185
1062
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1186
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1063
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1187
1064
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1188
1065
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1189
1066
  return [4 /*yield*/, response.body.text()];
1190
1067
  case 1:
1191
- body_58 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1192
- "MetricTagConfigurationResponse",
1193
- ""]);
1194
- return [2 /*return*/, body_58];
1068
+ body_33 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1069
+ "MetricTagConfigurationResponse"]);
1070
+ return [2 /*return*/, body_33];
1195
1071
  case 2:
1196
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1197
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1198
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1072
+ if (!(response.httpStatusCode == 400 ||
1073
+ response.httpStatusCode == 403 ||
1074
+ response.httpStatusCode == 422 ||
1075
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1076
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1199
1077
  return [4 /*yield*/, response.body.text()];
1200
1078
  case 3:
1201
- body_59 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1202
- "APIErrorResponse",
1203
- ""]);
1204
- throw new exception_1.ApiException(400, body_59);
1079
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1080
+ try {
1081
+ body_34 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1082
+ throw new exception_1.ApiException(response.httpStatusCode, body_34);
1083
+ }
1084
+ catch (error) {
1085
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1086
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1087
+ }
1088
+ _l.label = 4;
1205
1089
  case 4:
1206
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1207
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1208
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1090
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1091
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1092
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1209
1093
  return [4 /*yield*/, response.body.text()];
1210
1094
  case 5:
1211
- body_60 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1212
- "APIErrorResponse",
1213
- ""]);
1214
- throw new exception_1.ApiException(403, body_60);
1215
- case 6:
1216
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 8];
1217
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1218
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1219
- return [4 /*yield*/, response.body.text()];
1220
- case 7:
1221
- body_61 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1222
- "APIErrorResponse",
1223
- ""]);
1224
- throw new exception_1.ApiException(422, body_61);
1225
- case 8:
1226
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1227
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1228
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1229
- return [4 /*yield*/, response.body.text()];
1230
- case 9:
1231
- body_62 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1232
- "APIErrorResponse",
1233
- ""]);
1234
- throw new exception_1.ApiException(429, body_62);
1235
- case 10:
1236
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1237
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1238
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1239
- return [4 /*yield*/, response.body.text()];
1240
- case 11:
1241
- body_63 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1095
+ body_35 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1242
1096
  "MetricTagConfigurationResponse",
1243
1097
  ""]);
1244
- return [2 /*return*/, body_63];
1245
- case 12: return [4 /*yield*/, response.body.text()];
1246
- case 13:
1247
- body = (_0.sent()) || "";
1098
+ return [2 /*return*/, body_35];
1099
+ case 6: return [4 /*yield*/, response.body.text()];
1100
+ case 7:
1101
+ body = (_l.sent()) || "";
1248
1102
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1249
1103
  }
1250
1104
  });
@@ -1348,6 +1202,21 @@ var MetricsApi = /** @class */ (function () {
1348
1202
  });
1349
1203
  });
1350
1204
  };
1205
+ /**
1206
+ * List tags and aggregations that are actively queried on dashboards and monitors for a given metric name.
1207
+ * @param param The request object
1208
+ */
1209
+ MetricsApi.prototype.listActiveMetricConfigurations = function (param, options) {
1210
+ var _this = this;
1211
+ var requestContextPromise = this.requestFactory.listActiveMetricConfigurations(param.metricName, param.windowSeconds, options);
1212
+ return requestContextPromise.then(function (requestContext) {
1213
+ return _this.configuration.httpApi
1214
+ .send(requestContext)
1215
+ .then(function (responseContext) {
1216
+ return _this.responseProcessor.listActiveMetricConfigurations(responseContext);
1217
+ });
1218
+ });
1219
+ };
1351
1220
  /**
1352
1221
  * Returns the tag configuration for the given metric name.
1353
1222
  * @param param The request object
@@ -1364,14 +1233,13 @@ var MetricsApi = /** @class */ (function () {
1364
1233
  });
1365
1234
  };
1366
1235
  /**
1367
- * Returns all configured count/gauge/rate/distribution metric names
1368
- * (with additional filters if specified).
1236
+ * Returns all metrics (matching additional filters if specified).
1369
1237
  * @param param The request object
1370
1238
  */
1371
1239
  MetricsApi.prototype.listTagConfigurations = function (param, options) {
1372
1240
  var _this = this;
1373
1241
  if (param === void 0) { param = {}; }
1374
- var requestContextPromise = this.requestFactory.listTagConfigurations(param.filterConfigured, param.filterTagsConfigured, param.filterMetricType, param.filterIncludePercentiles, param.filterTags, param.windowSeconds, options);
1242
+ var requestContextPromise = this.requestFactory.listTagConfigurations(param.filterConfigured, param.filterTagsConfigured, param.filterMetricType, param.filterIncludePercentiles, param.filterQueried, param.filterTags, param.windowSeconds, options);
1375
1243
  return requestContextPromise.then(function (requestContext) {
1376
1244
  return _this.configuration.httpApi
1377
1245
  .send(requestContext)