Skip to content

Commit 8e3fc82

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 85a84a0 of spec repo
1 parent 02eb0e2 commit 8e3fc82

28 files changed

Lines changed: 284 additions & 30 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19313,6 +19313,23 @@ components:
1931319313
x-enum-varnames:
1931419314
- BARS
1931519315
- AREA
19316+
TimeseriesRequestStyle:
19317+
description: Define request widget style for timeseries widgets.
19318+
properties:
19319+
has_value_labels:
19320+
description: If true, the value is displayed as a label relative to the
19321+
data point.
19322+
type: boolean
19323+
line_type:
19324+
$ref: '#/components/schemas/WidgetLineType'
19325+
line_width:
19326+
$ref: '#/components/schemas/WidgetLineWidth'
19327+
order_by:
19328+
$ref: '#/components/schemas/WidgetStyleOrderBy'
19329+
palette:
19330+
description: Color palette to apply to the widget.
19331+
type: string
19332+
type: object
1931619333
TimeseriesWidgetDefinition:
1931719334
description: The timeseries visualization allows you to display the evolution
1931819335
of one or more metrics, log events, or Indexed Spans over time.
@@ -19467,7 +19484,7 @@ components:
1946719484
security_query:
1946819485
$ref: '#/components/schemas/LogQueryDefinition'
1946919486
style:
19470-
$ref: '#/components/schemas/WidgetRequestStyle'
19487+
$ref: '#/components/schemas/TimeseriesRequestStyle'
1947119488
type: object
1947219489
ToplistWidgetDefinition:
1947319490
description: The top list visualization enables you to display a list of Tag
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-03-02T17:38:31.339Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-timeseries-widget-using-has-value-labels.yml

Lines changed: 47 additions & 0 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-
2026-02-18T16:57:05.121Z
1+
2026-01-07T12:38:45.716Z

cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.yml

Lines changed: 9 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_1259346254.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
requests: [
1414
DatadogAPIClient::V1::TimeseriesWidgetRequest.new({
1515
q: "avg:system.cpu.user{*} by {host}",
16-
style: DatadogAPIClient::V1::WidgetRequestStyle.new({
16+
style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({
1717
palette: "warm",
1818
order_by: DatadogAPIClient::V1::WidgetStyleOrderBy::VALUES,
1919
}),

examples/v1/dashboards/CreateDashboard_1284514532.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}),
2828
],
2929
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
30-
style: DatadogAPIClient::V1::WidgetRequestStyle.new({
30+
style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({
3131
palette: "dog_classic",
3232
line_type: DatadogAPIClient::V1::WidgetLineType::SOLID,
3333
line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL,

examples/v1/dashboards/CreateDashboard_1307120899.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}),
4545
],
4646
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
47-
style: DatadogAPIClient::V1::WidgetRequestStyle.new({
47+
style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({
4848
palette: "dog_classic",
4949
line_type: DatadogAPIClient::V1::WidgetLineType::SOLID,
5050
line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL,

examples/v1/dashboards/CreateDashboard_1433408735.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}),
2828
],
2929
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
30-
style: DatadogAPIClient::V1::WidgetRequestStyle.new({
30+
style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({
3131
palette: "dog_classic",
3232
line_type: DatadogAPIClient::V1::WidgetLineType::SOLID,
3333
line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL,
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Create a new dashboard with timeseries widget using has_value_labels
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5+
6+
body = DatadogAPIClient::V1::Dashboard.new({
7+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
8+
title: "Example-Dashboard with has_value_labels",
9+
widgets: [
10+
DatadogAPIClient::V1::Widget.new({
11+
definition: DatadogAPIClient::V1::TimeseriesWidgetDefinition.new({
12+
type: DatadogAPIClient::V1::TimeseriesWidgetDefinitionType::TIMESERIES,
13+
requests: [
14+
DatadogAPIClient::V1::TimeseriesWidgetRequest.new({
15+
q: "avg:system.cpu.user{*} by {host}",
16+
style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({
17+
palette: "dog_classic",
18+
line_type: DatadogAPIClient::V1::WidgetLineType::SOLID,
19+
line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL,
20+
has_value_labels: true,
21+
}),
22+
display_type: DatadogAPIClient::V1::WidgetDisplayType::LINE,
23+
}),
24+
],
25+
}),
26+
}),
27+
],
28+
})
29+
p api_instance.create_dashboard(body)

0 commit comments

Comments
 (0)