Skip to content

Commit 0f1bbf6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 37147ba of spec repo
1 parent 25ce205 commit 0f1bbf6

19 files changed

Lines changed: 1473 additions & 0 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,38 @@ components:
18281828
x-enum-varnames:
18291829
- CUSTOM_TIMEBOARD
18301830
- CUSTOM_SCREENBOARD
1831+
DataProjectionQuery:
1832+
description: Query configuration for a data projection request.
1833+
properties:
1834+
data_source:
1835+
description: Data source for the query.
1836+
example: logs
1837+
type: string
1838+
indexes:
1839+
description: List of indexes to query.
1840+
items:
1841+
description: Index name.
1842+
type: string
1843+
type: array
1844+
query_string:
1845+
description: The query string to filter events.
1846+
example: "service:web-store"
1847+
type: string
1848+
storage:
1849+
description: Storage location for the query.
1850+
type: string
1851+
required:
1852+
- query_string
1853+
- data_source
1854+
type: object
1855+
DataProjectionRequestType:
1856+
description: Type of a data projection request.
1857+
enum:
1858+
- data_projection
1859+
example: data_projection
1860+
type: string
1861+
x-enum-varnames:
1862+
- DATA_PROJECTION
18311863
DeleteSharedDashboardResponse:
18321864
description: Response containing token of deleted shared dashboard.
18331865
properties:
@@ -11343,6 +11375,150 @@ components:
1134311375
maxItems: 2
1134411376
minItems: 2
1134511377
type: array
11378+
PointPlotDimension:
11379+
description: Dimension of the point plot.
11380+
enum:
11381+
- group
11382+
- time
11383+
- y
11384+
- radius
11385+
example: y
11386+
type: string
11387+
x-enum-varnames:
11388+
- GROUP
11389+
- TIME
11390+
- Y
11391+
- RADIUS
11392+
PointPlotProjection:
11393+
description: Projection configuration for the point plot widget.
11394+
properties:
11395+
dimensions:
11396+
description: List of dimension mappings for the projection.
11397+
items:
11398+
$ref: "#/components/schemas/PointPlotProjectionDimension"
11399+
type: array
11400+
extra_columns:
11401+
description: Additional columns to include in the projection.
11402+
items:
11403+
description: Column name.
11404+
type: string
11405+
type: array
11406+
type:
11407+
$ref: "#/components/schemas/PointPlotProjectionType"
11408+
required:
11409+
- type
11410+
- dimensions
11411+
type: object
11412+
PointPlotProjectionDimension:
11413+
description: Dimension mapping for the point plot projection.
11414+
properties:
11415+
alias:
11416+
description: Alias for the column.
11417+
type: string
11418+
column:
11419+
description: Source column name from the dataset.
11420+
example: duration
11421+
type: string
11422+
dimension:
11423+
$ref: "#/components/schemas/PointPlotDimension"
11424+
required:
11425+
- column
11426+
- dimension
11427+
type: object
11428+
PointPlotProjectionType:
11429+
description: Type of the projection.
11430+
enum:
11431+
- point_plot
11432+
example: point_plot
11433+
type: string
11434+
x-enum-varnames:
11435+
- POINT_PLOT
11436+
PointPlotWidgetDefinition:
11437+
description: The point plot displays individual data points over time.
11438+
properties:
11439+
custom_links:
11440+
description: List of custom links.
11441+
items:
11442+
$ref: "#/components/schemas/WidgetCustomLink"
11443+
type: array
11444+
description:
11445+
description: The description of the widget.
11446+
type: string
11447+
legend:
11448+
$ref: "#/components/schemas/PointPlotWidgetLegend"
11449+
markers:
11450+
description: List of markers for the widget.
11451+
items:
11452+
$ref: "#/components/schemas/WidgetMarker"
11453+
type: array
11454+
requests:
11455+
description: List of request configurations for the widget.
11456+
items:
11457+
$ref: "#/components/schemas/PointPlotWidgetRequest"
11458+
type: array
11459+
time:
11460+
$ref: "#/components/schemas/WidgetTime"
11461+
title:
11462+
description: Title of the widget.
11463+
type: string
11464+
title_align:
11465+
$ref: "#/components/schemas/WidgetTextAlign"
11466+
title_size:
11467+
description: Size of the title.
11468+
type: string
11469+
type:
11470+
$ref: "#/components/schemas/PointPlotWidgetDefinitionType"
11471+
yaxis:
11472+
$ref: "#/components/schemas/WidgetAxis"
11473+
required:
11474+
- type
11475+
- requests
11476+
type: object
11477+
PointPlotWidgetDefinitionType:
11478+
default: point_plot
11479+
description: Type of the point plot widget.
11480+
enum:
11481+
- point_plot
11482+
example: point_plot
11483+
type: string
11484+
x-enum-varnames:
11485+
- POINT_PLOT
11486+
PointPlotWidgetLegend:
11487+
description: Legend configuration for the point plot widget.
11488+
properties:
11489+
type:
11490+
$ref: "#/components/schemas/PointPlotWidgetLegendType"
11491+
required:
11492+
- type
11493+
type: object
11494+
PointPlotWidgetLegendType:
11495+
description: Type of legend to show for the point plot widget.
11496+
enum:
11497+
- automatic
11498+
- none
11499+
example: automatic
11500+
type: string
11501+
x-enum-varnames:
11502+
- AUTOMATIC
11503+
- NONE
11504+
PointPlotWidgetRequest:
11505+
description: Request configuration for the point plot widget.
11506+
properties:
11507+
limit:
11508+
description: Maximum number of data points to return.
11509+
format: int64
11510+
type: integer
11511+
projection:
11512+
$ref: "#/components/schemas/PointPlotProjection"
11513+
query:
11514+
$ref: "#/components/schemas/DataProjectionQuery"
11515+
request_type:
11516+
$ref: "#/components/schemas/DataProjectionRequestType"
11517+
required:
11518+
- request_type
11519+
- query
11520+
- projection
11521+
type: object
1134611522
PowerpackTemplateVariableContents:
1134711523
description: Powerpack template variable contents.
1134811524
properties:
@@ -25663,6 +25839,7 @@ components:
2566325839
- $ref: "#/components/schemas/MonitorSummaryWidgetDefinition"
2566425840
- $ref: "#/components/schemas/NoteWidgetDefinition"
2566525841
- $ref: "#/components/schemas/PowerpackWidgetDefinition"
25842+
- $ref: "#/components/schemas/PointPlotWidgetDefinition"
2566625843
- $ref: "#/components/schemas/QueryValueWidgetDefinition"
2566725844
- $ref: "#/components/schemas/RetentionCurveWidgetDefinition"
2566825845
- $ref: "#/components/schemas/RunWorkflowWidgetDefinition"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-04-30T15:58:43.378Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-point-plot-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: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Create a new dashboard with point_plot widget
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+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
9+
widgets: [
10+
DatadogAPIClient::V1::Widget.new({
11+
definition: DatadogAPIClient::V1::PointPlotWidgetDefinition.new({
12+
title: "",
13+
title_size: "16",
14+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
15+
type: DatadogAPIClient::V1::PointPlotWidgetDefinitionType::POINT_PLOT,
16+
requests: [
17+
DatadogAPIClient::V1::PointPlotWidgetRequest.new({
18+
request_type: DatadogAPIClient::V1::DataProjectionRequestType::DATA_PROJECTION,
19+
query: DatadogAPIClient::V1::DataProjectionQuery.new({
20+
query_string: "service:web-store",
21+
data_source: "logs",
22+
}),
23+
projection: DatadogAPIClient::V1::PointPlotProjection.new({
24+
type: DatadogAPIClient::V1::PointPlotProjectionType::POINT_PLOT,
25+
dimensions: [
26+
DatadogAPIClient::V1::PointPlotProjectionDimension.new({
27+
column: "host",
28+
dimension: DatadogAPIClient::V1::PointPlotDimension::GROUP,
29+
}),
30+
DatadogAPIClient::V1::PointPlotProjectionDimension.new({
31+
column: "@duration",
32+
dimension: DatadogAPIClient::V1::PointPlotDimension::Y,
33+
}),
34+
],
35+
}),
36+
}),
37+
],
38+
}),
39+
}),
40+
],
41+
})
42+
p api_instance.create_dashboard(body)

