Skip to content

Commit aea88d5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Dashboards - Toplist widget style - Add palette (#1992)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent c00f226 commit aea88d5

File tree

11 files changed

+43
-27
lines changed

11 files changed

+43
-27
lines changed

.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.6",
7-
"regenerated": "2024-09-04 17:12:26.140493",
8-
"spec_repo_commit": "8e0507d2"
7+
"regenerated": "2024-09-06 21:00:12.124581",
8+
"spec_repo_commit": "3dff532a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-04 17:12:26.158768",
13-
"spec_repo_commit": "8e0507d2"
12+
"regenerated": "2024-09-06 21:00:12.142757",
13+
"spec_repo_commit": "3dff532a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17115,6 +17115,9 @@ components:
1711517115
properties:
1711617116
display:
1711717117
$ref: '#/components/schemas/ToplistWidgetDisplay'
17118+
palette:
17119+
description: Color palette to apply to the widget.
17120+
type: string
1711817121
scaling:
1711917122
$ref: '#/components/schemas/ToplistWidgetScaling'
1712017123
type: object
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-21T14:43:42.680Z
1+
2024-09-06T12:10:50.473Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-a-toplist-widget-sorted-by-group.yml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-15T20:07:42.432Z
1+
2024-09-06T12:10:51.099Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-toplist-widget.yml

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

examples/v1/dashboards/CreateDashboard_1213075383.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
legend: DatadogAPIClient::V1::ToplistWidgetLegend::INLINE,
2626
}),
2727
scaling: DatadogAPIClient::V1::ToplistWidgetScaling::RELATIVE,
28+
palette: "dog_classic",
2829
}),
2930
type: DatadogAPIClient::V1::ToplistWidgetDefinitionType::TOPLIST,
3031
requests: [

examples/v1/dashboards/CreateDashboard_2563642929.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
legend: DatadogAPIClient::V1::ToplistWidgetLegend::INLINE,
2626
}),
2727
scaling: DatadogAPIClient::V1::ToplistWidgetScaling::RELATIVE,
28+
palette: "dog_classic",
2829
}),
2930
type: DatadogAPIClient::V1::ToplistWidgetDefinitionType::TOPLIST,
3031
requests: [

features/v1/dashboards.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Feature: Dashboards
190190
@team:DataDog/dashboards-backend
191191
Scenario: Create a new dashboard with a toplist widget sorted by group
192192
Given new "CreateDashboard" request
193-
And body with value {"title":"{{ unique }}","description":"","widgets":[{"layout":{"x":0,"y":0,"width":47,"height":15},"definition":{"title":"","title_size":"16","title_align":"left","time":{},"style":{"display": {"type": "stacked","legend": "inline"},"scaling": "relative"},"type":"toplist","requests":[{"queries":[{"data_source":"metrics","name":"query1","query":"avg:system.cpu.user{*} by {service}","aggregator":"avg"}],"formulas":[{"formula":"query1"}],"sort":{"count":10,"order_by":[{"type":"group","name":"service","order":"asc"}]},"response_format":"scalar"}]}}],"template_variables":[],"layout_type":"free","is_read_only":false,"notify_list":[]}
193+
And body with value {"title":"{{ unique }}","description":"","widgets":[{"layout":{"x":0,"y":0,"width":47,"height":15},"definition":{"title":"","title_size":"16","title_align":"left","time":{},"style":{"display": {"type": "stacked","legend": "inline"},"scaling": "relative","palette": "dog_classic"},"type":"toplist","requests":[{"queries":[{"data_source":"metrics","name":"query1","query":"avg:system.cpu.user{*} by {service}","aggregator":"avg"}],"formulas":[{"formula":"query1"}],"sort":{"count":10,"order_by":[{"type":"group","name":"service","order":"asc"}]},"response_format":"scalar"}]}}],"template_variables":[],"layout_type":"free","is_read_only":false,"notify_list":[]}
194194
When the request is sent
195195
Then the response status is 200 OK
196196
And the response "widgets[0].definition.type" is equal to "toplist"

features/v1/dashboards_json_payload/toplist_widget.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"type": "stacked",
2222
"legend": "inline"
2323
},
24-
"scaling": "relative"
24+
"scaling": "relative",
25+
"palette": "dog_classic"
2526
},
2627
"type":"toplist",
2728
"requests":[

0 commit comments

Comments
 (0)