@datadog/datadog-api-client 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +72 -0
- 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/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 +262 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -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 +298 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1093 -1594
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -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/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/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/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/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 +58 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +57 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -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 +365 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -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 +428 -560
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +222 -310
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -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 +522 -685
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +35 -5
- package/dist/packages/datadog-api-client-v2/index.js +49 -15
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- 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 +0 -4
- 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/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/ObjectSerializer.js +73 -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/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} +1 -1
- 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/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() {
|
|
@@ -212,6 +212,33 @@ var MetricsApiRequestFactory = /** @class */ (function (_super) {
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
|
+
MetricsApiRequestFactory.prototype.listActiveMetricConfigurations = function (metricName, windowSeconds, _options) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
217
|
+
var _config, localVarPath, requestContext;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
_config = _options || this.configuration;
|
|
220
|
+
// verify required parameter 'metricName' is not null or undefined
|
|
221
|
+
if (metricName === null || metricName === undefined) {
|
|
222
|
+
throw new baseapi_1.RequiredError("Required parameter metricName was null or undefined when calling listActiveMetricConfigurations.");
|
|
223
|
+
}
|
|
224
|
+
localVarPath = "/api/v2/metrics/{metric_name}/active-configurations".replace("{" + "metric_name" + "}", encodeURIComponent(String(metricName)));
|
|
225
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.MetricsApi.listActiveMetricConfigurations").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
226
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
227
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
228
|
+
// Query Params
|
|
229
|
+
if (windowSeconds !== undefined) {
|
|
230
|
+
requestContext.setQueryParam("window[seconds]", ObjectSerializer_1.ObjectSerializer.serialize(windowSeconds, "number", "int64"));
|
|
231
|
+
}
|
|
232
|
+
// Apply auth methods
|
|
233
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
234
|
+
"AuthZ",
|
|
235
|
+
"apiKeyAuth",
|
|
236
|
+
"appKeyAuth",
|
|
237
|
+
]);
|
|
238
|
+
return [2 /*return*/, requestContext];
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
215
242
|
MetricsApiRequestFactory.prototype.listTagConfigurationByName = function (metricName, _options) {
|
|
216
243
|
return __awaiter(this, void 0, void 0, function () {
|
|
217
244
|
var _config, localVarPath, requestContext;
|
|
@@ -235,7 +262,7 @@ var MetricsApiRequestFactory = /** @class */ (function (_super) {
|
|
|
235
262
|
});
|
|
236
263
|
});
|
|
237
264
|
};
|
|
238
|
-
MetricsApiRequestFactory.prototype.listTagConfigurations = function (filterConfigured, filterTagsConfigured, filterMetricType, filterIncludePercentiles, filterTags, windowSeconds, _options) {
|
|
265
|
+
MetricsApiRequestFactory.prototype.listTagConfigurations = function (filterConfigured, filterTagsConfigured, filterMetricType, filterIncludePercentiles, filterQueried, filterTags, windowSeconds, _options) {
|
|
239
266
|
return __awaiter(this, void 0, void 0, function () {
|
|
240
267
|
var _config, localVarPath, requestContext;
|
|
241
268
|
return __generator(this, function (_a) {
|
|
@@ -257,6 +284,9 @@ var MetricsApiRequestFactory = /** @class */ (function (_super) {
|
|
|
257
284
|
if (filterIncludePercentiles !== undefined) {
|
|
258
285
|
requestContext.setQueryParam("filter[include_percentiles]", ObjectSerializer_1.ObjectSerializer.serialize(filterIncludePercentiles, "boolean", ""));
|
|
259
286
|
}
|
|
287
|
+
if (filterQueried !== undefined) {
|
|
288
|
+
requestContext.setQueryParam("filter[queried]", ObjectSerializer_1.ObjectSerializer.serialize(filterQueried, "boolean", ""));
|
|
289
|
+
}
|
|
260
290
|
if (filterTags !== undefined) {
|
|
261
291
|
requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""));
|
|
262
292
|
}
|
|
@@ -395,73 +425,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
395
425
|
*/
|
|
396
426
|
MetricsApiResponseProcessor.prototype.createBulkTagsMetricsConfiguration = function (response) {
|
|
397
427
|
return __awaiter(this, void 0, void 0, function () {
|
|
398
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
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
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
453
|
+
}
|
|
454
|
+
catch (error) {
|
|
455
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
456
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
457
|
+
}
|
|
458
|
+
_l.label = 4;
|
|
422
459
|
case 4:
|
|
423
|
-
if (!(
|
|
424
|
-
|
|
425
|
-
|
|
460
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
461
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
462
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
426
463
|
return [4 /*yield*/, response.body.text()];
|
|
427
464
|
case 5:
|
|
428
|
-
body_3 =
|
|
429
|
-
"APIErrorResponse",
|
|
430
|
-
""]);
|
|
431
|
-
throw new exception_1.ApiException(403, body_3);
|
|
432
|
-
case 6:
|
|
433
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
434
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
435
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
436
|
-
return [4 /*yield*/, response.body.text()];
|
|
437
|
-
case 7:
|
|
438
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
439
|
-
"APIErrorResponse",
|
|
440
|
-
""]);
|
|
441
|
-
throw new exception_1.ApiException(404, body_4);
|
|
442
|
-
case 8:
|
|
443
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
444
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
445
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
446
|
-
return [4 /*yield*/, response.body.text()];
|
|
447
|
-
case 9:
|
|
448
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
449
|
-
"APIErrorResponse",
|
|
450
|
-
""]);
|
|
451
|
-
throw new exception_1.ApiException(429, body_5);
|
|
452
|
-
case 10:
|
|
453
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
454
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
455
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
456
|
-
return [4 /*yield*/, response.body.text()];
|
|
457
|
-
case 11:
|
|
458
|
-
body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
465
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
459
466
|
"MetricBulkTagConfigResponse",
|
|
460
467
|
""]);
|
|
461
|
-
return [2 /*return*/,
|
|
462
|
-
case
|
|
463
|
-
case
|
|
464
|
-
body = (
|
|
468
|
+
return [2 /*return*/, body_3];
|
|
469
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
470
|
+
case 7:
|
|
471
|
+
body = (_l.sent()) || "";
|
|
465
472
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
466
473
|
}
|
|
467
474
|
});
|
|
@@ -476,73 +483,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
476
483
|
*/
|
|
477
484
|
MetricsApiResponseProcessor.prototype.createTagConfiguration = function (response) {
|
|
478
485
|
return __awaiter(this, void 0, void 0, function () {
|
|
479
|
-
var contentType,
|
|
480
|
-
return __generator(this, function (
|
|
481
|
-
switch (
|
|
486
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
487
|
+
return __generator(this, function (_l) {
|
|
488
|
+
switch (_l.label) {
|
|
482
489
|
case 0:
|
|
483
490
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
484
|
-
if (!(
|
|
491
|
+
if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
|
|
485
492
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
486
493
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
487
494
|
return [4 /*yield*/, response.body.text()];
|
|
488
495
|
case 1:
|
|
489
|
-
|
|
490
|
-
"MetricTagConfigurationResponse"
|
|
491
|
-
|
|
492
|
-
return [2 /*return*/, body_7];
|
|
496
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
497
|
+
"MetricTagConfigurationResponse"]);
|
|
498
|
+
return [2 /*return*/, body_4];
|
|
493
499
|
case 2:
|
|
494
|
-
if (!(
|
|
495
|
-
|
|
496
|
-
|
|
500
|
+
if (!(response.httpStatusCode == 400 ||
|
|
501
|
+
response.httpStatusCode == 403 ||
|
|
502
|
+
response.httpStatusCode == 409 ||
|
|
503
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
504
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
497
505
|
return [4 /*yield*/, response.body.text()];
|
|
498
506
|
case 3:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
""
|
|
502
|
-
|
|
507
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
508
|
+
try {
|
|
509
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
510
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
511
|
+
}
|
|
512
|
+
catch (error) {
|
|
513
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
514
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
515
|
+
}
|
|
516
|
+
_l.label = 4;
|
|
503
517
|
case 4:
|
|
504
|
-
if (!(
|
|
505
|
-
|
|
506
|
-
|
|
518
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
519
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
520
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
507
521
|
return [4 /*yield*/, response.body.text()];
|
|
508
522
|
case 5:
|
|
509
|
-
|
|
510
|
-
"APIErrorResponse",
|
|
511
|
-
""]);
|
|
512
|
-
throw new exception_1.ApiException(403, body_9);
|
|
513
|
-
case 6:
|
|
514
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
515
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
516
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
517
|
-
return [4 /*yield*/, response.body.text()];
|
|
518
|
-
case 7:
|
|
519
|
-
body_10 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
520
|
-
"APIErrorResponse",
|
|
521
|
-
""]);
|
|
522
|
-
throw new exception_1.ApiException(409, body_10);
|
|
523
|
-
case 8:
|
|
524
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
525
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
526
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
527
|
-
return [4 /*yield*/, response.body.text()];
|
|
528
|
-
case 9:
|
|
529
|
-
body_11 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
530
|
-
"APIErrorResponse",
|
|
531
|
-
""]);
|
|
532
|
-
throw new exception_1.ApiException(429, body_11);
|
|
533
|
-
case 10:
|
|
534
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
535
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
536
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
537
|
-
return [4 /*yield*/, response.body.text()];
|
|
538
|
-
case 11:
|
|
539
|
-
body_12 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
523
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
540
524
|
"MetricTagConfigurationResponse",
|
|
541
525
|
""]);
|
|
542
|
-
return [2 /*return*/,
|
|
543
|
-
case
|
|
544
|
-
case
|
|
545
|
-
body = (
|
|
526
|
+
return [2 /*return*/, body_6];
|
|
527
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
528
|
+
case 7:
|
|
529
|
+
body = (_l.sent()) || "";
|
|
546
530
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
547
531
|
}
|
|
548
532
|
});
|
|
@@ -557,73 +541,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
557
541
|
*/
|
|
558
542
|
MetricsApiResponseProcessor.prototype.deleteBulkTagsMetricsConfiguration = function (response) {
|
|
559
543
|
return __awaiter(this, void 0, void 0, function () {
|
|
560
|
-
var contentType,
|
|
561
|
-
return __generator(this, function (
|
|
562
|
-
switch (
|
|
544
|
+
var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
|
|
545
|
+
return __generator(this, function (_l) {
|
|
546
|
+
switch (_l.label) {
|
|
563
547
|
case 0:
|
|
564
548
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
565
|
-
if (!(
|
|
549
|
+
if (!(response.httpStatusCode == 202)) return [3 /*break*/, 2];
|
|
566
550
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
567
551
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
568
552
|
return [4 /*yield*/, response.body.text()];
|
|
569
553
|
case 1:
|
|
570
|
-
|
|
571
|
-
"MetricBulkTagConfigResponse"
|
|
572
|
-
|
|
573
|
-
return [2 /*return*/, body_13];
|
|
554
|
+
body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
555
|
+
"MetricBulkTagConfigResponse"]);
|
|
556
|
+
return [2 /*return*/, body_7];
|
|
574
557
|
case 2:
|
|
575
|
-
if (!(
|
|
576
|
-
|
|
577
|
-
|
|
558
|
+
if (!(response.httpStatusCode == 400 ||
|
|
559
|
+
response.httpStatusCode == 403 ||
|
|
560
|
+
response.httpStatusCode == 404 ||
|
|
561
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
562
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
578
563
|
return [4 /*yield*/, response.body.text()];
|
|
579
564
|
case 3:
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
""
|
|
583
|
-
|
|
565
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
566
|
+
try {
|
|
567
|
+
body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
568
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_8);
|
|
569
|
+
}
|
|
570
|
+
catch (error) {
|
|
571
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
572
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
573
|
+
}
|
|
574
|
+
_l.label = 4;
|
|
584
575
|
case 4:
|
|
585
|
-
if (!(
|
|
586
|
-
|
|
587
|
-
|
|
576
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
577
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
578
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
588
579
|
return [4 /*yield*/, response.body.text()];
|
|
589
580
|
case 5:
|
|
590
|
-
|
|
591
|
-
"APIErrorResponse",
|
|
592
|
-
""]);
|
|
593
|
-
throw new exception_1.ApiException(403, body_15);
|
|
594
|
-
case 6:
|
|
595
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
596
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
597
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
598
|
-
return [4 /*yield*/, response.body.text()];
|
|
599
|
-
case 7:
|
|
600
|
-
body_16 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
601
|
-
"APIErrorResponse",
|
|
602
|
-
""]);
|
|
603
|
-
throw new exception_1.ApiException(404, body_16);
|
|
604
|
-
case 8:
|
|
605
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
606
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
607
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
608
|
-
return [4 /*yield*/, response.body.text()];
|
|
609
|
-
case 9:
|
|
610
|
-
body_17 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
611
|
-
"APIErrorResponse",
|
|
612
|
-
""]);
|
|
613
|
-
throw new exception_1.ApiException(429, body_17);
|
|
614
|
-
case 10:
|
|
615
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
616
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
617
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
618
|
-
return [4 /*yield*/, response.body.text()];
|
|
619
|
-
case 11:
|
|
620
|
-
body_18 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
581
|
+
body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
621
582
|
"MetricBulkTagConfigResponse",
|
|
622
583
|
""]);
|
|
623
|
-
return [2 /*return*/,
|
|
624
|
-
case
|
|
625
|
-
case
|
|
626
|
-
body = (
|
|
584
|
+
return [2 /*return*/, body_9];
|
|
585
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
586
|
+
case 7:
|
|
587
|
+
body = (_l.sent()) || "";
|
|
627
588
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
628
589
|
}
|
|
629
590
|
});
|
|
@@ -638,56 +599,43 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
638
599
|
*/
|
|
639
600
|
MetricsApiResponseProcessor.prototype.deleteTagConfiguration = function (response) {
|
|
640
601
|
return __awaiter(this, void 0, void 0, function () {
|
|
641
|
-
var contentType,
|
|
642
|
-
return __generator(this, function (
|
|
643
|
-
switch (
|
|
602
|
+
var contentType, bodyText, _a, _b, body_10, body_11, _c, _d, _e, _f, body;
|
|
603
|
+
return __generator(this, function (_g) {
|
|
604
|
+
switch (_g.label) {
|
|
644
605
|
case 0:
|
|
645
606
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
646
|
-
if (
|
|
607
|
+
if (response.httpStatusCode == 204) {
|
|
647
608
|
return [2 /*return*/];
|
|
648
609
|
}
|
|
649
|
-
if (!(
|
|
650
|
-
|
|
651
|
-
|
|
610
|
+
if (!(response.httpStatusCode == 403 ||
|
|
611
|
+
response.httpStatusCode == 404 ||
|
|
612
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
613
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
652
614
|
return [4 /*yield*/, response.body.text()];
|
|
653
615
|
case 1:
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
""
|
|
657
|
-
|
|
616
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
617
|
+
try {
|
|
618
|
+
body_10 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
619
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_10);
|
|
620
|
+
}
|
|
621
|
+
catch (error) {
|
|
622
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
623
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
624
|
+
}
|
|
625
|
+
_g.label = 2;
|
|
658
626
|
case 2:
|
|
659
|
-
if (!(
|
|
660
|
-
|
|
661
|
-
|
|
627
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
628
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
629
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
662
630
|
return [4 /*yield*/, response.body.text()];
|
|
663
631
|
case 3:
|
|
664
|
-
|
|
665
|
-
"APIErrorResponse",
|
|
666
|
-
""]);
|
|
667
|
-
throw new exception_1.ApiException(404, body_20);
|
|
668
|
-
case 4:
|
|
669
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
670
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
671
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
672
|
-
return [4 /*yield*/, response.body.text()];
|
|
673
|
-
case 5:
|
|
674
|
-
body_21 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
675
|
-
"APIErrorResponse",
|
|
676
|
-
""]);
|
|
677
|
-
throw new exception_1.ApiException(429, body_21);
|
|
678
|
-
case 6:
|
|
679
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
680
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
681
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
682
|
-
return [4 /*yield*/, response.body.text()];
|
|
683
|
-
case 7:
|
|
684
|
-
body_22 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
632
|
+
body_11 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
685
633
|
"void",
|
|
686
634
|
""]);
|
|
687
|
-
return [2 /*return*/,
|
|
688
|
-
case
|
|
689
|
-
case
|
|
690
|
-
body = (
|
|
635
|
+
return [2 /*return*/, body_11];
|
|
636
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
637
|
+
case 5:
|
|
638
|
+
body = (_g.sent()) || "";
|
|
691
639
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
692
640
|
}
|
|
693
641
|
});
|
|
@@ -702,73 +650,108 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
702
650
|
*/
|
|
703
651
|
MetricsApiResponseProcessor.prototype.estimateMetricsOutputSeries = function (response) {
|
|
704
652
|
return __awaiter(this, void 0, void 0, function () {
|
|
705
|
-
var contentType,
|
|
706
|
-
return __generator(this, function (
|
|
707
|
-
switch (
|
|
653
|
+
var contentType, body_12, _a, _b, _c, _d, bodyText, _e, _f, body_13, body_14, _g, _h, _j, _k, body;
|
|
654
|
+
return __generator(this, function (_l) {
|
|
655
|
+
switch (_l.label) {
|
|
708
656
|
case 0:
|
|
709
657
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
710
|
-
if (!(
|
|
658
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
711
659
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
712
660
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
713
661
|
return [4 /*yield*/, response.body.text()];
|
|
714
662
|
case 1:
|
|
715
|
-
|
|
716
|
-
"MetricEstimateResponse"
|
|
717
|
-
|
|
718
|
-
return [2 /*return*/, body_23];
|
|
663
|
+
body_12 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
664
|
+
"MetricEstimateResponse"]);
|
|
665
|
+
return [2 /*return*/, body_12];
|
|
719
666
|
case 2:
|
|
720
|
-
if (!(
|
|
721
|
-
|
|
722
|
-
|
|
667
|
+
if (!(response.httpStatusCode == 400 ||
|
|
668
|
+
response.httpStatusCode == 403 ||
|
|
669
|
+
response.httpStatusCode == 404 ||
|
|
670
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
671
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
723
672
|
return [4 /*yield*/, response.body.text()];
|
|
724
673
|
case 3:
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
""
|
|
728
|
-
|
|
674
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
675
|
+
try {
|
|
676
|
+
body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
677
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_13);
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
681
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
682
|
+
}
|
|
683
|
+
_l.label = 4;
|
|
729
684
|
case 4:
|
|
730
|
-
if (!(
|
|
731
|
-
|
|
732
|
-
|
|
685
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
686
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
687
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
733
688
|
return [4 /*yield*/, response.body.text()];
|
|
734
689
|
case 5:
|
|
735
|
-
|
|
736
|
-
"
|
|
690
|
+
body_14 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
691
|
+
"MetricEstimateResponse",
|
|
737
692
|
""]);
|
|
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()];
|
|
693
|
+
return [2 /*return*/, body_14];
|
|
694
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
744
695
|
case 7:
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
696
|
+
body = (_l.sent()) || "";
|
|
697
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
/**
|
|
703
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
704
|
+
* to the expected objects
|
|
705
|
+
*
|
|
706
|
+
* @params response Response returned by the server for a request to listActiveMetricConfigurations
|
|
707
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
708
|
+
*/
|
|
709
|
+
MetricsApiResponseProcessor.prototype.listActiveMetricConfigurations = function (response) {
|
|
710
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
711
|
+
var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
|
|
712
|
+
return __generator(this, function (_l) {
|
|
713
|
+
switch (_l.label) {
|
|
714
|
+
case 0:
|
|
715
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
716
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
717
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
718
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
753
719
|
return [4 /*yield*/, response.body.text()];
|
|
754
|
-
case
|
|
755
|
-
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
720
|
+
case 1:
|
|
721
|
+
body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
722
|
+
"MetricSuggestedTagsAndAggregationsResponse"]);
|
|
723
|
+
return [2 /*return*/, body_15];
|
|
724
|
+
case 2:
|
|
725
|
+
if (!(response.httpStatusCode == 400 ||
|
|
726
|
+
response.httpStatusCode == 403 ||
|
|
727
|
+
response.httpStatusCode == 404 ||
|
|
728
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
729
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
763
730
|
return [4 /*yield*/, response.body.text()];
|
|
764
|
-
case
|
|
765
|
-
|
|
766
|
-
|
|
731
|
+
case 3:
|
|
732
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
733
|
+
try {
|
|
734
|
+
body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
735
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_16);
|
|
736
|
+
}
|
|
737
|
+
catch (error) {
|
|
738
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
739
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
740
|
+
}
|
|
741
|
+
_l.label = 4;
|
|
742
|
+
case 4:
|
|
743
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
744
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
745
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
746
|
+
return [4 /*yield*/, response.body.text()];
|
|
747
|
+
case 5:
|
|
748
|
+
body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
749
|
+
"MetricSuggestedTagsAndAggregationsResponse",
|
|
767
750
|
""]);
|
|
768
|
-
return [2 /*return*/,
|
|
769
|
-
case
|
|
770
|
-
case
|
|
771
|
-
body = (
|
|
751
|
+
return [2 /*return*/, body_17];
|
|
752
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
753
|
+
case 7:
|
|
754
|
+
body = (_l.sent()) || "";
|
|
772
755
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
773
756
|
}
|
|
774
757
|
});
|
|
@@ -783,63 +766,49 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
783
766
|
*/
|
|
784
767
|
MetricsApiResponseProcessor.prototype.listTagConfigurationByName = function (response) {
|
|
785
768
|
return __awaiter(this, void 0, void 0, function () {
|
|
786
|
-
var contentType,
|
|
787
|
-
return __generator(this, function (
|
|
788
|
-
switch (
|
|
769
|
+
var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, body_20, _g, _h, _j, _k, body;
|
|
770
|
+
return __generator(this, function (_l) {
|
|
771
|
+
switch (_l.label) {
|
|
789
772
|
case 0:
|
|
790
773
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
791
|
-
if (!(
|
|
774
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
792
775
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
793
776
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
794
777
|
return [4 /*yield*/, response.body.text()];
|
|
795
778
|
case 1:
|
|
796
|
-
|
|
797
|
-
"MetricTagConfigurationResponse"
|
|
798
|
-
|
|
799
|
-
return [2 /*return*/, body_29];
|
|
779
|
+
body_18 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
780
|
+
"MetricTagConfigurationResponse"]);
|
|
781
|
+
return [2 /*return*/, body_18];
|
|
800
782
|
case 2:
|
|
801
|
-
if (!(
|
|
802
|
-
|
|
803
|
-
|
|
783
|
+
if (!(response.httpStatusCode == 403 ||
|
|
784
|
+
response.httpStatusCode == 404 ||
|
|
785
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
786
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
804
787
|
return [4 /*yield*/, response.body.text()];
|
|
805
788
|
case 3:
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
""
|
|
809
|
-
|
|
789
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
790
|
+
try {
|
|
791
|
+
body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
792
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_19);
|
|
793
|
+
}
|
|
794
|
+
catch (error) {
|
|
795
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
796
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
797
|
+
}
|
|
798
|
+
_l.label = 4;
|
|
810
799
|
case 4:
|
|
811
|
-
if (!(
|
|
812
|
-
|
|
813
|
-
|
|
800
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
801
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
802
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
814
803
|
return [4 /*yield*/, response.body.text()];
|
|
815
804
|
case 5:
|
|
816
|
-
|
|
817
|
-
"APIErrorResponse",
|
|
818
|
-
""]);
|
|
819
|
-
throw new exception_1.ApiException(404, body_31);
|
|
820
|
-
case 6:
|
|
821
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
822
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
823
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
824
|
-
return [4 /*yield*/, response.body.text()];
|
|
825
|
-
case 7:
|
|
826
|
-
body_32 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
827
|
-
"APIErrorResponse",
|
|
828
|
-
""]);
|
|
829
|
-
throw new exception_1.ApiException(429, body_32);
|
|
830
|
-
case 8:
|
|
831
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
832
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
833
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
834
|
-
return [4 /*yield*/, response.body.text()];
|
|
835
|
-
case 9:
|
|
836
|
-
body_33 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
805
|
+
body_20 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
837
806
|
"MetricTagConfigurationResponse",
|
|
838
807
|
""]);
|
|
839
|
-
return [2 /*return*/,
|
|
840
|
-
case
|
|
841
|
-
case
|
|
842
|
-
body = (
|
|
808
|
+
return [2 /*return*/, body_20];
|
|
809
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
810
|
+
case 7:
|
|
811
|
+
body = (_l.sent()) || "";
|
|
843
812
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
844
813
|
}
|
|
845
814
|
});
|
|
@@ -854,63 +823,49 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
854
823
|
*/
|
|
855
824
|
MetricsApiResponseProcessor.prototype.listTagConfigurations = function (response) {
|
|
856
825
|
return __awaiter(this, void 0, void 0, function () {
|
|
857
|
-
var contentType,
|
|
858
|
-
return __generator(this, function (
|
|
859
|
-
switch (
|
|
826
|
+
var contentType, body_21, _a, _b, _c, _d, bodyText, _e, _f, body_22, body_23, _g, _h, _j, _k, body;
|
|
827
|
+
return __generator(this, function (_l) {
|
|
828
|
+
switch (_l.label) {
|
|
860
829
|
case 0:
|
|
861
830
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
862
|
-
if (!(
|
|
831
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
863
832
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
864
833
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
865
834
|
return [4 /*yield*/, response.body.text()];
|
|
866
835
|
case 1:
|
|
867
|
-
|
|
868
|
-
"MetricsAndMetricTagConfigurationsResponse"
|
|
869
|
-
|
|
870
|
-
return [2 /*return*/, body_34];
|
|
836
|
+
body_21 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
837
|
+
"MetricsAndMetricTagConfigurationsResponse"]);
|
|
838
|
+
return [2 /*return*/, body_21];
|
|
871
839
|
case 2:
|
|
872
|
-
if (!(
|
|
873
|
-
|
|
874
|
-
|
|
840
|
+
if (!(response.httpStatusCode == 400 ||
|
|
841
|
+
response.httpStatusCode == 403 ||
|
|
842
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
843
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
875
844
|
return [4 /*yield*/, response.body.text()];
|
|
876
845
|
case 3:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
""
|
|
880
|
-
|
|
846
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
847
|
+
try {
|
|
848
|
+
body_22 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
849
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_22);
|
|
850
|
+
}
|
|
851
|
+
catch (error) {
|
|
852
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
853
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
854
|
+
}
|
|
855
|
+
_l.label = 4;
|
|
881
856
|
case 4:
|
|
882
|
-
if (!(
|
|
883
|
-
|
|
884
|
-
|
|
857
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
858
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
859
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
885
860
|
return [4 /*yield*/, response.body.text()];
|
|
886
861
|
case 5:
|
|
887
|
-
|
|
888
|
-
"APIErrorResponse",
|
|
889
|
-
""]);
|
|
890
|
-
throw new exception_1.ApiException(403, body_36);
|
|
891
|
-
case 6:
|
|
892
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
893
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
894
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
895
|
-
return [4 /*yield*/, response.body.text()];
|
|
896
|
-
case 7:
|
|
897
|
-
body_37 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
898
|
-
"APIErrorResponse",
|
|
899
|
-
""]);
|
|
900
|
-
throw new exception_1.ApiException(429, body_37);
|
|
901
|
-
case 8:
|
|
902
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
903
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
904
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
905
|
-
return [4 /*yield*/, response.body.text()];
|
|
906
|
-
case 9:
|
|
907
|
-
body_38 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
862
|
+
body_23 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
908
863
|
"MetricsAndMetricTagConfigurationsResponse",
|
|
909
864
|
""]);
|
|
910
|
-
return [2 /*return*/,
|
|
911
|
-
case
|
|
912
|
-
case
|
|
913
|
-
body = (
|
|
865
|
+
return [2 /*return*/, body_23];
|
|
866
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
867
|
+
case 7:
|
|
868
|
+
body = (_l.sent()) || "";
|
|
914
869
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
915
870
|
}
|
|
916
871
|
});
|
|
@@ -925,73 +880,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
925
880
|
*/
|
|
926
881
|
MetricsApiResponseProcessor.prototype.listTagsByMetricName = function (response) {
|
|
927
882
|
return __awaiter(this, void 0, void 0, function () {
|
|
928
|
-
var contentType,
|
|
929
|
-
return __generator(this, function (
|
|
930
|
-
switch (
|
|
883
|
+
var contentType, body_24, _a, _b, _c, _d, bodyText, _e, _f, body_25, body_26, _g, _h, _j, _k, body;
|
|
884
|
+
return __generator(this, function (_l) {
|
|
885
|
+
switch (_l.label) {
|
|
931
886
|
case 0:
|
|
932
887
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
933
|
-
if (!(
|
|
888
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
934
889
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
935
890
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
936
891
|
return [4 /*yield*/, response.body.text()];
|
|
937
892
|
case 1:
|
|
938
|
-
|
|
939
|
-
"MetricAllTagsResponse"
|
|
940
|
-
|
|
941
|
-
return [2 /*return*/, body_39];
|
|
893
|
+
body_24 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
894
|
+
"MetricAllTagsResponse"]);
|
|
895
|
+
return [2 /*return*/, body_24];
|
|
942
896
|
case 2:
|
|
943
|
-
if (!(
|
|
944
|
-
|
|
945
|
-
|
|
897
|
+
if (!(response.httpStatusCode == 400 ||
|
|
898
|
+
response.httpStatusCode == 403 ||
|
|
899
|
+
response.httpStatusCode == 404 ||
|
|
900
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
901
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
946
902
|
return [4 /*yield*/, response.body.text()];
|
|
947
903
|
case 3:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
""
|
|
951
|
-
|
|
904
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
905
|
+
try {
|
|
906
|
+
body_25 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
907
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_25);
|
|
908
|
+
}
|
|
909
|
+
catch (error) {
|
|
910
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
911
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
912
|
+
}
|
|
913
|
+
_l.label = 4;
|
|
952
914
|
case 4:
|
|
953
|
-
if (!(
|
|
954
|
-
|
|
955
|
-
|
|
915
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
916
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
917
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
956
918
|
return [4 /*yield*/, response.body.text()];
|
|
957
919
|
case 5:
|
|
958
|
-
|
|
959
|
-
"APIErrorResponse",
|
|
960
|
-
""]);
|
|
961
|
-
throw new exception_1.ApiException(403, body_41);
|
|
962
|
-
case 6:
|
|
963
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
964
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
965
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
966
|
-
return [4 /*yield*/, response.body.text()];
|
|
967
|
-
case 7:
|
|
968
|
-
body_42 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
969
|
-
"APIErrorResponse",
|
|
970
|
-
""]);
|
|
971
|
-
throw new exception_1.ApiException(404, body_42);
|
|
972
|
-
case 8:
|
|
973
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
974
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
975
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
976
|
-
return [4 /*yield*/, response.body.text()];
|
|
977
|
-
case 9:
|
|
978
|
-
body_43 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
979
|
-
"APIErrorResponse",
|
|
980
|
-
""]);
|
|
981
|
-
throw new exception_1.ApiException(429, body_43);
|
|
982
|
-
case 10:
|
|
983
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
984
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
985
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
986
|
-
return [4 /*yield*/, response.body.text()];
|
|
987
|
-
case 11:
|
|
988
|
-
body_44 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
920
|
+
body_26 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
989
921
|
"MetricAllTagsResponse",
|
|
990
922
|
""]);
|
|
991
|
-
return [2 /*return*/,
|
|
992
|
-
case
|
|
993
|
-
case
|
|
994
|
-
body = (
|
|
923
|
+
return [2 /*return*/, body_26];
|
|
924
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
925
|
+
case 7:
|
|
926
|
+
body = (_l.sent()) || "";
|
|
995
927
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
996
928
|
}
|
|
997
929
|
});
|
|
@@ -1006,73 +938,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
1006
938
|
*/
|
|
1007
939
|
MetricsApiResponseProcessor.prototype.listVolumesByMetricName = function (response) {
|
|
1008
940
|
return __awaiter(this, void 0, void 0, function () {
|
|
1009
|
-
var contentType,
|
|
1010
|
-
return __generator(this, function (
|
|
1011
|
-
switch (
|
|
941
|
+
var contentType, body_27, _a, _b, _c, _d, bodyText, _e, _f, body_28, body_29, _g, _h, _j, _k, body;
|
|
942
|
+
return __generator(this, function (_l) {
|
|
943
|
+
switch (_l.label) {
|
|
1012
944
|
case 0:
|
|
1013
945
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1014
|
-
if (!(
|
|
946
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1015
947
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1016
948
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1017
949
|
return [4 /*yield*/, response.body.text()];
|
|
1018
950
|
case 1:
|
|
1019
|
-
|
|
1020
|
-
"MetricVolumesResponse"
|
|
1021
|
-
|
|
1022
|
-
return [2 /*return*/, body_45];
|
|
951
|
+
body_27 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
952
|
+
"MetricVolumesResponse"]);
|
|
953
|
+
return [2 /*return*/, body_27];
|
|
1023
954
|
case 2:
|
|
1024
|
-
if (!(
|
|
1025
|
-
|
|
1026
|
-
|
|
955
|
+
if (!(response.httpStatusCode == 400 ||
|
|
956
|
+
response.httpStatusCode == 403 ||
|
|
957
|
+
response.httpStatusCode == 404 ||
|
|
958
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
959
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1027
960
|
return [4 /*yield*/, response.body.text()];
|
|
1028
961
|
case 3:
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
""
|
|
1032
|
-
|
|
962
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
963
|
+
try {
|
|
964
|
+
body_28 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
965
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_28);
|
|
966
|
+
}
|
|
967
|
+
catch (error) {
|
|
968
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
969
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
970
|
+
}
|
|
971
|
+
_l.label = 4;
|
|
1033
972
|
case 4:
|
|
1034
|
-
if (!(
|
|
1035
|
-
|
|
1036
|
-
|
|
973
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
974
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
975
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1037
976
|
return [4 /*yield*/, response.body.text()];
|
|
1038
977
|
case 5:
|
|
1039
|
-
|
|
1040
|
-
"APIErrorResponse",
|
|
1041
|
-
""]);
|
|
1042
|
-
throw new exception_1.ApiException(403, body_47);
|
|
1043
|
-
case 6:
|
|
1044
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1045
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1046
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1047
|
-
return [4 /*yield*/, response.body.text()];
|
|
1048
|
-
case 7:
|
|
1049
|
-
body_48 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1050
|
-
"APIErrorResponse",
|
|
1051
|
-
""]);
|
|
1052
|
-
throw new exception_1.ApiException(404, body_48);
|
|
1053
|
-
case 8:
|
|
1054
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1055
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1056
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1057
|
-
return [4 /*yield*/, response.body.text()];
|
|
1058
|
-
case 9:
|
|
1059
|
-
body_49 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1060
|
-
"APIErrorResponse",
|
|
1061
|
-
""]);
|
|
1062
|
-
throw new exception_1.ApiException(429, body_49);
|
|
1063
|
-
case 10:
|
|
1064
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1065
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1066
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1067
|
-
return [4 /*yield*/, response.body.text()];
|
|
1068
|
-
case 11:
|
|
1069
|
-
body_50 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
978
|
+
body_29 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1070
979
|
"MetricVolumesResponse",
|
|
1071
980
|
""]);
|
|
1072
|
-
return [2 /*return*/,
|
|
1073
|
-
case
|
|
1074
|
-
case
|
|
1075
|
-
body = (
|
|
981
|
+
return [2 /*return*/, body_29];
|
|
982
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
983
|
+
case 7:
|
|
984
|
+
body = (_l.sent()) || "";
|
|
1076
985
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1077
986
|
}
|
|
1078
987
|
});
|
|
@@ -1087,83 +996,51 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
1087
996
|
*/
|
|
1088
997
|
MetricsApiResponseProcessor.prototype.submitMetrics = function (response) {
|
|
1089
998
|
return __awaiter(this, void 0, void 0, function () {
|
|
1090
|
-
var contentType,
|
|
1091
|
-
return __generator(this, function (
|
|
1092
|
-
switch (
|
|
999
|
+
var contentType, body_30, _a, _b, _c, _d, bodyText, _e, _f, body_31, body_32, _g, _h, _j, _k, body;
|
|
1000
|
+
return __generator(this, function (_l) {
|
|
1001
|
+
switch (_l.label) {
|
|
1093
1002
|
case 0:
|
|
1094
1003
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1095
|
-
if (!(
|
|
1004
|
+
if (!(response.httpStatusCode == 202)) return [3 /*break*/, 2];
|
|
1096
1005
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1097
1006
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1098
1007
|
return [4 /*yield*/, response.body.text()];
|
|
1099
1008
|
case 1:
|
|
1100
|
-
|
|
1101
|
-
"IntakePayloadAccepted"
|
|
1102
|
-
|
|
1103
|
-
return [2 /*return*/, body_51];
|
|
1009
|
+
body_30 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1010
|
+
"IntakePayloadAccepted"]);
|
|
1011
|
+
return [2 /*return*/, body_30];
|
|
1104
1012
|
case 2:
|
|
1105
|
-
if (!(
|
|
1106
|
-
|
|
1107
|
-
|
|
1013
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1014
|
+
response.httpStatusCode == 403 ||
|
|
1015
|
+
response.httpStatusCode == 408 ||
|
|
1016
|
+
response.httpStatusCode == 413 ||
|
|
1017
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1018
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1108
1019
|
return [4 /*yield*/, response.body.text()];
|
|
1109
1020
|
case 3:
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
""
|
|
1113
|
-
|
|
1021
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1022
|
+
try {
|
|
1023
|
+
body_31 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1024
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_31);
|
|
1025
|
+
}
|
|
1026
|
+
catch (error) {
|
|
1027
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1028
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1029
|
+
}
|
|
1030
|
+
_l.label = 4;
|
|
1114
1031
|
case 4:
|
|
1115
|
-
if (!(
|
|
1116
|
-
|
|
1117
|
-
|
|
1032
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1033
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1034
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1118
1035
|
return [4 /*yield*/, response.body.text()];
|
|
1119
1036
|
case 5:
|
|
1120
|
-
|
|
1121
|
-
"APIErrorResponse",
|
|
1122
|
-
""]);
|
|
1123
|
-
throw new exception_1.ApiException(403, body_53);
|
|
1124
|
-
case 6:
|
|
1125
|
-
if (!(0, util_1.isCodeInRange)("408", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1126
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1127
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1128
|
-
return [4 /*yield*/, response.body.text()];
|
|
1129
|
-
case 7:
|
|
1130
|
-
body_54 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
|
|
1131
|
-
"APIErrorResponse",
|
|
1132
|
-
""]);
|
|
1133
|
-
throw new exception_1.ApiException(408, body_54);
|
|
1134
|
-
case 8:
|
|
1135
|
-
if (!(0, util_1.isCodeInRange)("413", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1136
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1137
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1138
|
-
return [4 /*yield*/, response.body.text()];
|
|
1139
|
-
case 9:
|
|
1140
|
-
body_55 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
|
|
1141
|
-
"APIErrorResponse",
|
|
1142
|
-
""]);
|
|
1143
|
-
throw new exception_1.ApiException(413, body_55);
|
|
1144
|
-
case 10:
|
|
1145
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
|
|
1146
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1147
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1148
|
-
return [4 /*yield*/, response.body.text()];
|
|
1149
|
-
case 11:
|
|
1150
|
-
body_56 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
|
|
1151
|
-
"APIErrorResponse",
|
|
1152
|
-
""]);
|
|
1153
|
-
throw new exception_1.ApiException(429, body_56);
|
|
1154
|
-
case 12:
|
|
1155
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
|
|
1156
|
-
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1157
|
-
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1158
|
-
return [4 /*yield*/, response.body.text()];
|
|
1159
|
-
case 13:
|
|
1160
|
-
body_57 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
|
|
1037
|
+
body_32 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1161
1038
|
"IntakePayloadAccepted",
|
|
1162
1039
|
""]);
|
|
1163
|
-
return [2 /*return*/,
|
|
1164
|
-
case
|
|
1165
|
-
case
|
|
1166
|
-
body = (
|
|
1040
|
+
return [2 /*return*/, body_32];
|
|
1041
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1042
|
+
case 7:
|
|
1043
|
+
body = (_l.sent()) || "";
|
|
1167
1044
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1168
1045
|
}
|
|
1169
1046
|
});
|
|
@@ -1178,73 +1055,50 @@ var MetricsApiResponseProcessor = /** @class */ (function () {
|
|
|
1178
1055
|
*/
|
|
1179
1056
|
MetricsApiResponseProcessor.prototype.updateTagConfiguration = function (response) {
|
|
1180
1057
|
return __awaiter(this, void 0, void 0, function () {
|
|
1181
|
-
var contentType,
|
|
1182
|
-
return __generator(this, function (
|
|
1183
|
-
switch (
|
|
1058
|
+
var contentType, body_33, _a, _b, _c, _d, bodyText, _e, _f, body_34, body_35, _g, _h, _j, _k, body;
|
|
1059
|
+
return __generator(this, function (_l) {
|
|
1060
|
+
switch (_l.label) {
|
|
1184
1061
|
case 0:
|
|
1185
1062
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1186
|
-
if (!(
|
|
1063
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1187
1064
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1188
1065
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1189
1066
|
return [4 /*yield*/, response.body.text()];
|
|
1190
1067
|
case 1:
|
|
1191
|
-
|
|
1192
|
-
"MetricTagConfigurationResponse"
|
|
1193
|
-
|
|
1194
|
-
return [2 /*return*/, body_58];
|
|
1068
|
+
body_33 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1069
|
+
"MetricTagConfigurationResponse"]);
|
|
1070
|
+
return [2 /*return*/, body_33];
|
|
1195
1071
|
case 2:
|
|
1196
|
-
if (!(
|
|
1197
|
-
|
|
1198
|
-
|
|
1072
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1073
|
+
response.httpStatusCode == 403 ||
|
|
1074
|
+
response.httpStatusCode == 422 ||
|
|
1075
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1076
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1199
1077
|
return [4 /*yield*/, response.body.text()];
|
|
1200
1078
|
case 3:
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
""
|
|
1204
|
-
|
|
1079
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1080
|
+
try {
|
|
1081
|
+
body_34 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1082
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_34);
|
|
1083
|
+
}
|
|
1084
|
+
catch (error) {
|
|
1085
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1086
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1087
|
+
}
|
|
1088
|
+
_l.label = 4;
|
|
1205
1089
|
case 4:
|
|
1206
|
-
if (!(
|
|
1207
|
-
|
|
1208
|
-
|
|
1090
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1091
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1092
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1209
1093
|
return [4 /*yield*/, response.body.text()];
|
|
1210
1094
|
case 5:
|
|
1211
|
-
|
|
1212
|
-
"APIErrorResponse",
|
|
1213
|
-
""]);
|
|
1214
|
-
throw new exception_1.ApiException(403, body_60);
|
|
1215
|
-
case 6:
|
|
1216
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1217
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1218
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1219
|
-
return [4 /*yield*/, response.body.text()];
|
|
1220
|
-
case 7:
|
|
1221
|
-
body_61 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1222
|
-
"APIErrorResponse",
|
|
1223
|
-
""]);
|
|
1224
|
-
throw new exception_1.ApiException(422, body_61);
|
|
1225
|
-
case 8:
|
|
1226
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1227
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1228
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1229
|
-
return [4 /*yield*/, response.body.text()];
|
|
1230
|
-
case 9:
|
|
1231
|
-
body_62 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1232
|
-
"APIErrorResponse",
|
|
1233
|
-
""]);
|
|
1234
|
-
throw new exception_1.ApiException(429, body_62);
|
|
1235
|
-
case 10:
|
|
1236
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1237
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1238
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1239
|
-
return [4 /*yield*/, response.body.text()];
|
|
1240
|
-
case 11:
|
|
1241
|
-
body_63 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1095
|
+
body_35 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1242
1096
|
"MetricTagConfigurationResponse",
|
|
1243
1097
|
""]);
|
|
1244
|
-
return [2 /*return*/,
|
|
1245
|
-
case
|
|
1246
|
-
case
|
|
1247
|
-
body = (
|
|
1098
|
+
return [2 /*return*/, body_35];
|
|
1099
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1100
|
+
case 7:
|
|
1101
|
+
body = (_l.sent()) || "";
|
|
1248
1102
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1249
1103
|
}
|
|
1250
1104
|
});
|
|
@@ -1348,6 +1202,21 @@ var MetricsApi = /** @class */ (function () {
|
|
|
1348
1202
|
});
|
|
1349
1203
|
});
|
|
1350
1204
|
};
|
|
1205
|
+
/**
|
|
1206
|
+
* List tags and aggregations that are actively queried on dashboards and monitors for a given metric name.
|
|
1207
|
+
* @param param The request object
|
|
1208
|
+
*/
|
|
1209
|
+
MetricsApi.prototype.listActiveMetricConfigurations = function (param, options) {
|
|
1210
|
+
var _this = this;
|
|
1211
|
+
var requestContextPromise = this.requestFactory.listActiveMetricConfigurations(param.metricName, param.windowSeconds, options);
|
|
1212
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1213
|
+
return _this.configuration.httpApi
|
|
1214
|
+
.send(requestContext)
|
|
1215
|
+
.then(function (responseContext) {
|
|
1216
|
+
return _this.responseProcessor.listActiveMetricConfigurations(responseContext);
|
|
1217
|
+
});
|
|
1218
|
+
});
|
|
1219
|
+
};
|
|
1351
1220
|
/**
|
|
1352
1221
|
* Returns the tag configuration for the given metric name.
|
|
1353
1222
|
* @param param The request object
|
|
@@ -1364,14 +1233,13 @@ var MetricsApi = /** @class */ (function () {
|
|
|
1364
1233
|
});
|
|
1365
1234
|
};
|
|
1366
1235
|
/**
|
|
1367
|
-
* Returns all
|
|
1368
|
-
* (with additional filters if specified).
|
|
1236
|
+
* Returns all metrics (matching additional filters if specified).
|
|
1369
1237
|
* @param param The request object
|
|
1370
1238
|
*/
|
|
1371
1239
|
MetricsApi.prototype.listTagConfigurations = function (param, options) {
|
|
1372
1240
|
var _this = this;
|
|
1373
1241
|
if (param === void 0) { param = {}; }
|
|
1374
|
-
var requestContextPromise = this.requestFactory.listTagConfigurations(param.filterConfigured, param.filterTagsConfigured, param.filterMetricType, param.filterIncludePercentiles, param.filterTags, param.windowSeconds, options);
|
|
1242
|
+
var requestContextPromise = this.requestFactory.listTagConfigurations(param.filterConfigured, param.filterTagsConfigured, param.filterMetricType, param.filterIncludePercentiles, param.filterQueried, param.filterTags, param.windowSeconds, options);
|
|
1375
1243
|
return requestContextPromise.then(function (requestContext) {
|
|
1376
1244
|
return _this.configuration.httpApi
|
|
1377
1245
|
.send(requestContext)
|