Skip to content

Commit c97da72

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e9abb31 of spec repo
1 parent 23e952c commit c97da72

20 files changed

+599
-7
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,9 @@ components:
17411741
type: string
17421742
markers:
17431743
description: List of markers.
1744+
example:
1745+
- display_type: percentile
1746+
value: '90'
17441747
items:
17451748
$ref: '#/components/schemas/WidgetMarker'
17461749
type: array
@@ -1816,6 +1819,11 @@ components:
18161819
$ref: '#/components/schemas/ApmStatsQueryDefinition'
18171820
event_query:
18181821
$ref: '#/components/schemas/LogQueryDefinition'
1822+
formulas:
1823+
description: List of formulas that operate on queries.
1824+
items:
1825+
$ref: '#/components/schemas/WidgetFormula'
1826+
type: array
18191827
log_query:
18201828
$ref: '#/components/schemas/LogQueryDefinition'
18211829
network_query:
@@ -1827,10 +1835,17 @@ components:
18271835
q:
18281836
description: Widget query.
18291837
type: string
1838+
queries:
1839+
description: List of queries that can be returned directly or used in formulas.
1840+
items:
1841+
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
1842+
type: array
18301843
query:
18311844
$ref: '#/components/schemas/DistributionWidgetHistogramRequestQuery'
18321845
request_type:
18331846
$ref: '#/components/schemas/DistributionWidgetHistogramRequestType'
1847+
response_format:
1848+
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
18341849
rum_query:
18351850
$ref: '#/components/schemas/LogQueryDefinition'
18361851
security_query:
@@ -1854,6 +1869,12 @@ components:
18541869
description: Specifies minimum value to show on the x-axis. It takes a number,
18551870
percentile (p90 === 90th percentile), or auto for default behavior.
18561871
type: string
1872+
num_buckets:
1873+
description: Number of value buckets to target, also known as the resolution
1874+
of the value bins.
1875+
example: 100
1876+
format: int64
1877+
type: integer
18571878
scale:
18581879
default: linear
18591880
description: Specifies the scale type. Possible values are `linear`.
@@ -3752,6 +3773,14 @@ components:
37523773
type: array
37533774
legend_size:
37543775
$ref: '#/components/schemas/WidgetLegendSize'
3776+
markers:
3777+
description: List of markers.
3778+
example:
3779+
- display_type: percentile
3780+
value: '90'
3781+
items:
3782+
$ref: '#/components/schemas/WidgetMarker'
3783+
type: array
37553784
requests:
37563785
description: List of widget types.
37573786
example:
@@ -3776,6 +3805,8 @@ components:
37763805
type: string
37773806
type:
37783807
$ref: '#/components/schemas/HeatMapWidgetDefinitionType'
3808+
xaxis:
3809+
$ref: '#/components/schemas/HeatMapWidgetXAxis'
37793810
yaxis:
37803811
$ref: '#/components/schemas/WidgetAxis'
37813812
required:
@@ -3819,6 +3850,10 @@ components:
38193850
items:
38203851
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
38213852
type: array
3853+
query:
3854+
$ref: '#/components/schemas/DistributionWidgetHistogramRequestQuery'
3855+
request_type:
3856+
$ref: '#/components/schemas/DistributionWidgetHistogramRequestType'
38223857
response_format:
38233858
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
38243859
rum_query:
@@ -3828,6 +3863,17 @@ components:
38283863
style:
38293864
$ref: '#/components/schemas/WidgetStyle'
38303865
type: object
3866+
HeatMapWidgetXAxis:
3867+
description: X Axis controls for the heat map widget.
3868+
properties:
3869+
num_buckets:
3870+
description: Number of time buckets to target, also known as the resolution
3871+
of the time bins. This is only applicable for distribution of points (group
3872+
distributions use the roll-up modifier).
3873+
example: 50
3874+
format: int64
3875+
type: integer
3876+
type: object
38313877
Host:
38323878
description: Object representing a host.
38333879
properties:
@@ -25245,7 +25291,7 @@ components:
2524525291
display_type:
2524625292
description: "Combination of:\n - A severity error, warning, ok, or info\n
2524725293
\ - A line type: dashed, solid, or bold\nIn this case of a Distribution
25248-
widget, this can be set to be `x_axis_percentile`."
25294+
widget, this can be set to be `percentile`."
2524925295
example: error dashed
2525025296
type: string
2525125297
label:
@@ -25256,8 +25302,11 @@ components:
2525625302
description: Timestamp for the widget.
2525725303
type: string
2525825304
value:
25259-
description: Value to apply. Can be a single value y = 15 or a range of
25305+
description: 'Value to apply. Can be a single value y = 15 or a range of
2526025306
values 0 < y < 10.
25307+
25308+
For Distribution widgets with `display_type` set to `percentile`, this
25309+
should be a numeric percentile value (for example, "90" for P90).'
2526125310
example: y = 15
2526225311
type: string
2526325312
required:

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67941,6 +67941,7 @@ paths:
6794167941
- us3.datadoghq.com
6794267942
- us5.datadoghq.com
6794367943
- ap1.datadoghq.com
67944+
- ap2.datadoghq.com
6794467945
- datadoghq.eu
6794567946
- ddog-gov.com
6794667947
subdomain:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-12-04T23:08:04.708Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-distribution-widget-with-markers-and-num-buckets.yml

