Skip to content

Commit 46dc802

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 42058b6 of spec repo
1 parent 7bf92a4 commit 46dc802

File tree

8 files changed

+114
-16
lines changed

8 files changed

+114
-16
lines changed

content/en/api/v1/dashboards/examples.json

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"layout_type": "ordered",
3+
"title": "Example-Dashboard with order_by values",
4+
"widgets": [
5+
{
6+
"definition": {
7+
"type": "timeseries",
8+
"requests": [
9+
{
10+
"q": "avg:system.cpu.user{*} by {host}",
11+
"style": {
12+
"palette": "warm",
13+
"order_by": "values"
14+
},
15+
"display_type": "line"
16+
}
17+
]
18+
}
19+
}
20+
]
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"layout_type": "ordered",
3+
"title": "Example-Dashboard without order_by",
4+
"widgets": [
5+
{
6+
"definition": {
7+
"type": "timeseries",
8+
"requests": [
9+
{
10+
"q": "avg:system.cpu.user{*} by {host}",
11+
"style": {
12+
"palette": "dog_classic",
13+
"line_type": "solid",
14+
"line_width": "normal"
15+
},
16+
"display_type": "line"
17+
}
18+
]
19+
}
20+
}
21+
]
22+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"layout_type": "ordered",
3+
"title": "Example-Dashboard with order_by tags",
4+
"widgets": [
5+
{
6+
"definition": {
7+
"type": "timeseries",
8+
"requests": [
9+
{
10+
"q": "avg:system.cpu.user{*} by {host}",
11+
"style": {
12+
"palette": "dog_classic",
13+
"order_by": "tags"
14+
},
15+
"display_type": "line"
16+
}
17+
]
18+
}
19+
}
20+
]
21+
}

content/en/api/v1/dashboards/widgets.json

Lines changed: 9 additions & 5 deletions
Large diffs are not rendered by default.

content/en/api/v1/notebooks/examples.json

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

data/api/v1/CodeExamples.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,26 @@
441441
"suffix": "_3982498788",
442442
"description": "Create a new dashboard with timeseries widget containing style attributes"
443443
},
444+
{
445+
"group": "dashboards",
446+
"suffix": "_416487533",
447+
"description": "Create a new dashboard with timeseries widget using order_by tags"
448+
},
449+
{
450+
"group": "dashboards",
451+
"suffix": "_1259346254",
452+
"description": "Create a new dashboard with timeseries widget using order_by values"
453+
},
444454
{
445455
"group": "dashboards",
446456
"suffix": "_3520534424",
447457
"description": "Create a new dashboard with timeseries widget with custom_unit"
448458
},
459+
{
460+
"group": "dashboards",
461+
"suffix": "_3631423980",
462+
"description": "Create a new dashboard with timeseries widget without order_by for backward compatibility"
463+
},
449464
{
450465
"group": "dashboards",
451466
"suffix": "_1213075383",

data/api/v1/full_spec.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26170,6 +26170,8 @@ components:
2617026170
$ref: '#/components/schemas/WidgetLineType'
2617126171
line_width:
2617226172
$ref: '#/components/schemas/WidgetLineWidth'
26173+
order_by:
26174+
$ref: '#/components/schemas/WidgetStyleOrderBy'
2617326175
palette:
2617426176
description: Color palette to apply to the widget.
2617526177
type: string
@@ -26232,6 +26234,19 @@ components:
2623226234
description: Color palette to apply to the widget.
2623326235
type: string
2623426236
type: object
26237+
WidgetStyleOrderBy:
26238+
description: 'How to order series in timeseries visualizations.
26239+
26240+
- `tags`: Order series alphabetically by tag name (default behavior)
26241+
26242+
- `values`: Order series by their current metric values (typically descending)'
26243+
enum:
26244+
- tags
26245+
- values
26246+
type: string
26247+
x-enum-varnames:
26248+
- TAGS
26249+
- VALUES
2623526250
WidgetSummaryType:
2623626251
description: Which summary type should be used.
2623726252
enum:

0 commit comments

Comments
 (0)