diff --git a/.apigentools-info b/.apigentools-info index 8ac4fde14d..31ea6bbbd8 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-19 19:35:49.311297", - "spec_repo_commit": "a7489f2d" + "regenerated": "2024-03-21 18:40:50.512389", + "spec_repo_commit": "5fd1a3d5" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-19 19:35:49.331556", - "spec_repo_commit": "a7489f2d" + "regenerated": "2024-03-21 18:40:50.527391", + "spec_repo_commit": "5fd1a3d5" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 3cb57f34d0..eaeca4c163 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -31161,10 +31161,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 @@ -31375,10 +31376,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 @@ -31480,10 +31482,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 @@ -31541,10 +31544,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 @@ -31602,10 +31606,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 @@ -31663,10 +31668,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 @@ -31724,10 +31730,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 @@ -31783,10 +31790,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 @@ -31930,10 +31938,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 @@ -31991,10 +32000,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 @@ -32050,10 +32060,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 @@ -32111,10 +32122,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 @@ -32172,10 +32184,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 @@ -32231,10 +32244,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 @@ -32455,10 +32469,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 @@ -32516,10 +32531,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 @@ -32575,10 +32591,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 @@ -32636,10 +32653,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 @@ -32697,11 +32715,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 @@ -32757,11 +32776,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 @@ -32823,10 +32843,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 @@ -32884,10 +32905,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 @@ -33010,8 +33032,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 @@ -33067,10 +33089,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 @@ -33126,10 +33149,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 @@ -33185,10 +33209,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 800cc831f1..602c55cf76 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 4cbe415c8e..02168e98fc 100644 --- a/src/datadog_api_client/v1/api/usage_metering_api.py +++ b/src/datadog_api_client/v1/api/usage_metering_api.py @@ -1375,10 +1375,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 @@ -1393,6 +1393,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( @@ -1401,10 +1402,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 @@ -1419,6 +1420,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( @@ -1583,10 +1585,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 @@ -1601,6 +1603,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_attribution( @@ -1718,10 +1721,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 @@ -1736,6 +1739,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( @@ -1744,10 +1748,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 @@ -1762,6 +1766,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( @@ -1770,10 +1775,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 @@ -1788,6 +1793,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( @@ -1796,10 +1802,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 @@ -1814,6 +1820,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( @@ -1822,10 +1829,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 @@ -1839,6 +1846,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( @@ -1847,10 +1855,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 @@ -1864,6 +1872,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( @@ -1872,10 +1881,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 @@ -1889,6 +1898,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( @@ -1897,10 +1907,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 @@ -1915,6 +1925,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( @@ -1923,10 +1934,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 @@ -1940,6 +1951,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( @@ -1948,10 +1960,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 @@ -1965,6 +1977,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( @@ -2003,10 +2016,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 @@ -2021,6 +2034,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( @@ -2029,10 +2043,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 @@ -2047,6 +2061,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( @@ -2055,10 +2070,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 @@ -2072,6 +2087,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( @@ -2080,10 +2096,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 @@ -2098,6 +2114,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( @@ -2106,10 +2123,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 @@ -2124,6 +2141,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( @@ -2133,10 +2151,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 @@ -2155,6 +2173,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( @@ -2163,10 +2182,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 @@ -2180,6 +2199,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( @@ -2188,10 +2208,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 @@ -2206,6 +2226,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( @@ -2214,10 +2235,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 @@ -2232,6 +2253,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( @@ -2274,7 +2296,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 @@ -2297,10 +2319,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 @@ -2314,6 +2336,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( @@ -2322,10 +2345,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 @@ -2339,6 +2362,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( @@ -2347,10 +2371,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 @@ -2364,6 +2388,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)