Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1495,11 +1495,12 @@ components:
nullable: true
type: array
tags:
description: List of team names representing ownership of a dashboard.
description: Tags associated with the dashboard. Supports up to five team tags and two AI tags.
items:
description: The name of a Datadog team of the form `team:<name>`
description: A tag of the form `team:<name>` or `ai:<value>`.
pattern: "^(team|ai):.+$"
type: string
maxItems: 5
maxItems: 7
nullable: true
type: array
template_variable_presets:
Expand Down Expand Up @@ -1981,7 +1982,7 @@ components:
dataset_provider:
$ref: '#/components/schemas/PublishedDatasetProvider'
filter:
description: Filter applied to the dataset's rows, using events-style search syntax.
description: Filter applied to the rows of the dataset, using events-style search syntax.
example: "service:web-store"
type: string
limit:
Expand Down
7 changes: 4 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31334,11 +31334,12 @@ components:
readOnly: true
type: integer
tags:
description: List of team names representing ownership of a dashboard.
description: Tags associated with the dashboard. Supports up to five team tags and two AI tags.
items:
description: The name of a Datadog team, formatted as `team:<name>`
description: A tag of the form `team:<name>` or `ai:<value>`.
pattern: "^(team|ai):.+$"
type: string
maxItems: 5
maxItems: 7
nullable: true
readOnly: true
type: array
Expand Down
19 changes: 19 additions & 0 deletions examples/v1/dashboards/GetDashboard_3568243180.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Get a dashboard with five team tags and two AI tags
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.dashboards_api import DashboardsApi

# there is a valid "dashboard_with_team_and_ai_tags" in the system
DASHBOARD_WITH_TEAM_AND_AI_TAGS_ID = environ["DASHBOARD_WITH_TEAM_AND_AI_TAGS_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = DashboardsApi(api_client)
response = api_instance.get_dashboard(
dashboard_id=DASHBOARD_WITH_TEAM_AND_AI_TAGS_ID,
)

print(response)
19 changes: 19 additions & 0 deletions examples/v2/dashboard-lists/GetDashboardListItems_2618168713.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Get dashboard list items with five team tags and two AI tags
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.dashboard_lists_api import DashboardListsApi

# there is a valid "dashboard_list" in the system
DASHBOARD_LIST_ID = environ["DASHBOARD_LIST_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = DashboardListsApi(api_client)
response = api_instance.get_dashboard_list_items(
dashboard_list_id=int(DASHBOARD_LIST_ID),
)

print(response)
4 changes: 2 additions & 2 deletions src/datadog_api_client/v1/model/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Dashboard(ModelNormal):
"max_items": 100,
},
"tags": {
"max_items": 5,
"max_items": 7,
},
}

Expand Down Expand Up @@ -171,7 +171,7 @@ def __init__(
:param tabs: List of tabs for organizing dashboard widgets into groups.
:type tabs: [DashboardTab], none_type, optional

:param tags: List of team names representing ownership of a dashboard.
:param tags: Tags associated with the dashboard. Supports up to five team tags and two AI tags.
:type tags: [str], none_type, optional

:param template_variable_presets: Array of template variables saved views.
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v1/model/dataset_list_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
:param dataset_provider: Product page that published the dataset queried by a ``DatasetListQuery``. ``ddsql_query`` is the only provider currently supported for host map widgets.
:type dataset_provider: PublishedDatasetProvider

:param filter: Filter applied to the dataset's rows, using events-style search syntax.
:param filter: Filter applied to the rows of the dataset, using events-style search syntax.
:type filter: str, optional

:param limit: Maximum number of rows to return from the dataset query.
Expand Down
4 changes: 2 additions & 2 deletions src/datadog_api_client/v2/model/dashboard_list_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DashboardListItem(ModelNormal):
"inclusive_maximum": 5,
},
"tags": {
"max_items": 5,
"max_items": 7,
},
}

