@datadog/datadog-api-client 1.16.0 → 1.18.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 +60 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/README.md +23 -0
- package/dist/packages/datadog-api-client-common/configuration.d.ts +21 -1
- package/dist/packages/datadog-api-client-common/configuration.js +14 -9
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +4 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +8 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +60 -36
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.d.ts +16 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +54 -2
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +5 -20
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +39 -20
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +46 -0
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +46 -0
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +46 -0
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +9 -5
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +44 -3
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +1 -0
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +17 -0
- package/dist/packages/datadog-api-client-v1/index.js +34 -10
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.d.ts +15 -0
- package/dist/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/HeatMapWidgetRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +8 -5
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +8 -5
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesGlobal.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesGlobal.js +35 -0
- package/dist/packages/datadog-api-client-v1/models/IPPrefixesGlobal.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/IPRanges.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/Monitor.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.js +26 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsCustomSchedule.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsCustomScheduleRecurrence.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +7 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +7 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +28 -4
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +30 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +60 -9
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.js +41 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackTemplateVariableContents.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.d.ts +33 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.js +30 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackTemplateVariables.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.js +52 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/PowerpackWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOHistoryMetricsSeriesMetadata.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SplitConfig.d.ts +43 -0
- package/dist/packages/datadog-api-client-v1/models/SplitConfig.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SplitConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitConfigSortCompute.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SplitConfigSortCompute.js +37 -0
- package/dist/packages/datadog-api-client-v1/models/SplitConfigSortCompute.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitDimension.d.ts +28 -0
- package/dist/packages/datadog-api-client-v1/models/SplitDimension.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/SplitDimension.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.d.ts +19 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.js +3 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphSourceWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphVizSize.d.ts +14 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphVizSize.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphVizSize.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.d.ts +57 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.js +54 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SplitGraphWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitSort.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SplitSort.js +31 -0
- package/dist/packages/datadog-api-client-v1/models/SplitSort.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SplitVectorEntryItem.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SplitVectorEntryItem.js +37 -0
- package/dist/packages/datadog-api-client-v1/models/SplitVectorEntryItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SunburstWidgetRequest.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/SunburstWidgetRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SunburstWidgetRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionTarget.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionTimingsScope.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +4 -4
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +8 -8
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementResponse.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementResponse.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageProfilingHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageProfilingHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageProfilingHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +71 -7
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +80 -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 +71 -7
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +80 -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 +71 -7
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +80 -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/APMRetentionFiltersApi.d.ts +143 -0
- package/dist/packages/datadog-api-client-v2/apis/APMRetentionFiltersApi.js +499 -0
- package/dist/packages/datadog-api-client-v2/apis/APMRetentionFiltersApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js +4 -8
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.js +3 -0
- package/dist/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ContainerImagesApi.d.ts +61 -0
- package/dist/packages/datadog-api-client-v2/apis/ContainerImagesApi.js +179 -0
- package/dist/packages/datadog-api-client-v2/apis/ContainerImagesApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/DowntimesApi.d.ts +16 -1
- package/dist/packages/datadog-api-client-v2/apis/DowntimesApi.js +54 -26
- package/dist/packages/datadog-api-client-v2/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +3 -7
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/PowerpackApi.d.ts +136 -0
- package/dist/packages/datadog-api-client-v2/apis/PowerpackApi.js +468 -0
- package/dist/packages/datadog-api-client-v2/apis/PowerpackApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js +84 -15
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +42 -0
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/index.js +123 -18
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ApmRetentionFilterType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ApmRetentionFilterType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ApmRetentionFilterType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventJob.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventPipeline.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventStage.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/CIAppPipelineEventStep.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ContainerImage.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImage.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageAttributes.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageAttributes.js +92 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageFlavor.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageFlavor.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageFlavor.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroup.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroup.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroup.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupImagesRelationshipsLink.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupRelationshipsLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageGroupType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageItem.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMeta.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMeta.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMetaPage.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMetaPage.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageMetaPageType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.js +61 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImageVulnerabilities.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImagesResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImagesResponse.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImagesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/ContainerImagesResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DataScalarColumn.d.ts +4 -3
- package/dist/packages/datadog-api-client-v2/models/DataScalarColumn.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/DataScalarColumn.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.js +1 -2
- package/dist/packages/datadog-api-client-v2/models/DowntimeRelationshipsMonitorData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GroupScalarColumn.d.ts +3 -2
- package/dist/packages/datadog-api-client-v2/models/GroupScalarColumn.js +1 -6
- package/dist/packages/datadog-api-client-v2/models/GroupScalarColumn.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListPowerpacksResponse.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/ListPowerpacksResponse.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ListPowerpacksResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +125 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/Powerpack.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/Powerpack.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/Powerpack.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackAttributes.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackAttributes.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidget.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidget.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidget.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackGroupWidgetLayout.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackInnerWidgetLayout.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackInnerWidgets.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackRelationships.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackResponseLinks.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackResponseLinks.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpackTemplateVariable.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpacksResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.js +66 -0
- package/dist/packages/datadog-api-client-v2/models/PowerpacksResponseMetaPagination.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRetentionFiltersRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/RetentionFilter.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilter.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAll.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAll.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAll.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.d.ts +71 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAllAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAllType.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAllType.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAllType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAttributes.d.ts +71 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAttributes.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFilterWithoutAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFiltersResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFiltersResponse.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RetentionFiltersResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarColumnTypeGroup.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarColumnTypeNumber.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ScalarMeta.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.d.ts +87 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.js +80 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Link.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Opsgenie.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2OpsgenieRegion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Pagerduty.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Type.d.ts +17 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Type.js +16 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Type.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SpansFilter.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/SpansFilter.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/SpansFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SpansFilterCreate.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/SpansFilterCreate.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/SpansFilterCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TimeseriesResponseAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi";
|
|
2
|
+
import { Configuration } from "../../datadog-api-client-common/configuration";
|
|
3
|
+
import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http";
|
|
4
|
+
import { ReorderRetentionFiltersRequest } from "../models/ReorderRetentionFiltersRequest";
|
|
5
|
+
import { RetentionFilterCreateRequest } from "../models/RetentionFilterCreateRequest";
|
|
6
|
+
import { RetentionFilterResponse } from "../models/RetentionFilterResponse";
|
|
7
|
+
import { RetentionFiltersResponse } from "../models/RetentionFiltersResponse";
|
|
8
|
+
import { RetentionFilterUpdateRequest } from "../models/RetentionFilterUpdateRequest";
|
|
9
|
+
export declare class APMRetentionFiltersApiRequestFactory extends BaseAPIRequestFactory {
|
|
10
|
+
createApmRetentionFilter(body: RetentionFilterCreateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
11
|
+
deleteApmRetentionFilter(filterId: string, _options?: Configuration): Promise<RequestContext>;
|
|
12
|
+
getApmRetentionFilter(filterId: string, _options?: Configuration): Promise<RequestContext>;
|
|
13
|
+
listApmRetentionFilters(_options?: Configuration): Promise<RequestContext>;
|
|
14
|
+
reorderApmRetentionFilters(body: ReorderRetentionFiltersRequest, _options?: Configuration): Promise<RequestContext>;
|
|
15
|
+
updateApmRetentionFilter(filterId: string, body: RetentionFilterUpdateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
16
|
+
}
|
|
17
|
+
export declare class APMRetentionFiltersApiResponseProcessor {
|
|
18
|
+
/**
|
|
19
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
20
|
+
* to the expected objects
|
|
21
|
+
*
|
|
22
|
+
* @params response Response returned by the server for a request to createApmRetentionFilter
|
|
23
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
24
|
+
*/
|
|
25
|
+
createApmRetentionFilter(response: ResponseContext): Promise<RetentionFilterResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
28
|
+
* to the expected objects
|
|
29
|
+
*
|
|
30
|
+
* @params response Response returned by the server for a request to deleteApmRetentionFilter
|
|
31
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
32
|
+
*/
|
|
33
|
+
deleteApmRetentionFilter(response: ResponseContext): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
36
|
+
* to the expected objects
|
|
37
|
+
*
|
|
38
|
+
* @params response Response returned by the server for a request to getApmRetentionFilter
|
|
39
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
40
|
+
*/
|
|
41
|
+
getApmRetentionFilter(response: ResponseContext): Promise<RetentionFilterResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
44
|
+
* to the expected objects
|
|
45
|
+
*
|
|
46
|
+
* @params response Response returned by the server for a request to listApmRetentionFilters
|
|
47
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
48
|
+
*/
|
|
49
|
+
listApmRetentionFilters(response: ResponseContext): Promise<RetentionFiltersResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
52
|
+
* to the expected objects
|
|
53
|
+
*
|
|
54
|
+
* @params response Response returned by the server for a request to reorderApmRetentionFilters
|
|
55
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
56
|
+
*/
|
|
57
|
+
reorderApmRetentionFilters(response: ResponseContext): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
60
|
+
* to the expected objects
|
|
61
|
+
*
|
|
62
|
+
* @params response Response returned by the server for a request to updateApmRetentionFilter
|
|
63
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
64
|
+
*/
|
|
65
|
+
updateApmRetentionFilter(response: ResponseContext): Promise<RetentionFilterResponse>;
|
|
66
|
+
}
|
|
67
|
+
export interface APMRetentionFiltersApiCreateApmRetentionFilterRequest {
|
|
68
|
+
/**
|
|
69
|
+
* The definition of the new retention filter.
|
|
70
|
+
* @type RetentionFilterCreateRequest
|
|
71
|
+
*/
|
|
72
|
+
body: RetentionFilterCreateRequest;
|
|
73
|
+
}
|
|
74
|
+
export interface APMRetentionFiltersApiDeleteApmRetentionFilterRequest {
|
|
75
|
+
/**
|
|
76
|
+
* The ID of the retention filter.
|
|
77
|
+
* @type string
|
|
78
|
+
*/
|
|
79
|
+
filterId: string;
|
|
80
|
+
}
|
|
81
|
+
export interface APMRetentionFiltersApiGetApmRetentionFilterRequest {
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the retention filter.
|
|
84
|
+
* @type string
|
|
85
|
+
*/
|
|
86
|
+
filterId: string;
|
|
87
|
+
}
|
|
88
|
+
export interface APMRetentionFiltersApiReorderApmRetentionFiltersRequest {
|
|
89
|
+
/**
|
|
90
|
+
* The list of retention filters in the new order.
|
|
91
|
+
* @type ReorderRetentionFiltersRequest
|
|
92
|
+
*/
|
|
93
|
+
body: ReorderRetentionFiltersRequest;
|
|
94
|
+
}
|
|
95
|
+
export interface APMRetentionFiltersApiUpdateApmRetentionFilterRequest {
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the retention filter.
|
|
98
|
+
* @type string
|
|
99
|
+
*/
|
|
100
|
+
filterId: string;
|
|
101
|
+
/**
|
|
102
|
+
* The updated definition of the retention filter.
|
|
103
|
+
* @type RetentionFilterUpdateRequest
|
|
104
|
+
*/
|
|
105
|
+
body: RetentionFilterUpdateRequest;
|
|
106
|
+
}
|
|
107
|
+
export declare class APMRetentionFiltersApi {
|
|
108
|
+
private requestFactory;
|
|
109
|
+
private responseProcessor;
|
|
110
|
+
private configuration;
|
|
111
|
+
constructor(configuration: Configuration, requestFactory?: APMRetentionFiltersApiRequestFactory, responseProcessor?: APMRetentionFiltersApiResponseProcessor);
|
|
112
|
+
/**
|
|
113
|
+
* Create a retention filter to index spans in your organization.
|
|
114
|
+
* Returns the retention filter definition when the request is successful.
|
|
115
|
+
* @param param The request object
|
|
116
|
+
*/
|
|
117
|
+
createApmRetentionFilter(param: APMRetentionFiltersApiCreateApmRetentionFilterRequest, options?: Configuration): Promise<RetentionFilterResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* Delete a specific retention filter from your organization.
|
|
120
|
+
* @param param The request object
|
|
121
|
+
*/
|
|
122
|
+
deleteApmRetentionFilter(param: APMRetentionFiltersApiDeleteApmRetentionFilterRequest, options?: Configuration): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Get an APM retention filter.
|
|
125
|
+
* @param param The request object
|
|
126
|
+
*/
|
|
127
|
+
getApmRetentionFilter(param: APMRetentionFiltersApiGetApmRetentionFilterRequest, options?: Configuration): Promise<RetentionFilterResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Get the list of APM retention filters.
|
|
130
|
+
* @param param The request object
|
|
131
|
+
*/
|
|
132
|
+
listApmRetentionFilters(options?: Configuration): Promise<RetentionFiltersResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* Re-order the execution order of retention filters.
|
|
135
|
+
* @param param The request object
|
|
136
|
+
*/
|
|
137
|
+
reorderApmRetentionFilters(param: APMRetentionFiltersApiReorderApmRetentionFiltersRequest, options?: Configuration): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Update a retention filter from your organization.
|
|
140
|
+
* @param param The request object
|
|
141
|
+
*/
|
|
142
|
+
updateApmRetentionFilter(param: APMRetentionFiltersApiUpdateApmRetentionFilterRequest, options?: Configuration): Promise<RetentionFilterResponse>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.APMRetentionFiltersApi = exports.APMRetentionFiltersApiResponseProcessor = exports.APMRetentionFiltersApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
14
|
+
const configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
15
|
+
const http_1 = require("../../datadog-api-client-common/http/http");
|
|
16
|
+
const logger_1 = require("../../../logger");
|
|
17
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
18
|
+
const exception_1 = require("../../datadog-api-client-common/exception");
|
|
19
|
+
class APMRetentionFiltersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
20
|
+
createApmRetentionFilter(body, _options) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const _config = _options || this.configuration;
|
|
23
|
+
// verify required parameter 'body' is not null or undefined
|
|
24
|
+
if (body === null || body === undefined) {
|
|
25
|
+
throw new baseapi_1.RequiredError("body", "createApmRetentionFilter");
|
|
26
|
+
}
|
|
27
|
+
// Path Params
|
|
28
|
+
const localVarPath = "/api/v2/apm/config/retention-filters";
|
|
29
|
+
// Make Request Context
|
|
30
|
+
const requestContext = _config
|
|
31
|
+
.getServer("v2.APMRetentionFiltersApi.createApmRetentionFilter")
|
|
32
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
33
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
34
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
35
|
+
// Body Params
|
|
36
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
37
|
+
"application/json",
|
|
38
|
+
]);
|
|
39
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
40
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RetentionFilterCreateRequest", ""), contentType);
|
|
41
|
+
requestContext.setBody(serializedBody);
|
|
42
|
+
// Apply auth methods
|
|
43
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
44
|
+
"apiKeyAuth",
|
|
45
|
+
"appKeyAuth",
|
|
46
|
+
]);
|
|
47
|
+
return requestContext;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
deleteApmRetentionFilter(filterId, _options) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const _config = _options || this.configuration;
|
|
53
|
+
// verify required parameter 'filterId' is not null or undefined
|
|
54
|
+
if (filterId === null || filterId === undefined) {
|
|
55
|
+
throw new baseapi_1.RequiredError("filterId", "deleteApmRetentionFilter");
|
|
56
|
+
}
|
|
57
|
+
// Path Params
|
|
58
|
+
const localVarPath = "/api/v2/apm/config/retention-filters/{filter_id}".replace("{filter_id}", encodeURIComponent(String(filterId)));
|
|
59
|
+
// Make Request Context
|
|
60
|
+
const requestContext = _config
|
|
61
|
+
.getServer("v2.APMRetentionFiltersApi.deleteApmRetentionFilter")
|
|
62
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
63
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
64
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
65
|
+
// Apply auth methods
|
|
66
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
67
|
+
"apiKeyAuth",
|
|
68
|
+
"appKeyAuth",
|
|
69
|
+
]);
|
|
70
|
+
return requestContext;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
getApmRetentionFilter(filterId, _options) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const _config = _options || this.configuration;
|
|
76
|
+
// verify required parameter 'filterId' is not null or undefined
|
|
77
|
+
if (filterId === null || filterId === undefined) {
|
|
78
|
+
throw new baseapi_1.RequiredError("filterId", "getApmRetentionFilter");
|
|
79
|
+
}
|
|
80
|
+
// Path Params
|
|
81
|
+
const localVarPath = "/api/v2/apm/config/retention-filters/{filter_id}".replace("{filter_id}", encodeURIComponent(String(filterId)));
|
|
82
|
+
// Make Request Context
|
|
83
|
+
const requestContext = _config
|
|
84
|
+
.getServer("v2.APMRetentionFiltersApi.getApmRetentionFilter")
|
|
85
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
86
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
87
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
88
|
+
// Apply auth methods
|
|
89
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
90
|
+
"apiKeyAuth",
|
|
91
|
+
"appKeyAuth",
|
|
92
|
+
]);
|
|
93
|
+
return requestContext;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
listApmRetentionFilters(_options) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const _config = _options || this.configuration;
|
|
99
|
+
// Path Params
|
|
100
|
+
const localVarPath = "/api/v2/apm/config/retention-filters";
|
|
101
|
+
// Make Request Context
|
|
102
|
+
const requestContext = _config
|
|
103
|
+
.getServer("v2.APMRetentionFiltersApi.listApmRetentionFilters")
|
|
104
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
105
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
106
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
107
|
+
// Apply auth methods
|
|
108
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
109
|
+
"apiKeyAuth",
|
|
110
|
+
"appKeyAuth",
|
|
111
|
+
]);
|
|
112
|
+
return requestContext;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
reorderApmRetentionFilters(body, _options) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const _config = _options || this.configuration;
|
|
118
|
+
// verify required parameter 'body' is not null or undefined
|
|
119
|
+
if (body === null || body === undefined) {
|
|
120
|
+
throw new baseapi_1.RequiredError("body", "reorderApmRetentionFilters");
|
|
121
|
+
}
|
|
122
|
+
// Path Params
|
|
123
|
+
const localVarPath = "/api/v2/apm/config/retention-filters-execution-order";
|
|
124
|
+
// Make Request Context
|
|
125
|
+
const requestContext = _config
|
|
126
|
+
.getServer("v2.APMRetentionFiltersApi.reorderApmRetentionFilters")
|
|
127
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
128
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
129
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
130
|
+
// Body Params
|
|
131
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
132
|
+
"application/json",
|
|
133
|
+
]);
|
|
134
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
135
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ReorderRetentionFiltersRequest", ""), contentType);
|
|
136
|
+
requestContext.setBody(serializedBody);
|
|
137
|
+
// Apply auth methods
|
|
138
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
139
|
+
"apiKeyAuth",
|
|
140
|
+
"appKeyAuth",
|
|
141
|
+
]);
|
|
142
|
+
return requestContext;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
updateApmRetentionFilter(filterId, body, _options) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const _config = _options || this.configuration;
|
|
148
|
+
// verify required parameter 'filterId' is not null or undefined
|
|
149
|
+
if (filterId === null || filterId === undefined) {
|
|
150
|
+
throw new baseapi_1.RequiredError("filterId", "updateApmRetentionFilter");
|
|
151
|
+
}
|
|
152
|
+
// verify required parameter 'body' is not null or undefined
|
|
153
|
+
if (body === null || body === undefined) {
|
|
154
|
+
throw new baseapi_1.RequiredError("body", "updateApmRetentionFilter");
|
|
155
|
+
}
|
|
156
|
+
// Path Params
|
|
157
|
+
const localVarPath = "/api/v2/apm/config/retention-filters/{filter_id}".replace("{filter_id}", encodeURIComponent(String(filterId)));
|
|
158
|
+
// Make Request Context
|
|
159
|
+
const requestContext = _config
|
|
160
|
+
.getServer("v2.APMRetentionFiltersApi.updateApmRetentionFilter")
|
|
161
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
162
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
163
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
164
|
+
// Body Params
|
|
165
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
166
|
+
"application/json",
|
|
167
|
+
]);
|
|
168
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
169
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RetentionFilterUpdateRequest", ""), contentType);
|
|
170
|
+
requestContext.setBody(serializedBody);
|
|
171
|
+
// Apply auth methods
|
|
172
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
173
|
+
"apiKeyAuth",
|
|
174
|
+
"appKeyAuth",
|
|
175
|
+
]);
|
|
176
|
+
return requestContext;
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.APMRetentionFiltersApiRequestFactory = APMRetentionFiltersApiRequestFactory;
|
|
181
|
+
class APMRetentionFiltersApiResponseProcessor {
|
|
182
|
+
/**
|
|
183
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
184
|
+
* to the expected objects
|
|
185
|
+
*
|
|
186
|
+
* @params response Response returned by the server for a request to createApmRetentionFilter
|
|
187
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
188
|
+
*/
|
|
189
|
+
createApmRetentionFilter(response) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
192
|
+
if (response.httpStatusCode == 200) {
|
|
193
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse");
|
|
194
|
+
return body;
|
|
195
|
+
}
|
|
196
|
+
if (response.httpStatusCode == 400 ||
|
|
197
|
+
response.httpStatusCode == 403 ||
|
|
198
|
+
response.httpStatusCode == 409 ||
|
|
199
|
+
response.httpStatusCode == 429) {
|
|
200
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
201
|
+
let body;
|
|
202
|
+
try {
|
|
203
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
204
|
+
}
|
|
205
|
+
catch (error) {
|
|
206
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
207
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
208
|
+
}
|
|
209
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
210
|
+
}
|
|
211
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
212
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
213
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse", "");
|
|
214
|
+
return body;
|
|
215
|
+
}
|
|
216
|
+
const body = (yield response.body.text()) || "";
|
|
217
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
222
|
+
* to the expected objects
|
|
223
|
+
*
|
|
224
|
+
* @params response Response returned by the server for a request to deleteApmRetentionFilter
|
|
225
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
226
|
+
*/
|
|
227
|
+
deleteApmRetentionFilter(response) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
230
|
+
if (response.httpStatusCode == 200) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (response.httpStatusCode == 403 ||
|
|
234
|
+
response.httpStatusCode == 404 ||
|
|
235
|
+
response.httpStatusCode == 429) {
|
|
236
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
237
|
+
let body;
|
|
238
|
+
try {
|
|
239
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
243
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
244
|
+
}
|
|
245
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
246
|
+
}
|
|
247
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
248
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
249
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
250
|
+
return body;
|
|
251
|
+
}
|
|
252
|
+
const body = (yield response.body.text()) || "";
|
|
253
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
258
|
+
* to the expected objects
|
|
259
|
+
*
|
|
260
|
+
* @params response Response returned by the server for a request to getApmRetentionFilter
|
|
261
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
262
|
+
*/
|
|
263
|
+
getApmRetentionFilter(response) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
266
|
+
if (response.httpStatusCode == 200) {
|
|
267
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse");
|
|
268
|
+
return body;
|
|
269
|
+
}
|
|
270
|
+
if (response.httpStatusCode == 403 ||
|
|
271
|
+
response.httpStatusCode == 404 ||
|
|
272
|
+
response.httpStatusCode == 429) {
|
|
273
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
274
|
+
let body;
|
|
275
|
+
try {
|
|
276
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
280
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
281
|
+
}
|
|
282
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
283
|
+
}
|
|
284
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
285
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
286
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse", "");
|
|
287
|
+
return body;
|
|
288
|
+
}
|
|
289
|
+
const body = (yield response.body.text()) || "";
|
|
290
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
295
|
+
* to the expected objects
|
|
296
|
+
*
|
|
297
|
+
* @params response Response returned by the server for a request to listApmRetentionFilters
|
|
298
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
299
|
+
*/
|
|
300
|
+
listApmRetentionFilters(response) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
303
|
+
if (response.httpStatusCode == 200) {
|
|
304
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFiltersResponse");
|
|
305
|
+
return body;
|
|
306
|
+
}
|
|
307
|
+
if (response.httpStatusCode == 403 || response.httpStatusCode == 429) {
|
|
308
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
309
|
+
let body;
|
|
310
|
+
try {
|
|
311
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
312
|
+
}
|
|
313
|
+
catch (error) {
|
|
314
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
315
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
316
|
+
}
|
|
317
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
318
|
+
}
|
|
319
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
320
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
321
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFiltersResponse", "");
|
|
322
|
+
return body;
|
|
323
|
+
}
|
|
324
|
+
const body = (yield response.body.text()) || "";
|
|
325
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
330
|
+
* to the expected objects
|
|
331
|
+
*
|
|
332
|
+
* @params response Response returned by the server for a request to reorderApmRetentionFilters
|
|
333
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
334
|
+
*/
|
|
335
|
+
reorderApmRetentionFilters(response) {
|
|
336
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
338
|
+
if (response.httpStatusCode == 200) {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
if (response.httpStatusCode == 400 ||
|
|
342
|
+
response.httpStatusCode == 403 ||
|
|
343
|
+
response.httpStatusCode == 429) {
|
|
344
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
345
|
+
let body;
|
|
346
|
+
try {
|
|
347
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
348
|
+
}
|
|
349
|
+
catch (error) {
|
|
350
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
351
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
352
|
+
}
|
|
353
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
354
|
+
}
|
|
355
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
356
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
357
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
358
|
+
return body;
|
|
359
|
+
}
|
|
360
|
+
const body = (yield response.body.text()) || "";
|
|
361
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
366
|
+
* to the expected objects
|
|
367
|
+
*
|
|
368
|
+
* @params response Response returned by the server for a request to updateApmRetentionFilter
|
|
369
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
370
|
+
*/
|
|
371
|
+
updateApmRetentionFilter(response) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
374
|
+
if (response.httpStatusCode == 200) {
|
|
375
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse");
|
|
376
|
+
return body;
|
|
377
|
+
}
|
|
378
|
+
if (response.httpStatusCode == 400 ||
|
|
379
|
+
response.httpStatusCode == 403 ||
|
|
380
|
+
response.httpStatusCode == 404 ||
|
|
381
|
+
response.httpStatusCode == 429) {
|
|
382
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
383
|
+
let body;
|
|
384
|
+
try {
|
|
385
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
386
|
+
}
|
|
387
|
+
catch (error) {
|
|
388
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
389
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
390
|
+
}
|
|
391
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
392
|
+
}
|
|
393
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
394
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
395
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse", "");
|
|
396
|
+
return body;
|
|
397
|
+
}
|
|
398
|
+
const body = (yield response.body.text()) || "";
|
|
399
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
exports.APMRetentionFiltersApiResponseProcessor = APMRetentionFiltersApiResponseProcessor;
|
|
404
|
+
class APMRetentionFiltersApi {
|
|
405
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
406
|
+
this.configuration = configuration;
|
|
407
|
+
this.requestFactory =
|
|
408
|
+
requestFactory || new APMRetentionFiltersApiRequestFactory(configuration);
|
|
409
|
+
this.responseProcessor =
|
|
410
|
+
responseProcessor || new APMRetentionFiltersApiResponseProcessor();
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Create a retention filter to index spans in your organization.
|
|
414
|
+
* Returns the retention filter definition when the request is successful.
|
|
415
|
+
* @param param The request object
|
|
416
|
+
*/
|
|
417
|
+
createApmRetentionFilter(param, options) {
|
|
418
|
+
const requestContextPromise = this.requestFactory.createApmRetentionFilter(param.body, options);
|
|
419
|
+
return requestContextPromise.then((requestContext) => {
|
|
420
|
+
return this.configuration.httpApi
|
|
421
|
+
.send(requestContext)
|
|
422
|
+
.then((responseContext) => {
|
|
423
|
+
return this.responseProcessor.createApmRetentionFilter(responseContext);
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Delete a specific retention filter from your organization.
|
|
429
|
+
* @param param The request object
|
|
430
|
+
*/
|
|
431
|
+
deleteApmRetentionFilter(param, options) {
|
|
432
|
+
const requestContextPromise = this.requestFactory.deleteApmRetentionFilter(param.filterId, options);
|
|
433
|
+
return requestContextPromise.then((requestContext) => {
|
|
434
|
+
return this.configuration.httpApi
|
|
435
|
+
.send(requestContext)
|
|
436
|
+
.then((responseContext) => {
|
|
437
|
+
return this.responseProcessor.deleteApmRetentionFilter(responseContext);
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Get an APM retention filter.
|
|
443
|
+
* @param param The request object
|
|
444
|
+
*/
|
|
445
|
+
getApmRetentionFilter(param, options) {
|
|
446
|
+
const requestContextPromise = this.requestFactory.getApmRetentionFilter(param.filterId, options);
|
|
447
|
+
return requestContextPromise.then((requestContext) => {
|
|
448
|
+
return this.configuration.httpApi
|
|
449
|
+
.send(requestContext)
|
|
450
|
+
.then((responseContext) => {
|
|
451
|
+
return this.responseProcessor.getApmRetentionFilter(responseContext);
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Get the list of APM retention filters.
|
|
457
|
+
* @param param The request object
|
|
458
|
+
*/
|
|
459
|
+
listApmRetentionFilters(options) {
|
|
460
|
+
const requestContextPromise = this.requestFactory.listApmRetentionFilters(options);
|
|
461
|
+
return requestContextPromise.then((requestContext) => {
|
|
462
|
+
return this.configuration.httpApi
|
|
463
|
+
.send(requestContext)
|
|
464
|
+
.then((responseContext) => {
|
|
465
|
+
return this.responseProcessor.listApmRetentionFilters(responseContext);
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Re-order the execution order of retention filters.
|
|
471
|
+
* @param param The request object
|
|
472
|
+
*/
|
|
473
|
+
reorderApmRetentionFilters(param, options) {
|
|
474
|
+
const requestContextPromise = this.requestFactory.reorderApmRetentionFilters(param.body, options);
|
|
475
|
+
return requestContextPromise.then((requestContext) => {
|
|
476
|
+
return this.configuration.httpApi
|
|
477
|
+
.send(requestContext)
|
|
478
|
+
.then((responseContext) => {
|
|
479
|
+
return this.responseProcessor.reorderApmRetentionFilters(responseContext);
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Update a retention filter from your organization.
|
|
485
|
+
* @param param The request object
|
|
486
|
+
*/
|
|
487
|
+
updateApmRetentionFilter(param, options) {
|
|
488
|
+
const requestContextPromise = this.requestFactory.updateApmRetentionFilter(param.filterId, param.body, options);
|
|
489
|
+
return requestContextPromise.then((requestContext) => {
|
|
490
|
+
return this.configuration.httpApi
|
|
491
|
+
.send(requestContext)
|
|
492
|
+
.then((responseContext) => {
|
|
493
|
+
return this.responseProcessor.updateApmRetentionFilter(responseContext);
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
exports.APMRetentionFiltersApi = APMRetentionFiltersApi;
|
|
499
|
+
//# sourceMappingURL=APMRetentionFiltersApi.js.map
|