@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
|
@@ -67,9 +67,9 @@ exports.RUMApi = exports.RUMApiResponseProcessor = exports.RUMApiRequestFactory
|
|
|
67
67
|
var baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
68
68
|
var configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
69
69
|
var http_1 = require("../../datadog-api-client-common/http/http");
|
|
70
|
+
var logger_1 = require("../../../logger");
|
|
70
71
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
71
72
|
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
72
|
-
var util_1 = require("../../datadog-api-client-common/util");
|
|
73
73
|
var RUMQueryPageOptions_1 = require("../models/RUMQueryPageOptions");
|
|
74
74
|
var RUMApiRequestFactory = /** @class */ (function (_super) {
|
|
75
75
|
__extends(RUMApiRequestFactory, _super);
|
|
@@ -309,63 +309,49 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
309
309
|
*/
|
|
310
310
|
RUMApiResponseProcessor.prototype.aggregateRUMEvents = function (response) {
|
|
311
311
|
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
313
|
-
return __generator(this, function (
|
|
314
|
-
switch (
|
|
312
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
313
|
+
return __generator(this, function (_l) {
|
|
314
|
+
switch (_l.label) {
|
|
315
315
|
case 0:
|
|
316
316
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
317
|
-
if (!(
|
|
317
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
318
318
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
319
319
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
320
320
|
return [4 /*yield*/, response.body.text()];
|
|
321
321
|
case 1:
|
|
322
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
323
|
-
"RUMAnalyticsAggregateResponse"
|
|
324
|
-
""]);
|
|
322
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
323
|
+
"RUMAnalyticsAggregateResponse"]);
|
|
325
324
|
return [2 /*return*/, body_1];
|
|
326
325
|
case 2:
|
|
327
|
-
if (!(
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
if (!(response.httpStatusCode == 400 ||
|
|
327
|
+
response.httpStatusCode == 403 ||
|
|
328
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
329
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
330
330
|
return [4 /*yield*/, response.body.text()];
|
|
331
331
|
case 3:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
""
|
|
335
|
-
|
|
332
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
333
|
+
try {
|
|
334
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
335
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
336
|
+
}
|
|
337
|
+
catch (error) {
|
|
338
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
339
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
340
|
+
}
|
|
341
|
+
_l.label = 4;
|
|
336
342
|
case 4:
|
|
337
|
-
if (!(
|
|
338
|
-
|
|
339
|
-
|
|
343
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
344
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
345
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
340
346
|
return [4 /*yield*/, response.body.text()];
|
|
341
347
|
case 5:
|
|
342
|
-
body_3 =
|
|
343
|
-
"APIErrorResponse",
|
|
344
|
-
""]);
|
|
345
|
-
throw new exception_1.ApiException(403, body_3);
|
|
346
|
-
case 6:
|
|
347
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
348
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
349
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
350
|
-
return [4 /*yield*/, response.body.text()];
|
|
351
|
-
case 7:
|
|
352
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
353
|
-
"APIErrorResponse",
|
|
354
|
-
""]);
|
|
355
|
-
throw new exception_1.ApiException(429, body_4);
|
|
356
|
-
case 8:
|
|
357
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
358
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
359
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
360
|
-
return [4 /*yield*/, response.body.text()];
|
|
361
|
-
case 9:
|
|
362
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
348
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
363
349
|
"RUMAnalyticsAggregateResponse",
|
|
364
350
|
""]);
|
|
365
|
-
return [2 /*return*/,
|
|
366
|
-
case
|
|
367
|
-
case
|
|
368
|
-
body = (
|
|
351
|
+
return [2 /*return*/, body_3];
|
|
352
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
353
|
+
case 7:
|
|
354
|
+
body = (_l.sent()) || "";
|
|
369
355
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
370
356
|
}
|
|
371
357
|
});
|
|
@@ -380,53 +366,47 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
380
366
|
*/
|
|
381
367
|
RUMApiResponseProcessor.prototype.createRUMApplication = function (response) {
|
|
382
368
|
return __awaiter(this, void 0, void 0, function () {
|
|
383
|
-
var contentType,
|
|
384
|
-
return __generator(this, function (
|
|
385
|
-
switch (
|
|
369
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
370
|
+
return __generator(this, function (_l) {
|
|
371
|
+
switch (_l.label) {
|
|
386
372
|
case 0:
|
|
387
373
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
388
|
-
if (!(
|
|
374
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
389
375
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
390
376
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
391
377
|
return [4 /*yield*/, response.body.text()];
|
|
392
378
|
case 1:
|
|
393
|
-
|
|
394
|
-
"RUMApplicationResponse"
|
|
395
|
-
|
|
396
|
-
return [2 /*return*/, body_6];
|
|
379
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
380
|
+
"RUMApplicationResponse"]);
|
|
381
|
+
return [2 /*return*/, body_4];
|
|
397
382
|
case 2:
|
|
398
|
-
if (!(
|
|
399
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
400
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
383
|
+
if (!(response.httpStatusCode == 400 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
384
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
401
385
|
return [4 /*yield*/, response.body.text()];
|
|
402
386
|
case 3:
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
""
|
|
406
|
-
|
|
387
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
388
|
+
try {
|
|
389
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
390
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
391
|
+
}
|
|
392
|
+
catch (error) {
|
|
393
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
394
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
395
|
+
}
|
|
396
|
+
_l.label = 4;
|
|
407
397
|
case 4:
|
|
408
|
-
if (!(
|
|
409
|
-
|
|
410
|
-
|
|
398
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
399
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
400
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
411
401
|
return [4 /*yield*/, response.body.text()];
|
|
412
402
|
case 5:
|
|
413
|
-
|
|
414
|
-
"APIErrorResponse",
|
|
415
|
-
""]);
|
|
416
|
-
throw new exception_1.ApiException(429, body_8);
|
|
417
|
-
case 6:
|
|
418
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
419
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
420
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
421
|
-
return [4 /*yield*/, response.body.text()];
|
|
422
|
-
case 7:
|
|
423
|
-
body_9 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
403
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
424
404
|
"RUMApplicationResponse",
|
|
425
405
|
""]);
|
|
426
|
-
return [2 /*return*/,
|
|
427
|
-
case
|
|
428
|
-
case
|
|
429
|
-
body = (
|
|
406
|
+
return [2 /*return*/, body_6];
|
|
407
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
408
|
+
case 7:
|
|
409
|
+
body = (_l.sent()) || "";
|
|
430
410
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
431
411
|
}
|
|
432
412
|
});
|
|
@@ -441,46 +421,41 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
441
421
|
*/
|
|
442
422
|
RUMApiResponseProcessor.prototype.deleteRUMApplication = function (response) {
|
|
443
423
|
return __awaiter(this, void 0, void 0, function () {
|
|
444
|
-
var contentType,
|
|
445
|
-
return __generator(this, function (
|
|
446
|
-
switch (
|
|
424
|
+
var contentType, bodyText, _a, _b, body_7, body_8, _c, _d, _e, _f, body;
|
|
425
|
+
return __generator(this, function (_g) {
|
|
426
|
+
switch (_g.label) {
|
|
447
427
|
case 0:
|
|
448
428
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
449
|
-
if (
|
|
429
|
+
if (response.httpStatusCode == 204) {
|
|
450
430
|
return [2 /*return*/];
|
|
451
431
|
}
|
|
452
|
-
if (!(
|
|
453
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).
|
|
454
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
432
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
433
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
455
434
|
return [4 /*yield*/, response.body.text()];
|
|
456
435
|
case 1:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
""
|
|
460
|
-
|
|
436
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
437
|
+
try {
|
|
438
|
+
body_7 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
439
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_7);
|
|
440
|
+
}
|
|
441
|
+
catch (error) {
|
|
442
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
443
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
444
|
+
}
|
|
445
|
+
_g.label = 2;
|
|
461
446
|
case 2:
|
|
462
|
-
if (!(
|
|
463
|
-
|
|
464
|
-
|
|
447
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
448
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
449
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
465
450
|
return [4 /*yield*/, response.body.text()];
|
|
466
451
|
case 3:
|
|
467
|
-
|
|
468
|
-
"APIErrorResponse",
|
|
469
|
-
""]);
|
|
470
|
-
throw new exception_1.ApiException(429, body_11);
|
|
471
|
-
case 4:
|
|
472
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
473
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
474
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
475
|
-
return [4 /*yield*/, response.body.text()];
|
|
476
|
-
case 5:
|
|
477
|
-
body_12 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
|
|
452
|
+
body_8 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
478
453
|
"void",
|
|
479
454
|
""]);
|
|
480
|
-
return [2 /*return*/,
|
|
481
|
-
case
|
|
482
|
-
case
|
|
483
|
-
body = (
|
|
455
|
+
return [2 /*return*/, body_8];
|
|
456
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
457
|
+
case 5:
|
|
458
|
+
body = (_g.sent()) || "";
|
|
484
459
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
485
460
|
}
|
|
486
461
|
});
|
|
@@ -495,53 +470,47 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
495
470
|
*/
|
|
496
471
|
RUMApiResponseProcessor.prototype.getRUMApplication = function (response) {
|
|
497
472
|
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
-
var contentType,
|
|
499
|
-
return __generator(this, function (
|
|
500
|
-
switch (
|
|
473
|
+
var contentType, body_9, _a, _b, _c, _d, bodyText, _e, _f, body_10, body_11, _g, _h, _j, _k, body;
|
|
474
|
+
return __generator(this, function (_l) {
|
|
475
|
+
switch (_l.label) {
|
|
501
476
|
case 0:
|
|
502
477
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
503
|
-
if (!(
|
|
478
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
504
479
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
505
480
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
506
481
|
return [4 /*yield*/, response.body.text()];
|
|
507
482
|
case 1:
|
|
508
|
-
|
|
509
|
-
"RUMApplicationResponse"
|
|
510
|
-
|
|
511
|
-
return [2 /*return*/, body_13];
|
|
483
|
+
body_9 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
484
|
+
"RUMApplicationResponse"]);
|
|
485
|
+
return [2 /*return*/, body_9];
|
|
512
486
|
case 2:
|
|
513
|
-
if (!(
|
|
514
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
515
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
487
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
488
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
516
489
|
return [4 /*yield*/, response.body.text()];
|
|
517
490
|
case 3:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
""
|
|
521
|
-
|
|
491
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
492
|
+
try {
|
|
493
|
+
body_10 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
494
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_10);
|
|
495
|
+
}
|
|
496
|
+
catch (error) {
|
|
497
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
498
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
499
|
+
}
|
|
500
|
+
_l.label = 4;
|
|
522
501
|
case 4:
|
|
523
|
-
if (!(
|
|
524
|
-
|
|
525
|
-
|
|
502
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
503
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
504
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
526
505
|
return [4 /*yield*/, response.body.text()];
|
|
527
506
|
case 5:
|
|
528
|
-
|
|
529
|
-
"APIErrorResponse",
|
|
530
|
-
""]);
|
|
531
|
-
throw new exception_1.ApiException(429, body_15);
|
|
532
|
-
case 6:
|
|
533
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
534
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
535
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
536
|
-
return [4 /*yield*/, response.body.text()];
|
|
537
|
-
case 7:
|
|
538
|
-
body_16 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
507
|
+
body_11 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
539
508
|
"RUMApplicationResponse",
|
|
540
509
|
""]);
|
|
541
|
-
return [2 /*return*/,
|
|
542
|
-
case
|
|
543
|
-
case
|
|
544
|
-
body = (
|
|
510
|
+
return [2 /*return*/, body_11];
|
|
511
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
512
|
+
case 7:
|
|
513
|
+
body = (_l.sent()) || "";
|
|
545
514
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
546
515
|
}
|
|
547
516
|
});
|
|
@@ -556,53 +525,47 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
556
525
|
*/
|
|
557
526
|
RUMApiResponseProcessor.prototype.getRUMApplications = function (response) {
|
|
558
527
|
return __awaiter(this, void 0, void 0, function () {
|
|
559
|
-
var contentType,
|
|
560
|
-
return __generator(this, function (
|
|
561
|
-
switch (
|
|
528
|
+
var contentType, body_12, _a, _b, _c, _d, bodyText, _e, _f, body_13, body_14, _g, _h, _j, _k, body;
|
|
529
|
+
return __generator(this, function (_l) {
|
|
530
|
+
switch (_l.label) {
|
|
562
531
|
case 0:
|
|
563
532
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
564
|
-
if (!(
|
|
533
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
565
534
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
566
535
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
567
536
|
return [4 /*yield*/, response.body.text()];
|
|
568
537
|
case 1:
|
|
569
|
-
|
|
570
|
-
"RUMApplicationsResponse"
|
|
571
|
-
|
|
572
|
-
return [2 /*return*/, body_17];
|
|
538
|
+
body_12 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
539
|
+
"RUMApplicationsResponse"]);
|
|
540
|
+
return [2 /*return*/, body_12];
|
|
573
541
|
case 2:
|
|
574
|
-
if (!(
|
|
575
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
576
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
542
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
543
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
577
544
|
return [4 /*yield*/, response.body.text()];
|
|
578
545
|
case 3:
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
""
|
|
582
|
-
|
|
546
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
547
|
+
try {
|
|
548
|
+
body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
549
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_13);
|
|
550
|
+
}
|
|
551
|
+
catch (error) {
|
|
552
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
553
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
554
|
+
}
|
|
555
|
+
_l.label = 4;
|
|
583
556
|
case 4:
|
|
584
|
-
if (!(
|
|
585
|
-
|
|
586
|
-
|
|
557
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
558
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
559
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
587
560
|
return [4 /*yield*/, response.body.text()];
|
|
588
561
|
case 5:
|
|
589
|
-
|
|
590
|
-
"APIErrorResponse",
|
|
591
|
-
""]);
|
|
592
|
-
throw new exception_1.ApiException(429, body_19);
|
|
593
|
-
case 6:
|
|
594
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
595
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
596
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
597
|
-
return [4 /*yield*/, response.body.text()];
|
|
598
|
-
case 7:
|
|
599
|
-
body_20 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
562
|
+
body_14 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
600
563
|
"RUMApplicationsResponse",
|
|
601
564
|
""]);
|
|
602
|
-
return [2 /*return*/,
|
|
603
|
-
case
|
|
604
|
-
case
|
|
605
|
-
body = (
|
|
565
|
+
return [2 /*return*/, body_14];
|
|
566
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
567
|
+
case 7:
|
|
568
|
+
body = (_l.sent()) || "";
|
|
606
569
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
607
570
|
}
|
|
608
571
|
});
|
|
@@ -617,63 +580,49 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
617
580
|
*/
|
|
618
581
|
RUMApiResponseProcessor.prototype.listRUMEvents = function (response) {
|
|
619
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
620
|
-
var contentType,
|
|
621
|
-
return __generator(this, function (
|
|
622
|
-
switch (
|
|
583
|
+
var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
|
|
584
|
+
return __generator(this, function (_l) {
|
|
585
|
+
switch (_l.label) {
|
|
623
586
|
case 0:
|
|
624
587
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
625
|
-
if (!(
|
|
588
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
626
589
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
627
590
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
628
591
|
return [4 /*yield*/, response.body.text()];
|
|
629
592
|
case 1:
|
|
630
|
-
|
|
631
|
-
"RUMEventsResponse"
|
|
632
|
-
|
|
633
|
-
return [2 /*return*/, body_21];
|
|
593
|
+
body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
594
|
+
"RUMEventsResponse"]);
|
|
595
|
+
return [2 /*return*/, body_15];
|
|
634
596
|
case 2:
|
|
635
|
-
if (!(
|
|
636
|
-
|
|
637
|
-
|
|
597
|
+
if (!(response.httpStatusCode == 400 ||
|
|
598
|
+
response.httpStatusCode == 403 ||
|
|
599
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
600
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
638
601
|
return [4 /*yield*/, response.body.text()];
|
|
639
602
|
case 3:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
""
|
|
643
|
-
|
|
603
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
604
|
+
try {
|
|
605
|
+
body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
606
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_16);
|
|
607
|
+
}
|
|
608
|
+
catch (error) {
|
|
609
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
610
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
611
|
+
}
|
|
612
|
+
_l.label = 4;
|
|
644
613
|
case 4:
|
|
645
|
-
if (!(
|
|
646
|
-
|
|
647
|
-
|
|
614
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
615
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
616
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
648
617
|
return [4 /*yield*/, response.body.text()];
|
|
649
618
|
case 5:
|
|
650
|
-
|
|
651
|
-
"APIErrorResponse",
|
|
652
|
-
""]);
|
|
653
|
-
throw new exception_1.ApiException(403, body_23);
|
|
654
|
-
case 6:
|
|
655
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
656
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
657
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
658
|
-
return [4 /*yield*/, response.body.text()];
|
|
659
|
-
case 7:
|
|
660
|
-
body_24 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
661
|
-
"APIErrorResponse",
|
|
662
|
-
""]);
|
|
663
|
-
throw new exception_1.ApiException(429, body_24);
|
|
664
|
-
case 8:
|
|
665
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
666
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
667
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
668
|
-
return [4 /*yield*/, response.body.text()];
|
|
669
|
-
case 9:
|
|
670
|
-
body_25 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
619
|
+
body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
671
620
|
"RUMEventsResponse",
|
|
672
621
|
""]);
|
|
673
|
-
return [2 /*return*/,
|
|
674
|
-
case
|
|
675
|
-
case
|
|
676
|
-
body = (
|
|
622
|
+
return [2 /*return*/, body_17];
|
|
623
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
624
|
+
case 7:
|
|
625
|
+
body = (_l.sent()) || "";
|
|
677
626
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
678
627
|
}
|
|
679
628
|
});
|
|
@@ -688,63 +637,49 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
688
637
|
*/
|
|
689
638
|
RUMApiResponseProcessor.prototype.searchRUMEvents = function (response) {
|
|
690
639
|
return __awaiter(this, void 0, void 0, function () {
|
|
691
|
-
var contentType,
|
|
692
|
-
return __generator(this, function (
|
|
693
|
-
switch (
|
|
640
|
+
var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, body_20, _g, _h, _j, _k, body;
|
|
641
|
+
return __generator(this, function (_l) {
|
|
642
|
+
switch (_l.label) {
|
|
694
643
|
case 0:
|
|
695
644
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
696
|
-
if (!(
|
|
645
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
697
646
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
698
647
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
699
648
|
return [4 /*yield*/, response.body.text()];
|
|
700
649
|
case 1:
|
|
701
|
-
|
|
702
|
-
"RUMEventsResponse"
|
|
703
|
-
|
|
704
|
-
return [2 /*return*/, body_26];
|
|
650
|
+
body_18 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
651
|
+
"RUMEventsResponse"]);
|
|
652
|
+
return [2 /*return*/, body_18];
|
|
705
653
|
case 2:
|
|
706
|
-
if (!(
|
|
707
|
-
|
|
708
|
-
|
|
654
|
+
if (!(response.httpStatusCode == 400 ||
|
|
655
|
+
response.httpStatusCode == 403 ||
|
|
656
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
657
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
709
658
|
return [4 /*yield*/, response.body.text()];
|
|
710
659
|
case 3:
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
""
|
|
714
|
-
|
|
660
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
661
|
+
try {
|
|
662
|
+
body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
663
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_19);
|
|
664
|
+
}
|
|
665
|
+
catch (error) {
|
|
666
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
667
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
668
|
+
}
|
|
669
|
+
_l.label = 4;
|
|
715
670
|
case 4:
|
|
716
|
-
if (!(
|
|
717
|
-
|
|
718
|
-
|
|
671
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
672
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
673
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
719
674
|
return [4 /*yield*/, response.body.text()];
|
|
720
675
|
case 5:
|
|
721
|
-
|
|
722
|
-
"APIErrorResponse",
|
|
723
|
-
""]);
|
|
724
|
-
throw new exception_1.ApiException(403, body_28);
|
|
725
|
-
case 6:
|
|
726
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
727
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
728
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
729
|
-
return [4 /*yield*/, response.body.text()];
|
|
730
|
-
case 7:
|
|
731
|
-
body_29 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
732
|
-
"APIErrorResponse",
|
|
733
|
-
""]);
|
|
734
|
-
throw new exception_1.ApiException(429, body_29);
|
|
735
|
-
case 8:
|
|
736
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
737
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
738
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
739
|
-
return [4 /*yield*/, response.body.text()];
|
|
740
|
-
case 9:
|
|
741
|
-
body_30 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
676
|
+
body_20 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
742
677
|
"RUMEventsResponse",
|
|
743
678
|
""]);
|
|
744
|
-
return [2 /*return*/,
|
|
745
|
-
case
|
|
746
|
-
case
|
|
747
|
-
body = (
|
|
679
|
+
return [2 /*return*/, body_20];
|
|
680
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
681
|
+
case 7:
|
|
682
|
+
body = (_l.sent()) || "";
|
|
748
683
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
749
684
|
}
|
|
750
685
|
});
|
|
@@ -759,73 +694,50 @@ var RUMApiResponseProcessor = /** @class */ (function () {
|
|
|
759
694
|
*/
|
|
760
695
|
RUMApiResponseProcessor.prototype.updateRUMApplication = function (response) {
|
|
761
696
|
return __awaiter(this, void 0, void 0, function () {
|
|
762
|
-
var contentType,
|
|
763
|
-
return __generator(this, function (
|
|
764
|
-
switch (
|
|
697
|
+
var contentType, body_21, _a, _b, _c, _d, bodyText, _e, _f, body_22, body_23, _g, _h, _j, _k, body;
|
|
698
|
+
return __generator(this, function (_l) {
|
|
699
|
+
switch (_l.label) {
|
|
765
700
|
case 0:
|
|
766
701
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
767
|
-
if (!(
|
|
702
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
768
703
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
769
704
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
770
705
|
return [4 /*yield*/, response.body.text()];
|
|
771
706
|
case 1:
|
|
772
|
-
|
|
773
|
-
"RUMApplicationResponse"
|
|
774
|
-
|
|
775
|
-
return [2 /*return*/, body_31];
|
|
707
|
+
body_21 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
708
|
+
"RUMApplicationResponse"]);
|
|
709
|
+
return [2 /*return*/, body_21];
|
|
776
710
|
case 2:
|
|
777
|
-
if (!(
|
|
778
|
-
|
|
779
|
-
|
|
711
|
+
if (!(response.httpStatusCode == 400 ||
|
|
712
|
+
response.httpStatusCode == 404 ||
|
|
713
|
+
response.httpStatusCode == 422 ||
|
|
714
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
715
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
780
716
|
return [4 /*yield*/, response.body.text()];
|
|
781
717
|
case 3:
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
""
|
|
785
|
-
|
|
718
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
719
|
+
try {
|
|
720
|
+
body_22 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
721
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_22);
|
|
722
|
+
}
|
|
723
|
+
catch (error) {
|
|
724
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
725
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
726
|
+
}
|
|
727
|
+
_l.label = 4;
|
|
786
728
|
case 4:
|
|
787
|
-
if (!(
|
|
788
|
-
|
|
789
|
-
|
|
729
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
730
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
731
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
790
732
|
return [4 /*yield*/, response.body.text()];
|
|
791
733
|
case 5:
|
|
792
|
-
|
|
793
|
-
"APIErrorResponse",
|
|
794
|
-
""]);
|
|
795
|
-
throw new exception_1.ApiException(404, body_33);
|
|
796
|
-
case 6:
|
|
797
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
798
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
799
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
800
|
-
return [4 /*yield*/, response.body.text()];
|
|
801
|
-
case 7:
|
|
802
|
-
body_34 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
803
|
-
"APIErrorResponse",
|
|
804
|
-
""]);
|
|
805
|
-
throw new exception_1.ApiException(422, body_34);
|
|
806
|
-
case 8:
|
|
807
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
808
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
809
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
810
|
-
return [4 /*yield*/, response.body.text()];
|
|
811
|
-
case 9:
|
|
812
|
-
body_35 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
813
|
-
"APIErrorResponse",
|
|
814
|
-
""]);
|
|
815
|
-
throw new exception_1.ApiException(429, body_35);
|
|
816
|
-
case 10:
|
|
817
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
818
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
819
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
820
|
-
return [4 /*yield*/, response.body.text()];
|
|
821
|
-
case 11:
|
|
822
|
-
body_36 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
734
|
+
body_23 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
823
735
|
"RUMApplicationResponse",
|
|
824
736
|
""]);
|
|
825
|
-
return [2 /*return*/,
|
|
826
|
-
case
|
|
827
|
-
case
|
|
828
|
-
body = (
|
|
737
|
+
return [2 /*return*/, body_23];
|
|
738
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
739
|
+
case 7:
|
|
740
|
+
body = (_l.sent()) || "";
|
|
829
741
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
830
742
|
}
|
|
831
743
|
});
|