features/v1/dashboards.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,18 @@ Feature: Dashboards
739739
And the response "widgets[0].definition.type" is equal to "note"
740740
And the response "widgets[0].definition.content" is equal to "# Example Note"
741741

742+
@team:DataDog/dashboards-backend
743+
Scenario: Create a new dashboard with point_plot widget
744+
Given new "CreateDashboard" request
745+
And body from file "dashboards_json_payload/point_plot_widget.json"
746+
When the request is sent
747+
Then the response status is 200 OK
748+
And the response "widgets[0].definition.type" is equal to "point_plot"
749+
And the response "widgets[0].definition.requests[0].request_type" is equal to "data_projection"
750+
And the response "widgets[0].definition.requests[0].projection.type" is equal to "point_plot"
751+
And the response "widgets[0].definition.requests[0].projection.dimensions[0].dimension" is equal to "group"
752+
And the response "widgets[0].definition.requests[0].projection.dimensions[1].dimension" is equal to "y"
753+
742754
@team:DataDog/dashboards-backend
743755
Scenario: Create a new dashboard with powerpack widget
744756
Given new "CreateDashboard" request
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"title": "{{ unique }}",
3+
"layout_type": "ordered",
4+
"widgets": [
5+
{
6+
"definition": {
7+
"title": "",
8+
"title_size": "16",
9+
"title_align": "left",
10+
"type": "point_plot",
11+
"requests": [
12+
{
13+
"request_type": "data_projection",
14+
"query": {
15+
"query_string": "service:web-store",
16+
"data_source": "logs"
17+
},
18+
"projection": {
19+
"type": "point_plot",
20+
"dimensions": [
21+
{
22+
"column": "host",
23+
"dimension": "group"
24+
},
25+
{
26+
"column": "@duration",
27+
"dimension": "y"
28+
}
29+
]
30+
}
31+
}
32+
]
33+
}
34+
}
35+
]
36+
}

