From edc436f718096c3f6f8327e81b8b571d97eb14d3 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 1 Oct 2026 19:11:53 +0000 Subject: [PATCH] Regenerate client from commit e4afd88 of spec repo --- .generator/schemas/v1/openapi.yaml | 13 +++++++++++++ .../test-server-data/v1/dashboards.json | 14 +++++++------- features/v1/dashboards.feature | 1 + services/dashboards/src/v1/index.ts | 1 + services/dashboards/src/v1/models/Dashboard.ts | 9 +++++++++ .../src/v1/models/DashboardExperienceType.ts | 11 +++++++++++ services/dashboards/src/v1/models/TypingInfo.ts | 1 + 7 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 services/dashboards/src/v1/models/DashboardExperienceType.ts diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 3ade5f79a8a9..fade3e942021 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -1451,6 +1451,8 @@ components: description: Description of the dashboard. nullable: true type: string + experience_type: + $ref: "#/components/schemas/DashboardExperienceType" id: description: ID of the dashboard. example: "123-abc-456" @@ -1573,6 +1575,17 @@ components: description: ID of the deleted dashboard. type: string type: object + DashboardExperienceType: + description: The experience type of the dashboard. + enum: + - default + - product_analytics + example: default + readOnly: true + type: string + x-enum-varnames: + - DEFAULT + - PRODUCT_ANALYTICS DashboardFixedTimeframe: description: A fixed dashboard timeframe. properties: diff --git a/features/generated-test/test-server-data/v1/dashboards.json b/features/generated-test/test-server-data/v1/dashboards.json index 60c6c752266f..7c47fc454114 100644 --- a/features/generated-test/test-server-data/v1/dashboards.json +++ b/features/generated-test/test-server-data/v1/dashboards.json @@ -11619,7 +11619,7 @@ }, { "feature": "Dashboards", - "frozen_at": "2024-11-15T19:33:06.052Z", + "frozen_at": "2026-10-01T01:04:23.267Z", "interactions": [ { "request": { @@ -11627,7 +11627,7 @@ "type": "json", "value": { "layout_type": "ordered", - "title": "Test-Get_a_dashboard_returns_OK_response-1731699186 with Profile Metrics Query", + "title": "Test-Get_a_dashboard_returns_OK_response-1790816663 with Profile Metrics Query", "widgets": [ { "definition": { @@ -11669,7 +11669,7 @@ "response": { "body": { "encoding": "text", - "value": "{\"id\":\"448-ktj-ezs\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/448-ktj-ezs/test-getadashboardreturnsokresponse-1731699186-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7381515167611300}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:06.217022+00:00\",\"modified_at\":\"2024-11-15T19:33:06.217022+00:00\",\"restricted_roles\":[]}\n" + "value": "{\"id\":\"223-fhs-m3a\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1790816663 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":\"frog\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/223-fhs-m3a/test-getadashboardreturnsokresponse-1790816663-with-profile-metrics-query\",\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":737698456766602}],\"notify_list\":null,\"created_at\":\"2026-10-01T01:04:23.449294+00:00\",\"modified_at\":\"2026-10-01T01:04:23.449294+00:00\",\"experience_type\":\"default\",\"restricted_roles\":[]}" }, "headers": { "content-type": "application/json" @@ -11686,13 +11686,13 @@ }, "content_type": "", "method": "GET", - "path": "/api/v1/dashboard/448-ktj-ezs", + "path": "/api/v1/dashboard/223-fhs-m3a", "query": [] }, "response": { "body": { "encoding": "text", - "value": "{\"id\":\"448-ktj-ezs\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/448-ktj-ezs/test-getadashboardreturnsokresponse-1731699186-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7381515167611300}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:06.217022+00:00\",\"modified_at\":\"2024-11-15T19:33:06.217022+00:00\",\"restricted_roles\":[]}\n" + "value": "{\"id\":\"223-fhs-m3a\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1790816663 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":\"frog\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/223-fhs-m3a/test-getadashboardreturnsokresponse-1790816663-with-profile-metrics-query\",\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":737698456766602}],\"notify_list\":null,\"created_at\":\"2026-10-01T01:04:23.449294+00:00\",\"modified_at\":\"2026-10-01T01:04:23.449294+00:00\",\"experience_type\":\"default\",\"restricted_roles\":[]}" }, "headers": { "content-type": "application/json" @@ -11709,13 +11709,13 @@ }, "content_type": "", "method": "DELETE", - "path": "/api/v1/dashboard/448-ktj-ezs", + "path": "/api/v1/dashboard/223-fhs-m3a", "query": [] }, "response": { "body": { "encoding": "text", - "value": "{\"deleted_dashboard_id\":\"448-ktj-ezs\"}\n" + "value": "{\"deleted_dashboard_id\":\"223-fhs-m3a\"}" }, "headers": { "content-type": "application/json" diff --git a/features/v1/dashboards.feature b/features/v1/dashboards.feature index dc368642f596..1bb0ed3bdefa 100644 --- a/features/v1/dashboards.feature +++ b/features/v1/dashboards.feature @@ -1348,6 +1348,7 @@ Feature: Dashboards When the request is sent Then the response status is 200 OK And the response "description" is equal to null + And the response "experience_type" is equal to "default" @replay-only @team:DataDog/dashboards-backend Scenario: Get a dashboard returns 'author_name' diff --git a/services/dashboards/src/v1/index.ts b/services/dashboards/src/v1/index.ts index adbef691daea..23fd296f443f 100644 --- a/services/dashboards/src/v1/index.ts +++ b/services/dashboards/src/v1/index.ts @@ -52,6 +52,7 @@ export { DashboardBulkActionData } from "./models/DashboardBulkActionData"; export { DashboardBulkDeleteRequest } from "./models/DashboardBulkDeleteRequest"; export { DashboardDefaultTimeframeSetting } from "./models/DashboardDefaultTimeframeSetting"; export { DashboardDeleteResponse } from "./models/DashboardDeleteResponse"; +export { DashboardExperienceType } from "./models/DashboardExperienceType"; export { DashboardFixedTimeframe } from "./models/DashboardFixedTimeframe"; export { DashboardFixedTimeframeType } from "./models/DashboardFixedTimeframeType"; export { DashboardGlobalTime } from "./models/DashboardGlobalTime"; diff --git a/services/dashboards/src/v1/models/Dashboard.ts b/services/dashboards/src/v1/models/Dashboard.ts index 5d2413c0050f..883ea97e5f9c 100644 --- a/services/dashboards/src/v1/models/Dashboard.ts +++ b/services/dashboards/src/v1/models/Dashboard.ts @@ -1,6 +1,7 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; import { DashboardDefaultTimeframeSetting } from "./DashboardDefaultTimeframeSetting"; +import { DashboardExperienceType } from "./DashboardExperienceType"; import { DashboardLayoutType } from "./DashboardLayoutType"; import { DashboardReflowType } from "./DashboardReflowType"; import { DashboardTab } from "./DashboardTab"; @@ -33,6 +34,10 @@ export class Dashboard { * Description of the dashboard. */ "description"?: string; + /** + * The experience type of the dashboard. + */ + "experienceType"?: DashboardExperienceType; /** * ID of the dashboard. */ @@ -129,6 +134,10 @@ export class Dashboard { baseName: "description", type: "string", }, + experienceType: { + baseName: "experience_type", + type: "DashboardExperienceType", + }, id: { baseName: "id", type: "string", diff --git a/services/dashboards/src/v1/models/DashboardExperienceType.ts b/services/dashboards/src/v1/models/DashboardExperienceType.ts new file mode 100644 index 000000000000..c6be346ee93a --- /dev/null +++ b/services/dashboards/src/v1/models/DashboardExperienceType.ts @@ -0,0 +1,11 @@ +import { UnparsedObject } from "@datadog/datadog-api-client"; + +/** + * The experience type of the dashboard. + */ +export type DashboardExperienceType = + | typeof DEFAULT + | typeof PRODUCT_ANALYTICS + | UnparsedObject; +export const DEFAULT = "default"; +export const PRODUCT_ANALYTICS = "product_analytics"; diff --git a/services/dashboards/src/v1/models/TypingInfo.ts b/services/dashboards/src/v1/models/TypingInfo.ts index adf073537831..d7f6eb324c55 100644 --- a/services/dashboards/src/v1/models/TypingInfo.ts +++ b/services/dashboards/src/v1/models/TypingInfo.ts @@ -274,6 +274,7 @@ export const TypingInfo: ModelTypingInfo = { "previous_week", "previous_month", ], + DashboardExperienceType: ["default", "product_analytics"], DashboardFixedTimeframeType: ["fixed"], DashboardGlobalTimeLiveSpan: [ "15m",