@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.
- package/CHANGELOG.md +44 -0
- package/README.md +72 -2
- package/dist/packages/datadog-api-client-common/configuration.js +2 -1
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/exception.js +3 -0
- package/dist/packages/datadog-api-client-common/exception.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +3 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +253 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +194 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +26 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +140 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +139 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +191 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +194 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +82 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +22 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +281 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +71 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +200 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +234 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +201 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +285 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +141 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +167 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +107 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +87 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +30 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +137 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +288 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +142 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +28 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +738 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +137 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1056 -1595
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +141 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +222 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +20 -0
- package/dist/packages/datadog-api-client-v1/index.js +35 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +44 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +56 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +139 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +161 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.d.ts +253 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js +1064 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +115 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +55 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +358 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +389 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +117 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +275 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +137 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +419 -563
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +141 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +26 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +28 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +214 -310
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +367 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +506 -685
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +139 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +94 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +456 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +277 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +279 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +88 -5
- package/dist/packages/datadog-api-client-v2/index.js +134 -17
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +2 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/HTTPLogItem.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +1 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js +0 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +186 -10
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +4 -4
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- 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,
|
|
399
|
-
return __generator(this, function (
|
|
400
|
-
switch (
|
|
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 (!(
|
|
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, [
|
|
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 (!(
|
|
414
|
-
|
|
415
|
-
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
""
|
|
421
|
-
|
|
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 (!(
|
|
424
|
-
|
|
425
|
-
|
|
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 =
|
|
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*/,
|
|
462
|
-
case
|
|
463
|
-
case
|
|
464
|
-
body = (
|
|
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,
|
|
480
|
-
return __generator(this, function (
|
|
481
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
495
|
-
|
|
496
|
-
|
|
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
|
-
|
|
500
|
-
|
|
501
|
-
""
|
|
502
|
-
|
|
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 (!(
|
|
505
|
-
|
|
506
|
-
|
|
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
|
-
|
|
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*/,
|
|
543
|
-
case
|
|
544
|
-
case
|
|
545
|
-
body = (
|
|
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,
|
|
561
|
-
return __generator(this, function (
|
|
562
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
576
|
-
|
|
577
|
-
|
|
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
|
-
|
|
581
|
-
|
|
582
|
-
""
|
|
583
|
-
|
|
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 (!(
|
|
586
|
-
|
|
587
|
-
|
|
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
|
-
|
|
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*/,
|
|
624
|
-
case
|
|
625
|
-
case
|
|
626
|
-
body = (
|
|
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,
|
|
642
|
-
return __generator(this, function (
|
|
643
|
-
switch (
|
|
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 (
|
|
604
|
+
if (response.httpStatusCode == 204) {
|
|
647
605
|
return [2 /*return*/];
|
|
648
606
|
}
|
|
649
|
-
if (!(
|
|
650
|
-
|
|
651
|
-
|
|
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
|
-
|
|
655
|
-
|
|
656
|
-
""
|
|
657
|
-
|
|
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 (!(
|
|
660
|
-
|
|
661
|
-
|
|
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
|
-
|
|
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*/,
|
|
688
|
-
case
|
|
689
|
-
case
|
|
690
|
-
body = (
|
|
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,
|
|
706
|
-
return __generator(this, function (
|
|
707
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
721
|
-
|
|
722
|
-
|
|
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
|
-
|
|
726
|
-
|
|
727
|
-
""
|
|
728
|
-
|
|
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 (!(
|
|
731
|
-
|
|
732
|
-
|
|
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
|
-
|
|
736
|
-
"
|
|
685
|
+
body_14 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
686
|
+
"MetricEstimateResponse",
|
|
737
687
|
""]);
|
|
738
|
-
|
|
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
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
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
|
|
755
|
-
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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
|
|
765
|
-
|
|
766
|
-
|
|
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*/,
|
|
769
|
-
case
|
|
770
|
-
case
|
|
771
|
-
body = (
|
|
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,
|
|
787
|
-
return __generator(this, function (
|
|
788
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
802
|
-
|
|
803
|
-
|
|
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
|
-
|
|
807
|
-
|
|
808
|
-
""
|
|
809
|
-
|
|
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 (!(
|
|
812
|
-
|
|
813
|
-
|
|
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
|
-
|
|
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*/,
|
|
840
|
-
case
|
|
841
|
-
case
|
|
842
|
-
body = (
|
|
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,
|
|
858
|
-
return __generator(this, function (
|
|
859
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
873
|
-
|
|
874
|
-
|
|
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
|
-
|
|
878
|
-
|
|
879
|
-
""
|
|
880
|
-
|
|
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 (!(
|
|
883
|
-
|
|
884
|
-
|
|
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
|
-
|
|
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*/,
|
|
911
|
-
case
|
|
912
|
-
case
|
|
913
|
-
body = (
|
|
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,
|
|
929
|
-
return __generator(this, function (
|
|
930
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
944
|
-
|
|
945
|
-
|
|
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
|
-
|
|
949
|
-
|
|
950
|
-
""
|
|
951
|
-
|
|
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 (!(
|
|
954
|
-
|
|
955
|
-
|
|
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
|
-
|
|
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*/,
|
|
992
|
-
case
|
|
993
|
-
case
|
|
994
|
-
body = (
|
|
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,
|
|
1010
|
-
return __generator(this, function (
|
|
1011
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
1025
|
-
|
|
1026
|
-
|
|
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
|
-
|
|
1030
|
-
|
|
1031
|
-
""
|
|
1032
|
-
|
|
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 (!(
|
|
1035
|
-
|
|
1036
|
-
|
|
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
|
-
|
|
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*/,
|
|
1073
|
-
case
|
|
1074
|
-
case
|
|
1075
|
-
body = (
|
|
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,
|
|
1091
|
-
return __generator(this, function (
|
|
1092
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
1106
|
-
|
|
1107
|
-
|
|
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
|
-
|
|
1111
|
-
|
|
1112
|
-
""
|
|
1113
|
-
|
|
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 (!(
|
|
1116
|
-
|
|
1117
|
-
|
|
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
|
-
|
|
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*/,
|
|
1164
|
-
case
|
|
1165
|
-
case
|
|
1166
|
-
body = (
|
|
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,
|
|
1182
|
-
return __generator(this, function (
|
|
1183
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
1197
|
-
|
|
1198
|
-
|
|
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
|
-
|
|
1202
|
-
|
|
1203
|
-
""
|
|
1204
|
-
|
|
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 (!(
|
|
1207
|
-
|
|
1208
|
-
|
|
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
|
-
|
|
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*/,
|
|
1245
|
-
case
|
|
1246
|
-
case
|
|
1247
|
-
body = (
|
|
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
|
|
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)
|