Skip to content

Commit e26b033

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit d8e7ee77 of spec repo (#2502)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent dfab6e3 commit e26b033

14 files changed

+448
-11
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-30 10:29:37.328306",
8-
"spec_repo_commit": "be63084a"
7+
"regenerated": "2025-06-30 17:05:06.962580",
8+
"spec_repo_commit": "d8e7ee77"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-30 10:29:37.344271",
13-
"spec_repo_commit": "be63084a"
12+
"regenerated": "2025-06-30 17:05:06.978141",
13+
"spec_repo_commit": "d8e7ee77"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,13 @@ components:
15501550
example: host
15511551
nullable: true
15521552
type: string
1553+
type:
1554+
description: The type of variable. This is to differentiate between filter
1555+
variables (interpolated in query) and group by variables (interpolated
1556+
into group by).
1557+
example: group
1558+
nullable: true
1559+
type: string
15531560
required:
15541561
- name
15551562
type: object
@@ -12578,6 +12585,12 @@ components:
1257812585
prefix:
1257912586
description: The tag/attribute key associated with the template variable.
1258012587
type: string
12588+
type:
12589+
description: The type of variable. This is to differentiate between filter
12590+
variables (interpolated in query) and group by variables (interpolated
12591+
into group by).
12592+
nullable: true
12593+
type: string
1258112594
visible_tags:
1258212595
description: List of visible tag values on the shared dashboard.
1258312596
items:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-06-30T15:47:16.966Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-template-variable-type-field-returns-OK-response.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.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-06-30T15:47:18.224Z

cassettes/features/v1/dashboards/Create-a-shared-dashboard-with-a-group-template-variable-returns-OK-response.yml

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-06-30T15:47:20.325Z

cassettes/features/v1/dashboards/Update-a-shared-dashboard-with-selectable-template-vars-returns-OK-response.yml

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Create a new dashboard with template variable type field returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5+
6+
body = DatadogAPIClient::V1::Dashboard.new({
7+
description: nil,
8+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
9+
notify_list: [],
10+
reflow_type: DatadogAPIClient::V1::DashboardReflowType::AUTO,
11+
restricted_roles: [],
12+
template_variables: [
13+
DatadogAPIClient::V1::DashboardTemplateVariable.new({
14+
available_values: [
15+
"service",
16+
"datacenter",
17+
"env",
18+
],
19+
defaults: [
20+
"service",
21+
"datacenter",
22+
],
23+
name: "group_by_var",
24+
type: "group",
25+
}),
26+
],
27+
title: "",
28+
widgets: [
29+
DatadogAPIClient::V1::Widget.new({
30+
definition: DatadogAPIClient::V1::HostMapWidgetDefinition.new({
31+
requests: DatadogAPIClient::V1::HostMapWidgetDefinitionRequests.new({
32+
fill: DatadogAPIClient::V1::HostMapRequest.new({
33+
q: "avg:system.cpu.user{*}",
34+
}),
35+
}),
36+
type: DatadogAPIClient::V1::HostMapWidgetDefinitionType::HOSTMAP,
37+
}),
38+
}),
39+
],
40+
})
41+
p api_instance.create_dashboard(body)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Create a shared dashboard with a group template variable returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5+
6+
# there is a valid "dashboard" in the system
7+
DASHBOARD_ID = ENV["DASHBOARD_ID"]
8+
9+
body = DatadogAPIClient::V1::SharedDashboard.new({
10+
dashboard_id: DASHBOARD_ID,
11+
dashboard_type: DatadogAPIClient::V1::DashboardType::CUSTOM_TIMEBOARD,
12+
share_type: DatadogAPIClient::V1::DashboardShareType::OPEN,
13+
global_time: DatadogAPIClient::V1::DashboardGlobalTime.new({
14+
live_span: DatadogAPIClient::V1::DashboardGlobalTimeLiveSpan::PAST_ONE_HOUR,
15+
}),
16+
selectable_template_vars: [
17+
DatadogAPIClient::V1::SelectableTemplateVariableItems.new({
18+
default_value: "*",
19+
name: "group_by_var",
20+
type: "group",
21+
visible_tags: [
22+
"selectableValue1",
23+
"selectableValue2",
24+
],
25+
}),
26+
],
27+
})
28+
p api_instance.create_public_dashboard(body)

0 commit comments

Comments
 (0)