Expand Down Expand Up @@ -133,7 +133,7 @@ def __init__(
:param popularity: Popularity of the dashboard.
:type popularity: int, optional

:param tags: List of team names representing ownership of a dashboard.
:param tags: Tags associated with the dashboard. Supports up to five team tags and two AI tags.
:type tags: [str], none_type, optional

:param title: Title of the dashboard.
Expand Down
14 changes: 14 additions & 0 deletions tests/generated-test/test-runner-data/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,13 @@
"scenario": "Get a dashboard returns 'author_name'",
"version": "v1"
},
{
"feature": "Dashboards",
"feature_file": "../../v1/features/dashboards.feature",
"file": "v1/dashboards/get-a-dashboard-with-five-team-tags-and-two-ai-tags.json",
"scenario": "Get a dashboard with five team tags and two AI tags",
"version": "v1"
},
{
"feature": "Dashboards",
"feature_file": "../../v1/features/dashboards.feature",
Expand Down Expand Up @@ -4676,6 +4683,13 @@
"scenario": "Delete custom timeboard dashboard from an existing dashboard list returns \"OK\" response",
"version": "v2"
},
{
"feature": "Dashboard Lists",
"feature_file": "../../v2/features/dashboard_lists.feature",
"file": "v2/dashboard-lists/get-dashboard-list-items-with-five-team-tags-and-two-ai-tags.json",
"scenario": "Get dashboard list items with five team tags and two AI tags",
"version": "v2"
},
{
"feature": "Dashboard Lists",
"feature_file": "../../v2/features/dashboard_lists.feature",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"api": "Dashboards",
"expected_status": 200,
"feature": "Dashboards",
"id": "v1/Dashboards/Get a dashboard with five team tags and two AI tags",
"operation_id": "GetDashboard",
"request": {
"body": null,
"content_type": null,
"method": "GET",
"pagination": false,
"parameters": [
{
"explode": null,
"in": "path",
"name": "dashboard_id",
"required": true,
"schema": {
"format": null,
"ref": null,
"type": "string"
},
"source": {
"path": "dashboard_with_team_and_ai_tags.id",
"type": "fixture"
},
"style": null
}
],
"path": "/api/v1/dashboard/{dashboard_id}"
},
"scenario": "Get a dashboard with five team tags and two AI tags",
"schema_version": 1,
"version": "v1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"api": "DashboardLists",
"expected_status": 200,
"feature": "Dashboard Lists",
"id": "v2/Dashboard Lists/Get dashboard list items with five team tags and two AI tags",
"operation_id": "GetDashboardListItems",
"request": {
"body": null,
"content_type": null,
"method": "GET",
"pagination": false,
"parameters": [
{
"explode": null,
"in": "path",
"name": "dashboard_list_id",
"required": true,
"schema": {
"format": "int64",
"ref": null,
"type": "integer"
},
"source": {
"path": "dashboard_list.id",
"type": "fixture"
},
"style": null
}
],
"path": "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards"
},
"scenario": "Get dashboard list items with five team tags and two AI tags",
"schema_version": 1,
"version": "v2"
}
90 changes: 90 additions & 0 deletions tests/generated-test/test-server-data/v1/dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -11756,6 +11756,96 @@
"scenario": "Get a dashboard returns 'author_name'",
"version": "v1"
},
{
"feature": "Dashboards",
"frozen_at": "2026-08-31T02:38:16.989Z",
"interactions": [
{
"request": {
"body": {
"type": "json",
"value": {
"layout_type": "ordered",
"tags": [
"team:alpha",
"team:beta",
"team:gamma",
"team:delta",
"team:epsilon",
"ai:generated",
"ai:edited"
],
"title": "Test-Get_a_dashboard_with_five_team_tags_and_two_AI_tags-1788143896",
"widgets": []
}
},
"content_type": "application/json",
"method": "POST",
"path": "/api/v1/dashboard",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"id\":\"7j6-m9w-ts2\",\"title\":\"Test-Get_a_dashboard_with_five_team_tags_and_two_AI_tags-1788143896\",\"description\":null,\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/7j6-m9w-ts2/test-getadashboardwithfiveteamtagsandtwoaitags-1788143896\",\"template_variables\":null,\"widgets\":[],\"notify_list\":null,\"created_at\":\"2026-08-31T02:38:17.100817+00:00\",\"modified_at\":\"2026-08-31T02:38:17.100817+00:00\",\"tags\":[\"team:alpha\",\"team:beta\",\"team:gamma\",\"team:delta\",\"team:epsilon\",\"ai:generated\",\"ai:edited\"],\"restricted_roles\":[]}"
},
"headers": {
"content-type": "application/json"
},
"reason": "OK",
"status": 200
}
},
{
"request": {
"body": {
"type": "empty",
"value": null
},
"content_type": "",
"method": "GET",
"path": "/api/v1/dashboard/7j6-m9w-ts2",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"id\":\"7j6-m9w-ts2\",\"title\":\"Test-Get_a_dashboard_with_five_team_tags_and_two_AI_tags-1788143896\",\"description\":null,\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/7j6-m9w-ts2/test-getadashboardwithfiveteamtagsandtwoaitags-1788143896\",\"template_variables\":null,\"widgets\":[],\"notify_list\":null,\"created_at\":\"2026-08-31T02:38:17.100817+00:00\",\"modified_at\":\"2026-08-31T02:38:17.100817+00:00\",\"tags\":[\"team:alpha\",\"team:beta\",\"team:gamma\",\"team:delta\",\"team:epsilon\",\"ai:generated\",\"ai:edited\"],\"restricted_roles\":[]}"
},
"headers": {
"content-type": "application/json"
},
"reason": "OK",
"status": 200
}
},
{
"request": {
"body": {
"type": "empty",
"value": null
},
"content_type": "",
"method": "DELETE",
"path": "/api/v1/dashboard/7j6-m9w-ts2",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"deleted_dashboard_id\":\"7j6-m9w-ts2\"}"
},
"headers": {
"content-type": "application/json"
},
"reason": "OK",
"status": 200
}
}
],
"scenario": "Get a dashboard with five team tags and two AI tags",
"version": "v1"
},
{
"feature": "Dashboards",
"frozen_at": "2024-11-15T19:33:06.595Z",
Expand Down
Loading
Loading