Skip to content

Commit a020fad

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
mark apm_resource_stats query is deprecated (DataDog#3317)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 48d5c72 commit a020fad

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,8 @@ components:
30063006
x-enum-varnames:
30073007
- APM_RESOURCE_STATS
30083008
FormulaAndFunctionApmResourceStatsQueryDefinition:
3009-
description: APM resource stats query using formulas and functions.
3009+
deprecated: true
3010+
description: APM resource stats query using formulas and functions. Deprecated - Use `apm_metrics` query type instead.
30103011
properties:
30113012
cross_org_uuids:
30123013
$ref: "#/components/schemas/CrossOrgUuids"

lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V1
20-
# APM resource stats query using formulas and functions.
20+
# APM resource stats query using formulas and functions. Deprecated - Use `apm_metrics` query type instead.
21+
#
22+
# @deprecated This model is deprecated.
2123
class FormulaAndFunctionApmResourceStatsQueryDefinition
2224
include BaseGenericModel
2325

@@ -96,6 +98,7 @@ def self.openapi_types
9698
# @param attributes [Hash] Model attributes in the form of hash
9799
# @!visibility private
98100
def initialize(attributes = {})
101+
warn "[DEPRECATION] `FormulaAndFunctionApmResourceStatsQueryDefinition` is deprecated."
99102
if (!attributes.is_a?(Hash))
100103
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition` initialize method"
101104
end

0 commit comments

Comments
 (0)