lib/datadog_api_client/inflector.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def overrides
103103
"v1.dashboard_template_variable_preset" => "DashboardTemplateVariablePreset",
104104
"v1.dashboard_template_variable_preset_value" => "DashboardTemplateVariablePresetValue",
105105
"v1.dashboard_type" => "DashboardType",
106+
"v1.data_projection_query" => "DataProjectionQuery",
107+
"v1.data_projection_request_type" => "DataProjectionRequestType",
106108
"v1.deleted_monitor" => "DeletedMonitor",
107109
"v1.delete_shared_dashboard_response" => "DeleteSharedDashboardResponse",
108110
"v1.distribution_point_item" => "DistributionPointItem",
@@ -493,6 +495,15 @@ def overrides
493495
"v1.pager_duty_service_key" => "PagerDutyServiceKey",
494496
"v1.pager_duty_service_name" => "PagerDutyServiceName",
495497
"v1.pagination" => "Pagination",
498+
"v1.point_plot_dimension" => "PointPlotDimension",
499+
"v1.point_plot_projection" => "PointPlotProjection",
500+
"v1.point_plot_projection_dimension" => "PointPlotProjectionDimension",
501+
"v1.point_plot_projection_type" => "PointPlotProjectionType",
502+
"v1.point_plot_widget_definition" => "PointPlotWidgetDefinition",
503+
"v1.point_plot_widget_definition_type" => "PointPlotWidgetDefinitionType",
504+
"v1.point_plot_widget_legend" => "PointPlotWidgetLegend",
505+
"v1.point_plot_widget_legend_type" => "PointPlotWidgetLegendType",
506+
"v1.point_plot_widget_request" => "PointPlotWidgetRequest",
496507
"v1.powerpack_template_variable_contents" => "PowerpackTemplateVariableContents",
497508
"v1.powerpack_template_variables" => "PowerpackTemplateVariables",
498509
"v1.powerpack_widget_definition" => "PowerpackWidgetDefinition",

0 commit comments

Comments
 (0)