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