Lines changed: 45 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-12-15T17:03:52.164Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-formula-and-function-distribution-widget.yml

Lines changed: 43 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-12-15T16:01:19.307Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-heatmap-widget-with-markers-and-num-buckets.yml

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Create a new dashboard with distribution widget with markers and num_buckets
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5+
6+
body = DatadogAPIClient::V1::Dashboard.new({
7+
title: "Example-Dashboard",
8+
widgets: [
9+
DatadogAPIClient::V1::Widget.new({
10+
definition: DatadogAPIClient::V1::DistributionWidgetDefinition.new({
11+
title: "",
12+
title_size: "16",
13+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
14+
type: DatadogAPIClient::V1::DistributionWidgetDefinitionType::DISTRIBUTION,
15+
xaxis: DatadogAPIClient::V1::DistributionWidgetXAxis.new({
16+
scale: "linear",
17+
min: "auto",
18+
max: "auto",
19+
include_zero: true,
20+
num_buckets: 55,
21+
}),
22+
yaxis: DatadogAPIClient::V1::DistributionWidgetYAxis.new({
23+
scale: "linear",
24+
min: "auto",
25+
max: "auto",
26+
include_zero: true,
27+
}),
28+
markers: [
29+
DatadogAPIClient::V1::WidgetMarker.new({
30+
display_type: "percentile",
31+
value: "50",
32+
}),
33+
DatadogAPIClient::V1::WidgetMarker.new({
34+
display_type: "percentile",
35+
value: "99",
36+
}),
37+
DatadogAPIClient::V1::WidgetMarker.new({
38+
display_type: "percentile",
39+
value: "90",
40+
}),
41+
],
42+
requests: [
43+
DatadogAPIClient::V1::DistributionWidgetRequest.new({
44+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::SCALAR,
45+
queries: [
46+
DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
47+
data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
48+
name: "query1",
49+
query: "avg:system.cpu.user{*} by {service}",
50+
aggregator: DatadogAPIClient::V1::FormulaAndFunctionMetricAggregation::AVG,
51+
}),
52+
],
53+
}),
54+
],
55+
}),
56+
layout: DatadogAPIClient::V1::WidgetLayout.new({
57+
x: 0,
58+
y: 0,
59+
width: 4,
60+
height: 4,
61+
}),
62+
}),
63+
],
64+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
65+
})
66+
p api_instance.create_dashboard(body)

0 commit comments

Comments
 (0)