Skip to content

Commit 0fe46f1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a8278b6 of spec repo
1 parent 0a5362f commit 0fe46f1

15 files changed

Lines changed: 841 additions & 17 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13325,6 +13325,88 @@ components:
1332513325
type: string
1332613326
x-enum-varnames:
1332713327
- SCATTERPLOT
13328+
ScatterplotDataProjectionDimension:
13329+
description: A single dimension mapping for a scatterplot data projection.
13330+
properties:
13331+
alias:
13332+
description: Display alias for the dimension.
13333+
type: string
13334+
column:
13335+
description: The column name from the data source.
13336+
example: duration
13337+
type: string
13338+
dimension:
13339+
$ref: "#/components/schemas/ScatterplotDimension"
13340+
number_format:
13341+
$ref: "#/components/schemas/WidgetNumberFormat"
13342+
required:
13343+
- column
13344+
- dimension
13345+
type: object
13346+
ScatterplotDataProjectionProjection:
13347+
description: The projection configuration for a scatterplot data projection request.
13348+
properties:
13349+
dimensions:
13350+
description: Dimension mappings for the scatterplot axes.
13351+
items:
13352+
$ref: "#/components/schemas/ScatterplotDataProjectionDimension"
13353+
type: array
13354+
type:
13355+
$ref: "#/components/schemas/ScatterplotDataProjectionProjectionType"
13356+
required:
13357+
- type
13358+
- dimensions
13359+
type: object
13360+
ScatterplotDataProjectionProjectionType:
13361+
description: The type of the scatterplot data projection.
13362+
enum:
13363+
- scatterplot
13364+
example: scatterplot
13365+
type: string
13366+
x-enum-varnames:
13367+
- SCATTERPLOT
13368+
ScatterplotDataProjectionQuery:
13369+
description: The query for a scatterplot data projection request.
13370+
properties:
13371+
data_source:
13372+
$ref: "#/components/schemas/FormulaAndFunctionEventsDataSource"
13373+
indexes:
13374+
description: Indexes to search.
13375+
items:
13376+
type: string
13377+
type: array
13378+
query_string:
13379+
description: The search query string.
13380+
example: "@service:web-store"
13381+
type: string
13382+
storage:
13383+
$ref: "#/components/schemas/ScatterplotDataProjectionQueryStorage"
13384+
required:
13385+
- query_string
13386+
- data_source
13387+
type: object
13388+
ScatterplotDataProjectionQueryStorage:
13389+
description: Storage tier to query.
13390+
enum:
13391+
- live
13392+
- hot
13393+
- habanero
13394+
- online_archives
13395+
- driveline
13396+
- flex_tier
13397+
- case_insensitive
13398+
- cloud_prem
13399+
example: hot
13400+
type: string
13401+
x-enum-varnames:
13402+
- LIVE
13403+
- HOT
13404+
- HABANERO
13405+
- ONLINE_ARCHIVES
13406+
- DRIVELINE
13407+
- FLEX_TIER
13408+
- CASE_INSENSITIVE
13409+
- CLOUD_PREM
1332813410
ScatterplotDimension:
1332913411
description: Dimension of the Scatterplot.
1333013412
enum:
@@ -13340,21 +13422,47 @@ components:
1334013422
- RADIUS
1334113423
- COLOR
1334213424
ScatterplotTableRequest:
13343-
description: Scatterplot request containing formulas and functions.
13425+
description: |-
13426+
Scatterplot table request. Supports two modes:
13427+
- **Formulas and functions** (default): `request_type` is absent or `"table"`. Uses `queries` and `formulas`.
13428+
- **Data projection**: `request_type` is `"data_projection"`. Uses `query`, `projection`, and optionally `limit`.
1334413429
properties:
1334513430
formulas:
1334613431
description: List of Scatterplot formulas that operate on queries.
1334713432
items:
1334813433
$ref: "#/components/schemas/ScatterplotWidgetFormula"
1334913434
type: array
13435+
limit:
13436+
description: Maximum number of rows to return. Used when `request_type` is `"data_projection"`.
13437+
format: int64
13438+
type: integer
13439+
projection:
13440+
$ref: "#/components/schemas/ScatterplotDataProjectionProjection"
13441+
description: Projection configuration for data projection mode. Used when `request_type` is `"data_projection"`.
1335013442
queries:
1335113443
description: List of queries that can be returned directly or used in formulas.
1335213444
items:
1335313445
$ref: "#/components/schemas/FormulaAndFunctionQueryDefinition"
1335413446
type: array
13447+
query:
13448+
$ref: "#/components/schemas/ScatterplotDataProjectionQuery"
13449+
description: Query for data projection mode. Used when `request_type` is `"data_projection"`.
13450+
request_type:
13451+
$ref: "#/components/schemas/ScatterplotTableRequestType"
13452+
description: The type of the scatterplot table request. Use `"data_projection"` for unaggregated raw data.
1335513453
response_format:
1335613454
$ref: "#/components/schemas/FormulaAndFunctionResponseFormat"
1335713455
type: object
13456+
ScatterplotTableRequestType:
13457+
description: The type of the scatterplot table request.
13458+
enum:
13459+
- table
13460+
- data_projection
13461+
example: data_projection
13462+
type: string
13463+
x-enum-varnames:
13464+
- TABLE
13465+
- DATA_PROJECTION
1335813466
ScatterplotWidgetAggregator:
1335913467
description: Aggregator used for the request.
1336013468
enum:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T19:32:52.260Z
1+
2026-04-14T13:48:27.274Z

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

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

