Skip to content

Commit 4fa9113

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 87d036cf of spec repo
1 parent 8793920 commit 4fa9113

7 files changed

Lines changed: 38 additions & 18 deletions

File tree

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-08-30 11:45:14.126484",
8-
"spec_repo_commit": "2f2fd804"
7+
"regenerated": "2023-08-31 13:08:56.589174",
8+
"spec_repo_commit": "87d036cf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-30 11:45:14.139877",
13-
"spec_repo_commit": "2f2fd804"
12+
"regenerated": "2023-08-31 13:08:56.601962",
13+
"spec_repo_commit": "87d036cf"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12165,6 +12165,8 @@ components:
1216512165
$ref: '#/components/schemas/LogQueryDefinition'
1216612166
security_query:
1216712167
$ref: '#/components/schemas/LogQueryDefinition'
12168+
style:
12169+
$ref: '#/components/schemas/WidgetStyle'
1216812170
type: object
1216912171
SyntheticsAPIStep:
1217012172
description: The steps used in a Synthetic multistep API test.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:50:41.066Z
1+
2023-08-29T23:33:40.928Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-sunburst-widget-and-metrics-data.yml

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/dashboards/CreateDashboard_2705593938.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
aggregator: DatadogAPIClient::V1::FormulaAndFunctionMetricAggregation::SUM,
2929
}),
3030
],
31+
style: DatadogAPIClient::V1::WidgetStyle.new({
32+
palette: "dog_classic",
33+
}),
3134
}),
3235
],
3336
}),

features/v1/dashboards.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ Feature: Dashboards
621621
@team:DataDog/dashboards-backend
622622
Scenario: Create a new dashboard with sunburst widget and metrics data
623623
Given new "CreateDashboard" request
624-
And body with value { "title": "{{ unique }}", "widgets": [ { "definition": { "title": "", "title_size": "16", "title_align": "left", "type": "sunburst", "requests": [ { "response_format": "scalar", "formulas": [ { "formula": "query1" } ], "queries": [ { "query": "sum:system.mem.used{*} by {service}", "data_source": "metrics", "name": "query1", "aggregator": "sum" } ] } ] }, "layout": { "x": 0, "y": 0, "width": 4, "height": 4 } } ], "layout_type": "ordered" }
624+
And body with value { "title": "{{ unique }}", "widgets": [ { "definition": { "title": "", "title_size": "16", "title_align": "left", "type": "sunburst", "requests": [ { "response_format": "scalar", "formulas": [ { "formula": "query1" } ], "queries": [ { "query": "sum:system.mem.used{*} by {service}", "data_source": "metrics", "name": "query1", "aggregator": "sum" } ], "style": { "palette": "dog_classic" } } ] }, "layout": { "x": 0, "y": 0, "width": 4, "height": 4 } } ], "layout_type": "ordered" }
625625
When the request is sent
626626
Then the response status is 200 OK
627627
And the response "widgets[0].definition.requests[0].response_format" is equal to "scalar"
@@ -630,6 +630,7 @@ Feature: Dashboards
630630
And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
631631
And the response "widgets[0].definition.requests[0].queries[0].aggregator" is equal to "sum"
632632
And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
633+
And the response "widgets[0].definition.requests[0].style.palette" is equal to "dog_classic"
633634

634635
@team:DataDog/dashboards-backend
635636
Scenario: Create a new dashboard with team tags returns "OK" response

lib/datadog_api_client/v1/models/sunburst_widget_request.rb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class SunburstWidgetRequest
6060
# The log query.
6161
attr_accessor :security_query
6262

63+
# Widget style definition.
64+
attr_accessor :style
65+
6366
# Attribute mapping from ruby-style variable name to JSON key.
6467
# @!visibility private
6568
def self.attribute_map
@@ -76,7 +79,8 @@ def self.attribute_map
7679
:'queries' => :'queries',
7780
:'response_format' => :'response_format',
7881
:'rum_query' => :'rum_query',
79-
:'security_query' => :'security_query'
82+
:'security_query' => :'security_query',
83+
:'style' => :'style'
8084
}
8185
end
8286

@@ -96,7 +100,8 @@ def self.openapi_types
96100
:'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
97101
:'response_format' => :'FormulaAndFunctionResponseFormat',
98102
:'rum_query' => :'LogQueryDefinition',
99-
:'security_query' => :'LogQueryDefinition'
103+
:'security_query' => :'LogQueryDefinition',
104+
:'style' => :'WidgetStyle'
100105
}
101106
end
102107

@@ -171,6 +176,10 @@ def initialize(attributes = {})
171176
if attributes.key?(:'security_query')
172177
self.security_query = attributes[:'security_query']
173178
end
179+
180+
if attributes.key?(:'style')
181+
self.style = attributes[:'style']
182+
end
174183
end
175184

176185
# Checks equality by comparing each attribute.
@@ -191,14 +200,15 @@ def ==(o)
191200
queries == o.queries &&
192201
response_format == o.response_format &&
193202
rum_query == o.rum_query &&
194-
security_query == o.security_query
203+
security_query == o.security_query &&
204+
style == o.style
195205
end
196206

197207
# Calculates hash code according to all attributes.
198208
# @return [Integer] Hash code
199209
# @!visibility private
200210
def hash
201-
[apm_query, audit_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query].hash
211+
[apm_query, audit_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, style].hash
202212
end
203213
end
204214
end

0 commit comments

Comments
 (0)