From 6321ed400701d9c494670c73ccab8afd9af40426 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 22 Oct 2026 19:16:49 +0000 Subject: [PATCH] Regenerate client from commit ddd1320 of spec repo --- .generator/schemas/v1/openapi.yaml | 43 ++++++++++++++++--- features/v1/metrics.feature | 1 + .../models/MetricsQueryMetadata.ts | 8 ++++ .../models/MetricsQueryResponse.ts | 27 ++++++++++++ .../models/MetricsQueryUnit.ts | 9 ++++ 5 files changed, 83 insertions(+), 5 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 6f90e72c3b37..129263163a98 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -8919,6 +8919,11 @@ components: nullable: true readOnly: true type: string + attributes: + additionalProperties: {} + description: Additional read-only attributes returned for the series. + readOnly: true + type: object display_name: description: Display name of the metric. example: system.cpu.idle @@ -9024,6 +9029,12 @@ components: example: time_series readOnly: true type: string + resp_version: + description: Version of the response format. + example: 1 + format: int64 + readOnly: true + type: integer series: description: List of timeseries queried. items: @@ -9035,11 +9046,27 @@ components: example: ok readOnly: true type: string + times: + description: |- + Legacy field, always returned as an empty list. Timestamps are returned + in the `pointlist` of each entry of `series`. + items: + description: An unused legacy timestamp. + readOnly: true + type: array to_date: description: End of requested time window, milliseconds since Unix epoch. format: int64 readOnly: true type: integer + values: + description: |- + Legacy field, always returned as an empty list. Timeseries values are + returned in the `pointlist` of each entry of `series`. + items: + description: An unused legacy value. + readOnly: true + type: array type: object MetricsQueryUnit: description: Object containing the metric unit family, scale factor, name, and short name. @@ -9047,28 +9074,34 @@ components: properties: family: description: Unit family, allows for conversion between units of the same family, for scaling. - example: time + example: percentage readOnly: true type: string + id: + description: Unit identifier. + example: 17 + format: int64 + readOnly: true + type: integer name: description: Unit name - example: minute + example: percent readOnly: true type: string plural: description: Plural form of the unit name. - example: minutes + example: percent readOnly: true type: string scale_factor: description: Factor for scaling between units of the same family. - example: 60.0 + example: 1.0 format: double readOnly: true type: number short_name: description: Abbreviation of the unit. - example: min + example: "%" readOnly: true type: string type: object diff --git a/features/v1/metrics.feature b/features/v1/metrics.feature index 9362bd0d2699..fa9d3fcfcb72 100644 --- a/features/v1/metrics.feature +++ b/features/v1/metrics.feature @@ -93,6 +93,7 @@ Feature: Metrics When the request is sent Then the response status is 200 OK And the response "status" is equal to "ok" + And the response "resp_version" is equal to 1 And the response "query" is equal to "system.cpu.idle{*}" @generated @skip @team:ddoghq/metrics-experience @team:ddoghq/metrics-index @team:ddoghq/metrics-intake @team:ddoghq/timeseries-query diff --git a/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts b/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts index 009cdf399117..14b1cc566720 100644 --- a/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts +++ b/packages/datadog-api-client-v1/models/MetricsQueryMetadata.ts @@ -15,6 +15,10 @@ export class MetricsQueryMetadata { * Aggregation type. */ "aggr"?: string; + /** + * Additional read-only attributes returned for the series. + */ + "attributes"?: { [key: string]: any }; /** * Display name of the metric. */ @@ -87,6 +91,10 @@ export class MetricsQueryMetadata { baseName: "aggr", type: "string", }, + attributes: { + baseName: "attributes", + type: "{ [key: string]: any; }", + }, displayName: { baseName: "display_name", type: "string", diff --git a/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts b/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts index ae722d856997..8b471fe7a2a7 100644 --- a/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts +++ b/packages/datadog-api-client-v1/models/MetricsQueryResponse.ts @@ -35,6 +35,10 @@ export class MetricsQueryResponse { * Type of response. */ "resType"?: string; + /** + * Version of the response format. + */ + "respVersion"?: number; /** * List of timeseries queried. */ @@ -43,10 +47,20 @@ export class MetricsQueryResponse { * Status of the query. */ "status"?: string; + /** + * Legacy field, always returned as an empty list. Timestamps are returned + * in the `pointlist` of each entry of `series`. + */ + "times"?: Array; /** * End of requested time window, milliseconds since Unix epoch. */ "toDate"?: number; + /** + * Legacy field, always returned as an empty list. Timeseries values are + * returned in the `pointlist` of each entry of `series`. + */ + "values"?: Array; /** * A container for additional, undeclared properties. @@ -89,6 +103,11 @@ export class MetricsQueryResponse { baseName: "res_type", type: "string", }, + respVersion: { + baseName: "resp_version", + type: "number", + format: "int64", + }, series: { baseName: "series", type: "Array", @@ -97,11 +116,19 @@ export class MetricsQueryResponse { baseName: "status", type: "string", }, + times: { + baseName: "times", + type: "Array", + }, toDate: { baseName: "to_date", type: "number", format: "int64", }, + values: { + baseName: "values", + type: "Array", + }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts b/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts index 9bb8f437540d..ba62971308f1 100644 --- a/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts +++ b/packages/datadog-api-client-v1/models/MetricsQueryUnit.ts @@ -14,6 +14,10 @@ export class MetricsQueryUnit { * Unit family, allows for conversion between units of the same family, for scaling. */ "family"?: string; + /** + * Unit identifier. + */ + "id"?: number; /** * Unit name */ @@ -51,6 +55,11 @@ export class MetricsQueryUnit { baseName: "family", type: "string", }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, name: { baseName: "name", type: "string",