examples/v1/dashboards/CreateDashboard_2342457693.rb

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,55 @@
6666
color_by_groups: [],
6767
}),
6868
}),
69+
DatadogAPIClient::V1::Widget.new({
70+
layout: DatadogAPIClient::V1::WidgetLayout.new({
71+
x: 48,
72+
y: 0,
73+
width: 47,
74+
height: 15,
75+
}),
76+
definition: DatadogAPIClient::V1::ScatterPlotWidgetDefinition.new({
77+
title: "Data Projection Scatterplot",
78+
title_size: "16",
79+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
80+
type: DatadogAPIClient::V1::ScatterPlotWidgetDefinitionType::SCATTERPLOT,
81+
requests: DatadogAPIClient::V1::ScatterPlotWidgetDefinitionRequests.new({
82+
table: DatadogAPIClient::V1::ScatterplotTableRequest.new({
83+
request_type: DatadogAPIClient::V1::ScatterplotTableRequestType::DATA_PROJECTION,
84+
query: DatadogAPIClient::V1::ScatterplotDataProjectionQuery.new({
85+
query_string: "@service:web-store",
86+
data_source: DatadogAPIClient::V1::FormulaAndFunctionEventsDataSource::SPANS,
87+
}),
88+
projection: DatadogAPIClient::V1::ScatterplotDataProjectionProjection.new({
89+
type: DatadogAPIClient::V1::ScatterplotDataProjectionProjectionType::SCATTERPLOT,
90+
dimensions: [
91+
DatadogAPIClient::V1::ScatterplotDataProjectionDimension.new({
92+
column: "duration",
93+
dimension: DatadogAPIClient::V1::ScatterplotDimension::X,
94+
}),
95+
DatadogAPIClient::V1::ScatterplotDataProjectionDimension.new({
96+
column: "@resource_name",
97+
dimension: DatadogAPIClient::V1::ScatterplotDimension::Y,
98+
}),
99+
],
100+
}),
101+
limit: 200,
102+
}),
103+
}),
104+
xaxis: DatadogAPIClient::V1::WidgetAxis.new({
105+
scale: "linear",
106+
include_zero: true,
107+
min: "auto",
108+
max: "auto",
109+
}),
110+
yaxis: DatadogAPIClient::V1::WidgetAxis.new({
111+
scale: "linear",
112+
include_zero: true,
113+
min: "auto",
114+
max: "auto",
115+
}),
116+
}),
117+
}),
69118
],
70119
template_variables: [],
71120
layout_type: DatadogAPIClient::V1::DashboardLayoutType::FREE,

