diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4707c147e8b2..b963c5298057 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3006,7 +3006,8 @@ components: x-enum-varnames: - APM_RESOURCE_STATS FormulaAndFunctionApmResourceStatsQueryDefinition: - description: APM resource stats query using formulas and functions. + deprecated: true + description: APM resource stats query using formulas and functions. Deprecated - Use `apm_metrics` query type instead. properties: cross_org_uuids: $ref: "#/components/schemas/CrossOrgUuids" diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb index e69aafdfb6fe..28f2ce122942 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb @@ -17,7 +17,9 @@ require 'time' module DatadogAPIClient::V1 - # APM resource stats query using formulas and functions. + # APM resource stats query using formulas and functions. Deprecated - Use `apm_metrics` query type instead. + # + # @deprecated This model is deprecated. class FormulaAndFunctionApmResourceStatsQueryDefinition include BaseGenericModel @@ -96,6 +98,7 @@ def self.openapi_types # @param attributes [Hash] Model attributes in the form of hash # @!visibility private def initialize(attributes = {}) + warn "[DEPRECATION] `FormulaAndFunctionApmResourceStatsQueryDefinition` is deprecated." if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition` initialize method" end