From 09bfb066f882ecf7e3186ba399635a3d2a75cb89 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 26 Mar 2024 15:18:14 +0000 Subject: [PATCH] Regenerate client from commit 46383d02 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v1/openapi.yaml | 129 +++++++++++------- .generator/schemas/v2/openapi.yaml | 15 +- .../v1/api/usage_metering_api.py | 127 ++++++++++------- .../v2/api/usage_metering_api.py | 15 +- 5 files changed, 175 insertions(+), 119 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 4592d96b6e..2eb878293e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-25 19:47:32.463334", - "spec_repo_commit": "f9b6a1cc" + "regenerated": "2024-03-26 15:17:46.509398", + "spec_repo_commit": "46383d02" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-25 19:47:32.479878", - "spec_repo_commit": "f9b6a1cc" + "regenerated": "2024-03-26 15:17:46.526266", + "spec_repo_commit": "46383d02" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4d5f1a44af..018dd3fc34 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -30678,10 +30678,11 @@ paths: x-codegen-request-body-name: body /api/v1/usage/analyzed_logs: get: + deprecated: true description: 'Get hourly usage for analyzed logs (Security Monitoring). - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageAnalyzedLogs @@ -30798,10 +30799,11 @@ paths: - Usage Metering /api/v1/usage/aws_lambda: get: + deprecated: true description: 'Get hourly usage for Lambda. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageLambda @@ -30903,10 +30905,11 @@ paths: - Usage Metering /api/v1/usage/ci-app: get: + deprecated: true description: 'Get hourly usage for CI visibility (tests, pipeline, and spans). - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageCIApp @@ -30964,10 +30967,11 @@ paths: - Usage Metering /api/v1/usage/cspm: get: + deprecated: true description: 'Get hourly usage for cloud security management (CSM) pro. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageCloudSecurityPostureManagement @@ -31025,10 +31029,11 @@ paths: - Usage Metering /api/v1/usage/cws: get: + deprecated: true description: 'Get hourly usage for cloud workload security. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageCWS @@ -31086,10 +31091,11 @@ paths: - Usage Metering /api/v1/usage/dbm: get: + deprecated: true description: 'Get hourly usage for database monitoring - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageDBM @@ -31147,10 +31153,11 @@ paths: - Usage Metering /api/v1/usage/fargate: get: + deprecated: true description: 'Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/). - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageFargate @@ -31206,10 +31213,11 @@ paths: - Usage Metering /api/v1/usage/hosts: get: + deprecated: true description: 'Get hourly usage for hosts and containers. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageHosts @@ -31353,10 +31361,11 @@ paths: - Usage Metering /api/v1/usage/incident-management: get: + deprecated: true description: 'Get hourly usage for incident management. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetIncidentManagement @@ -31414,10 +31423,11 @@ paths: - Usage Metering /api/v1/usage/indexed-spans: get: + deprecated: true description: 'Get hourly usage for indexed spans. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageIndexedSpans @@ -31473,10 +31483,11 @@ paths: - Usage Metering /api/v1/usage/ingested-spans: get: + deprecated: true description: 'Get hourly usage for ingested spans. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetIngestedSpans @@ -31534,10 +31545,11 @@ paths: - Usage Metering /api/v1/usage/iot: get: + deprecated: true description: 'Get hourly usage for IoT. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageInternetOfThings @@ -31595,10 +31607,11 @@ paths: - Usage Metering /api/v1/usage/logs: get: + deprecated: true description: 'Get hourly usage for logs. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageLogs @@ -31654,10 +31667,11 @@ paths: - Usage Metering /api/v1/usage/logs-by-retention: get: + deprecated: true description: 'Get hourly usage for indexed logs by retention period. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageLogsByRetention @@ -31878,10 +31892,11 @@ paths: - Usage Metering /api/v1/usage/network_flows: get: + deprecated: true description: 'Get hourly usage for network flows. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageNetworkFlows @@ -31939,10 +31954,11 @@ paths: - Usage Metering /api/v1/usage/network_hosts: get: + deprecated: true description: 'Get hourly usage for network hosts. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageNetworkHosts @@ -31998,10 +32014,11 @@ paths: - Usage Metering /api/v1/usage/online-archive: get: + deprecated: true description: 'Get hourly usage for online archive. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageOnlineArchive @@ -32059,10 +32076,11 @@ paths: - Usage Metering /api/v1/usage/profiling: get: + deprecated: true description: 'Get hourly usage for profiled hosts. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageProfiling @@ -32120,11 +32138,12 @@ paths: - Usage Metering /api/v1/usage/rum: get: + deprecated: true description: 'Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageRumUnits @@ -32180,11 +32199,12 @@ paths: - Usage Metering /api/v1/usage/rum_sessions: get: + deprecated: true description: 'Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageRumSessions @@ -32246,10 +32266,11 @@ paths: - Usage Metering /api/v1/usage/sds: get: + deprecated: true description: 'Get hourly usage for sensitive data scanner. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageSDS @@ -32307,10 +32328,11 @@ paths: - Usage Metering /api/v1/usage/snmp: get: + deprecated: true description: 'Get hourly usage for SNMP devices. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageSNMP @@ -32433,8 +32455,8 @@ paths: deprecated: true description: 'Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/). - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageSynthetics @@ -32490,10 +32512,11 @@ paths: - Usage Metering /api/v1/usage/synthetics_api: get: + deprecated: true description: 'Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/). - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageSyntheticsAPI @@ -32549,10 +32572,11 @@ paths: - Usage Metering /api/v1/usage/synthetics_browser: get: + deprecated: true description: 'Get hourly usage for synthetics browser checks. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageSyntheticsBrowser @@ -32608,10 +32632,11 @@ paths: - Usage Metering /api/v1/usage/timeseries: get: + deprecated: true description: 'Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/). - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.' operationId: GetUsageTimeseries diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 16aa136f9a..5f027286d0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -34694,10 +34694,11 @@ paths: x-unstable: '**Note**: This endpoint is deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/).' /api/v2/usage/application_security: get: + deprecated: true description: 'Get hourly usage for application security . - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)' + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)' operationId: GetUsageApplicationSecurityMonitoring parameters: - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` @@ -35095,10 +35096,11 @@ paths: - Usage Metering /api/v2/usage/lambda_traced_invocations: get: + deprecated: true description: 'Get hourly usage for Lambda traced invocations. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)' + **Note:** This endpoint has been deprecated.. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)' operationId: GetUsageLambdaTracedInvocations parameters: - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` @@ -35154,10 +35156,11 @@ paths: - Usage Metering /api/v2/usage/observability_pipelines: get: + deprecated: true description: 'Get hourly usage for observability pipelines. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)' + **Note:** This endpoint has been deprecated. Hourly usage data for all products + is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)' operationId: GetUsageObservabilityPipelines parameters: - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` diff --git a/src/datadog_api_client/v1/api/usage_metering_api.py b/src/datadog_api_client/v1/api/usage_metering_api.py index 1ec922ff5d..eee4794227 100644 --- a/src/datadog_api_client/v1/api/usage_metering_api.py +++ b/src/datadog_api_client/v1/api/usage_metering_api.py @@ -1313,10 +1313,10 @@ def get_incident_management( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageIncidentManagementResponse: - """Get hourly usage for incident management. + """Get hourly usage for incident management. **Deprecated**. Get hourly usage for incident management. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1331,6 +1331,7 @@ def get_incident_management( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_incident_management is deprecated", DeprecationWarning, stacklevel=2) return self._get_incident_management_endpoint.call_with_http_info(**kwargs) def get_ingested_spans( @@ -1339,10 +1340,10 @@ def get_ingested_spans( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageIngestedSpansResponse: - """Get hourly usage for ingested spans. + """Get hourly usage for ingested spans. **Deprecated**. Get hourly usage for ingested spans. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1357,6 +1358,7 @@ def get_ingested_spans( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_ingested_spans is deprecated", DeprecationWarning, stacklevel=2) return self._get_ingested_spans_endpoint.call_with_http_info(**kwargs) def get_monthly_custom_reports( @@ -1521,10 +1523,10 @@ def get_usage_analyzed_logs( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageAnalyzedLogsResponse: - """Get hourly usage for analyzed logs. + """Get hourly usage for analyzed logs. **Deprecated**. Get hourly usage for analyzed logs (Security Monitoring). - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1539,6 +1541,7 @@ def get_usage_analyzed_logs( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_analyzed_logs is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_analyzed_logs_endpoint.call_with_http_info(**kwargs) def get_usage_audit_logs( @@ -1593,10 +1596,10 @@ def get_usage_ci_app( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageCIVisibilityResponse: - """Get hourly usage for CI visibility. + """Get hourly usage for CI visibility. **Deprecated**. Get hourly usage for CI visibility (tests, pipeline, and spans). - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1611,6 +1614,7 @@ def get_usage_ci_app( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_ci_app is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_ci_app_endpoint.call_with_http_info(**kwargs) def get_usage_cloud_security_posture_management( @@ -1619,10 +1623,10 @@ def get_usage_cloud_security_posture_management( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageCloudSecurityPostureManagementResponse: - """Get hourly usage for CSM Pro. + """Get hourly usage for CSM Pro. **Deprecated**. Get hourly usage for cloud security management (CSM) pro. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1637,6 +1641,7 @@ def get_usage_cloud_security_posture_management( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_cloud_security_posture_management is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_cloud_security_posture_management_endpoint.call_with_http_info(**kwargs) def get_usage_cws( @@ -1645,10 +1650,10 @@ def get_usage_cws( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageCWSResponse: - """Get hourly usage for cloud workload security. + """Get hourly usage for cloud workload security. **Deprecated**. Get hourly usage for cloud workload security. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1663,6 +1668,7 @@ def get_usage_cws( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_cws is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_cws_endpoint.call_with_http_info(**kwargs) def get_usage_dbm( @@ -1671,10 +1677,10 @@ def get_usage_dbm( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageDBMResponse: - """Get hourly usage for database monitoring. + """Get hourly usage for database monitoring. **Deprecated**. Get hourly usage for database monitoring - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1689,6 +1695,7 @@ def get_usage_dbm( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_dbm is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_dbm_endpoint.call_with_http_info(**kwargs) def get_usage_fargate( @@ -1697,10 +1704,10 @@ def get_usage_fargate( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageFargateResponse: - """Get hourly usage for Fargate. + """Get hourly usage for Fargate. **Deprecated**. Get hourly usage for `Fargate `_. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -1714,6 +1721,7 @@ def get_usage_fargate( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_fargate is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_fargate_endpoint.call_with_http_info(**kwargs) def get_usage_hosts( @@ -1722,10 +1730,10 @@ def get_usage_hosts( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageHostsResponse: - """Get hourly usage for hosts and containers. + """Get hourly usage for hosts and containers. **Deprecated**. Get hourly usage for hosts and containers. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -1739,6 +1747,7 @@ def get_usage_hosts( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_hosts is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_hosts_endpoint.call_with_http_info(**kwargs) def get_usage_indexed_spans( @@ -1747,10 +1756,10 @@ def get_usage_indexed_spans( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageIndexedSpansResponse: - """Get hourly usage for indexed spans. + """Get hourly usage for indexed spans. **Deprecated**. Get hourly usage for indexed spans. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1764,6 +1773,7 @@ def get_usage_indexed_spans( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_indexed_spans is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_indexed_spans_endpoint.call_with_http_info(**kwargs) def get_usage_internet_of_things( @@ -1772,10 +1782,10 @@ def get_usage_internet_of_things( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageIoTResponse: - """Get hourly usage for IoT. + """Get hourly usage for IoT. **Deprecated**. Get hourly usage for IoT. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1790,6 +1800,7 @@ def get_usage_internet_of_things( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_internet_of_things is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_internet_of_things_endpoint.call_with_http_info(**kwargs) def get_usage_lambda( @@ -1798,10 +1809,10 @@ def get_usage_lambda( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageLambdaResponse: - """Get hourly usage for Lambda. + """Get hourly usage for Lambda. **Deprecated**. Get hourly usage for Lambda. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -1815,6 +1826,7 @@ def get_usage_lambda( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_lambda is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_lambda_endpoint.call_with_http_info(**kwargs) def get_usage_logs( @@ -1823,10 +1835,10 @@ def get_usage_logs( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageLogsResponse: - """Get hourly usage for logs. + """Get hourly usage for logs. **Deprecated**. Get hourly usage for logs. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -1840,6 +1852,7 @@ def get_usage_logs( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_logs is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_logs_endpoint.call_with_http_info(**kwargs) def get_usage_logs_by_index( @@ -1878,10 +1891,10 @@ def get_usage_logs_by_retention( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageLogsByRetentionResponse: - """Get hourly logs usage by retention. + """Get hourly logs usage by retention. **Deprecated**. Get hourly usage for indexed logs by retention period. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1896,6 +1909,7 @@ def get_usage_logs_by_retention( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_logs_by_retention is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_logs_by_retention_endpoint.call_with_http_info(**kwargs) def get_usage_network_flows( @@ -1904,10 +1918,10 @@ def get_usage_network_flows( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageNetworkFlowsResponse: - """get hourly usage for network flows. + """get hourly usage for network flows. **Deprecated**. Get hourly usage for network flows. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1922,6 +1936,7 @@ def get_usage_network_flows( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_network_flows is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_network_flows_endpoint.call_with_http_info(**kwargs) def get_usage_network_hosts( @@ -1930,10 +1945,10 @@ def get_usage_network_hosts( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageNetworkHostsResponse: - """Get hourly usage for network hosts. + """Get hourly usage for network hosts. **Deprecated**. Get hourly usage for network hosts. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -1947,6 +1962,7 @@ def get_usage_network_hosts( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_network_hosts is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_network_hosts_endpoint.call_with_http_info(**kwargs) def get_usage_online_archive( @@ -1955,10 +1971,10 @@ def get_usage_online_archive( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageOnlineArchiveResponse: - """Get hourly usage for online archive. + """Get hourly usage for online archive. **Deprecated**. Get hourly usage for online archive. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1973,6 +1989,7 @@ def get_usage_online_archive( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_online_archive is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_online_archive_endpoint.call_with_http_info(**kwargs) def get_usage_profiling( @@ -1981,10 +1998,10 @@ def get_usage_profiling( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageProfilingResponse: - """Get hourly usage for profiled hosts. + """Get hourly usage for profiled hosts. **Deprecated**. Get hourly usage for profiled hosts. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -1999,6 +2016,7 @@ def get_usage_profiling( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_profiling is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_profiling_endpoint.call_with_http_info(**kwargs) def get_usage_rum_sessions( @@ -2008,10 +2026,10 @@ def get_usage_rum_sessions( end_hr: Union[datetime, UnsetType] = unset, type: Union[str, UnsetType] = unset, ) -> UsageRumSessionsResponse: - """Get hourly usage for RUM sessions. + """Get hourly usage for RUM sessions. **Deprecated**. Get hourly usage for `RUM `_ Sessions. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -2030,6 +2048,7 @@ def get_usage_rum_sessions( if type is not unset: kwargs["type"] = type + warnings.warn("get_usage_rum_sessions is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_rum_sessions_endpoint.call_with_http_info(**kwargs) def get_usage_rum_units( @@ -2038,10 +2057,10 @@ def get_usage_rum_units( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageRumUnitsResponse: - """Get hourly usage for RUM units. + """Get hourly usage for RUM units. **Deprecated**. Get hourly usage for `RUM `_ Units. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -2055,6 +2074,7 @@ def get_usage_rum_units( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_rum_units is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_rum_units_endpoint.call_with_http_info(**kwargs) def get_usage_sds( @@ -2063,10 +2083,10 @@ def get_usage_sds( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageSDSResponse: - """Get hourly usage for sensitive data scanner. + """Get hourly usage for sensitive data scanner. **Deprecated**. Get hourly usage for sensitive data scanner. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -2081,6 +2101,7 @@ def get_usage_sds( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_sds is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_sds_endpoint.call_with_http_info(**kwargs) def get_usage_snmp( @@ -2089,10 +2110,10 @@ def get_usage_snmp( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageSNMPResponse: - """Get hourly usage for SNMP devices. + """Get hourly usage for SNMP devices. **Deprecated**. Get hourly usage for SNMP devices. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -2107,6 +2128,7 @@ def get_usage_snmp( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_snmp is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_snmp_endpoint.call_with_http_info(**kwargs) def get_usage_summary( @@ -2149,7 +2171,7 @@ def get_usage_synthetics( """Get hourly usage for synthetics checks. **Deprecated**. Get hourly usage for `synthetics checks `_. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -2172,10 +2194,10 @@ def get_usage_synthetics_api( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageSyntheticsAPIResponse: - """Get hourly usage for synthetics API checks. + """Get hourly usage for synthetics API checks. **Deprecated**. Get hourly usage for `synthetics API checks `_. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -2189,6 +2211,7 @@ def get_usage_synthetics_api( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_synthetics_api is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_synthetics_api_endpoint.call_with_http_info(**kwargs) def get_usage_synthetics_browser( @@ -2197,10 +2220,10 @@ def get_usage_synthetics_browser( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageSyntheticsBrowserResponse: - """Get hourly usage for synthetics browser checks. + """Get hourly usage for synthetics browser checks. **Deprecated**. Get hourly usage for synthetics browser checks. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -2214,6 +2237,7 @@ def get_usage_synthetics_browser( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_synthetics_browser is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_synthetics_browser_endpoint.call_with_http_info(**kwargs) def get_usage_timeseries( @@ -2222,10 +2246,10 @@ def get_usage_timeseries( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageTimeseriesResponse: - """Get hourly usage for custom metrics. + """Get hourly usage for custom metrics. **Deprecated**. Get hourly usage for `custom metrics `_. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_. Refer to `Migrating from the V1 Hourly Usage APIs to V2 `_ for the associated migration guide. :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. :type start_hr: datetime @@ -2239,6 +2263,7 @@ def get_usage_timeseries( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_timeseries is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_timeseries_endpoint.call_with_http_info(**kwargs) def get_usage_top_avg_metrics( diff --git a/src/datadog_api_client/v2/api/usage_metering_api.py b/src/datadog_api_client/v2/api/usage_metering_api.py index c663f7a223..6c048e2f68 100644 --- a/src/datadog_api_client/v2/api/usage_metering_api.py +++ b/src/datadog_api_client/v2/api/usage_metering_api.py @@ -684,10 +684,10 @@ def get_usage_application_security_monitoring( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageApplicationSecurityMonitoringResponse: - """Get hourly usage for application security. + """Get hourly usage for application security. **Deprecated**. Get hourly usage for application security . - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_ + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_ :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -702,6 +702,7 @@ def get_usage_application_security_monitoring( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_application_security_monitoring is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_application_security_monitoring_endpoint.call_with_http_info(**kwargs) def get_usage_lambda_traced_invocations( @@ -710,10 +711,10 @@ def get_usage_lambda_traced_invocations( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageLambdaTracedInvocationsResponse: - """Get hourly usage for Lambda traced invocations. + """Get hourly usage for Lambda traced invocations. **Deprecated**. Get hourly usage for Lambda traced invocations. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_ + **Note:** This endpoint has been deprecated.. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_ :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -728,6 +729,7 @@ def get_usage_lambda_traced_invocations( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_lambda_traced_invocations is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_lambda_traced_invocations_endpoint.call_with_http_info(**kwargs) def get_usage_observability_pipelines( @@ -736,10 +738,10 @@ def get_usage_observability_pipelines( *, end_hr: Union[datetime, UnsetType] = unset, ) -> UsageObservabilityPipelinesResponse: - """Get hourly usage for observability pipelines. + """Get hourly usage for observability pipelines. **Deprecated**. Get hourly usage for observability pipelines. - **Note:** hourly usage data for all products is now available in the `Get hourly usage by product family API `_ + **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the `Get hourly usage by product family API `_ :param start_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage beginning at this hour. :type start_hr: datetime @@ -754,4 +756,5 @@ def get_usage_observability_pipelines( if end_hr is not unset: kwargs["end_hr"] = end_hr + warnings.warn("get_usage_observability_pipelines is deprecated", DeprecationWarning, stacklevel=2) return self._get_usage_observability_pipelines_endpoint.call_with_http_info(**kwargs)