features/v1/dashboards.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,13 @@ Feature: Dashboards
859859
When the request is sent
860860
Then the response status is 200 OK
861861
And the response "widgets[0].definition.type" is equal to "scatterplot"
862+
And the response "widgets[1].definition.type" is equal to "scatterplot"
863+
And the response "widgets[1].definition.requests.table.request_type" is equal to "data_projection"
864+
And the response "widgets[1].definition.requests.table.query.data_source" is equal to "spans"
865+
And the response "widgets[1].definition.requests.table.query.query_string" is equal to "@service:web-store"
866+
And the response "widgets[1].definition.requests.table.projection.type" is equal to "scatterplot"
867+
And the response "widgets[1].definition.requests.table.projection.dimensions" has length 2
868+
And the response "widgets[1].definition.requests.table.limit" is equal to 200
862869

863870
@team:DataDog/dashboards-backend
864871
Scenario: Create a new dashboard with servicemap widget

features/v1/dashboards_json_payload/scatterplot_widget.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,55 @@
6464

6565
]
6666
}
67+
},
68+
{
69+
"layout":{
70+
"x":48,
71+
"y":0,
72+
"width":47,
73+
"height":15
74+
},
75+
"definition":{
76+
"title":"Data Projection Scatterplot",
77+
"title_size":"16",
78+
"title_align":"left",
79+
"type":"scatterplot",
80+
"requests":{
81+
"table":{
82+
"request_type":"data_projection",
83+
"query":{
84+
"query_string":"@service:web-store",
85+
"data_source":"spans"
86+
},
87+
"projection":{
88+
"type":"scatterplot",
89+
"dimensions":[
90+
{
91+
"column":"duration",
92+
"dimension":"x"
93+
},
94+
{
95+
"column":"@resource_name",
96+
"dimension":"y"
97+
}
98+
]
99+
},
100+
"limit":200
101+
}
102+
},
103+
"xaxis":{
104+
"scale":"linear",
105+
"include_zero":true,
106+
"min":"auto",
107+
"max":"auto"
108+
},
109+
"yaxis":{
110+
"scale":"linear",
111+
"include_zero":true,
112+
"min":"auto",
113+
"max":"auto"
114+
}
115+
}
67116
}
68117
],
69118
"template_variables":[

lib/datadog_api_client/inflector.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,15 @@ def overrides
515515
"v1.sankey_widget_definition" => "SankeyWidgetDefinition",
516516
"v1.sankey_widget_definition_type" => "SankeyWidgetDefinitionType",
517517
"v1.sankey_widget_request" => "SankeyWidgetRequest",
518+
"v1.scatterplot_data_projection_dimension" => "ScatterplotDataProjectionDimension",
519+
"v1.scatterplot_data_projection_projection" => "ScatterplotDataProjectionProjection",
520+
"v1.scatterplot_data_projection_projection_type" => "ScatterplotDataProjectionProjectionType",
521+
"v1.scatterplot_data_projection_query" => "ScatterplotDataProjectionQuery",
522+
"v1.scatterplot_data_projection_query_storage" => "ScatterplotDataProjectionQueryStorage",
518523
"v1.scatterplot_dimension" => "ScatterplotDimension",
519524
"v1.scatter_plot_request" => "ScatterPlotRequest",
520525
"v1.scatterplot_table_request" => "ScatterplotTableRequest",
526+
"v1.scatterplot_table_request_type" => "ScatterplotTableRequestType",
521527
"v1.scatterplot_widget_aggregator" => "ScatterplotWidgetAggregator",
522528
"v1.scatter_plot_widget_definition" => "ScatterPlotWidgetDefinition",
523529
"v1.scatter_plot_widget_definition_requests" => "ScatterPlotWidgetDefinitionRequests",

lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module DatadogAPIClient::V1
2121
class ScatterPlotWidgetDefinitionRequests
2222
include BaseGenericModel
2323

24-
# Scatterplot request containing formulas and functions.
24+
# Scatterplot table request. Supports two modes:
25+
# - **Formulas and functions** (default): `request_type` is absent or `"table"`. Uses `queries` and `formulas`.
26+
# - **Data projection**: `request_type` is `"data_projection"`. Uses `query`, `projection`, and optionally `limit`.
2527
attr_accessor :table
2628

2729
# Updated scatter plot.

0 commit comments

Comments
 (0)