Skip to content

Commit 9aee8a3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f52daeb of spec repo
1 parent 25ce205 commit 9aee8a3

4 files changed

Lines changed: 56 additions & 4 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,6 +2986,8 @@ components:
29862986
type: string
29872987
group_by:
29882988
description: Array of fields to group results by.
2989+
example:
2990+
- "resource_name"
29892991
items:
29902992
description: Field to group results by.
29912993
example: "resource_name"
@@ -3023,6 +3025,8 @@ components:
30233025
- name
30243026
- service
30253027
- stat
3028+
- operation_name
3029+
- group_by
30263030
type: object
30273031
FormulaAndFunctionCloudCostDataSource:
30283032
description: Data source for Cloud Cost queries.

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,6 +4447,8 @@ components:
44474447
type: string
44484448
group_by:
44494449
description: Tag keys to group results by.
4450+
example:
4451+
- resource_name
44504452
items:
44514453
description: A tag key to group by.
44524454
example: resource_name
@@ -4484,6 +4486,8 @@ components:
44844486
- env
44854487
- service
44864488
- stat
4489+
- operation_name
4490+
- group_by
44874491
type: object
44884492
ApmRetentionFilterType:
44894493
default: apm_retention_filter

lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition
3131
attr_reader :env
3232

3333
# Array of fields to group results by.
34-
attr_accessor :group_by
34+
attr_reader :group_by
3535

3636
# Name of this query to use in formulas.
3737
attr_reader :name
3838

3939
# Name of operation on service.
40-
attr_accessor :operation_name
40+
attr_reader :operation_name
4141

4242
# Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
4343
attr_accessor :primary_tag_name
@@ -166,7 +166,9 @@ def valid?
166166
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
167167
return false if @data_source.nil?
168168
return false if @env.nil?
169+
return false if @group_by.nil?
169170
return false if @name.nil?
171+
return false if @operation_name.nil?
170172
return false if @service.nil?
171173
return false if @stat.nil?
172174
true
@@ -202,6 +204,16 @@ def env=(env)
202204
@env = env
203205
end
204206

207+
# Custom attribute writer method with validation
208+
# @param group_by [Object] Object to be assigned
209+
# @!visibility private
210+
def group_by=(group_by)
211+
if group_by.nil?
212+
fail ArgumentError, 'invalid value for "group_by", group_by cannot be nil.'
213+
end
214+
@group_by = group_by
215+
end
216+
205217
# Custom attribute writer method with validation
206218
# @param name [Object] Object to be assigned
207219
# @!visibility private
@@ -212,6 +224,16 @@ def name=(name)
212224
@name = name
213225
end
214226

227+
# Custom attribute writer method with validation
228+
# @param operation_name [Object] Object to be assigned
229+
# @!visibility private
230+
def operation_name=(operation_name)
231+
if operation_name.nil?
232+
fail ArgumentError, 'invalid value for "operation_name", operation_name cannot be nil.'
233+
end
234+
@operation_name = operation_name
235+
end
236+
215237
# Custom attribute writer method with validation
216238
# @param service [Object] Object to be assigned
217239
# @!visibility private

lib/datadog_api_client/v2/models/apm_resource_stats_query.rb

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class ApmResourceStatsQuery
2828
attr_reader :env
2929

3030
# Tag keys to group results by.
31-
attr_accessor :group_by
31+
attr_reader :group_by
3232

3333
# The variable name for use in formulas.
3434
attr_reader :name
3535

3636
# The APM operation name.
37-
attr_accessor :operation_name
37+
attr_reader :operation_name
3838

3939
# Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
4040
attr_accessor :primary_tag_name
@@ -154,7 +154,9 @@ def initialize(attributes = {})
154154
def valid?
155155
return false if @data_source.nil?
156156
return false if @env.nil?
157+
return false if @group_by.nil?
157158
return false if @name.nil?
159+
return false if @operation_name.nil?
158160
return false if @service.nil?
159161
return false if @stat.nil?
160162
true
@@ -180,6 +182,16 @@ def env=(env)
180182
@env = env
181183
end
182184

185+
# Custom attribute writer method with validation
186+
# @param group_by [Object] Object to be assigned
187+
# @!visibility private
188+
def group_by=(group_by)
189+
if group_by.nil?
190+
fail ArgumentError, 'invalid value for "group_by", group_by cannot be nil.'
191+
end
192+
@group_by = group_by
193+
end
194+
183195
# Custom attribute writer method with validation
184196
# @param name [Object] Object to be assigned
185197
# @!visibility private
@@ -190,6 +202,16 @@ def name=(name)
190202
@name = name
191203
end
192204

205+
# Custom attribute writer method with validation
206+
# @param operation_name [Object] Object to be assigned
207+
# @!visibility private
208+
def operation_name=(operation_name)
209+
if operation_name.nil?
210+
fail ArgumentError, 'invalid value for "operation_name", operation_name cannot be nil.'
211+
end
212+
@operation_name = operation_name
213+
end
214+
193215
# Custom attribute writer method with validation
194216
# @param service [Object] Object to be assigned
195217
# @!visibility private

0 commit comments

Comments
 (0)