Skip to content

Commit 324d71d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b121712 of spec repo
1 parent 2d87463 commit 324d71d

22 files changed

+629
-9
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 49 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,11 @@ 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+
format: int64
1876+
type: integer
18571877
scale:
18581878
default: linear
18591879
description: Specifies the scale type. Possible values are `linear`.
@@ -3752,6 +3772,14 @@ components:
37523772
type: array
37533773
legend_size:
37543774
$ref: '#/components/schemas/WidgetLegendSize'
3775+
markers:
3776+
description: List of markers.
3777+
example:
3778+
- display_type: percentile
3779+
value: '90'
3780+
items:
3781+
$ref: '#/components/schemas/WidgetMarker'
3782+
type: array
37553783
requests:
37563784
description: List of widget types.
37573785
example:
@@ -3776,6 +3804,8 @@ components:
37763804
type: string
37773805
type:
37783806
$ref: '#/components/schemas/HeatMapWidgetDefinitionType'
3807+
xaxis:
3808+
$ref: '#/components/schemas/HeatMapWidgetXAxis'
37793809
yaxis:
37803810
$ref: '#/components/schemas/WidgetAxis'
37813811
required:
@@ -3819,6 +3849,10 @@ components:
38193849
items:
38203850
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
38213851
type: array
3852+
query:
3853+
$ref: '#/components/schemas/DistributionWidgetHistogramRequestQuery'
3854+
request_type:
3855+
$ref: '#/components/schemas/DistributionWidgetHistogramRequestType'
38223856
response_format:
38233857
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
38243858
rum_query:
@@ -3828,6 +3862,16 @@ components:
38283862
style:
38293863
$ref: '#/components/schemas/WidgetStyle'
38303864
type: object
3865+
HeatMapWidgetXAxis:
3866+
description: X Axis controls for the heat map widget.
3867+
properties:
3868+
num_buckets:
3869+
description: Number of time buckets to target, also known as the resolution
3870+
of the time bins. This is only applicable for distribution of points (group
3871+
distributions use the roll-up modifier).
3872+
format: int64
3873+
type: integer
3874+
type: object
38313875
Host:
38323876
description: Object representing a host.
38333877
properties:
@@ -25245,7 +25289,7 @@ components:
2524525289
display_type:
2524625290
description: "Combination of:\n - A severity error, warning, ok, or info\n
2524725291
\ - A line type: dashed, solid, or bold\nIn this case of a Distribution
25248-
widget, this can be set to be `x_axis_percentile`."
25292+
widget, this can be set to be `percentile`."
2524925293
example: error dashed
2525025294
type: string
2525125295
label:
@@ -25256,8 +25300,11 @@ components:
2525625300
description: Timestamp for the widget.
2525725301
type: string
2525825302
value:
25259-
description: Value to apply. Can be a single value y = 15 or a range of
25303+
description: 'Value to apply. Can be a single value y = 15 or a range of
2526025304
values 0 < y < 10.
25305+
25306+
For Distribution widgets with `display_type` set to `percentile`, this
25307+
should be a numeric percentile value (for example, "90" for P90).'
2526125308
example: y = 15
2526225309
type: string
2526325310
required:

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69009,6 +69009,9 @@ paths:
6900969009
operator: OR
6901069010
permissions:
6901169011
- incident_read
69012+
x-unstable: '**Note**: This endpoint is in Preview.
69013+
69014+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6901269015
post:
6901369016
description: Create an impact for an incident.
6901469017
operationId: CreateIncidentImpact
@@ -69052,6 +69055,9 @@ paths:
6905269055
operator: OR
6905369056
permissions:
6905469057
- incident_write
69058+
x-unstable: '**Note**: This endpoint is in Preview.
69059+
69060+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6905569061
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6905669062
delete:
6905769063
description: Delete an incident impact.
@@ -69082,6 +69088,9 @@ paths:
6908269088
operator: OR
6908369089
permissions:
6908469090
- incident_write
69091+
x-unstable: '**Note**: This endpoint is in Preview.
69092+
69093+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6908569094
/api/v2/incidents/{incident_id}/relationships/integrations:
6908669095
get:
6908769096
description: Get all integration metadata for an incident.
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-15T17:39:03.378Z

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)