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
21 changes: 15 additions & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135317,6 +135317,10 @@ components:
properties:
attributes:
$ref: "#/components/schemas/TimeseriesResponseAttributes"
id:
description: The identifier of the timeseries response resource.
example: "0"
type: string
type:
$ref: "#/components/schemas/TimeseriesFormulaResponseType"
type: object
Expand Down Expand Up @@ -136175,24 +136179,29 @@ components:
properties:
family:
description: Unit family, allows for conversion between units of the same family, for scaling.
example: time
example: percentage
type: string
id:
description: The identifier of the unit.
example: 17
format: int64
type: integer
name:
description: Unit name
example: minute
description: Unit name.
example: percent
type: string
plural:
description: Plural form of the unit name.
example: minutes
example: percent
type: string
scale_factor:
description: Factor for scaling between units of the same family.
example: 60.0
example: 1.0
format: double
type: number
short_name:
description: Abbreviation of the unit.
example: min
example: "%"
type: string
type: object
UnitCostCreateRequest:
Expand Down
1 change: 1 addition & 0 deletions features/v2/metrics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ Feature: Metrics
And body with value {"data": {"attributes": {"formulas": [{"formula": "a", "limit": {"count": 10, "order": "desc"}}], "from": {{ timestamp('now - 1h') }}000, "interval": 5000, "queries": [{"data_source": "metrics", "query": "avg:datadog.estimated_usage.metrics.custom{*}", "name": "a"}], "to": {{ timestamp('now') }}000}, "type": "timeseries_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data.id" is equal to "0"
And the response "data.type" is equal to "timeseries_response"

@skip-validation @team:ddoghq/timeseries-query
Expand Down
8 changes: 8 additions & 0 deletions packages/datadog-api-client-v2/models/TimeseriesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export class TimeseriesResponse {
* The object describing a timeseries response.
*/
"attributes"?: TimeseriesResponseAttributes;
/**
* The identifier of the timeseries response resource.
*/
"id"?: string;
/**
* The type of the resource. The value should always be timeseries_response.
*/
Expand All @@ -41,6 +45,10 @@ export class TimeseriesResponse {
baseName: "attributes",
type: "TimeseriesResponseAttributes",
},
id: {
baseName: "id",
type: "string",
},
type: {
baseName: "type",
type: "TimeseriesFormulaResponseType",
Expand Down
11 changes: 10 additions & 1 deletion packages/datadog-api-client-v2/models/Unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export class Unit {
*/
"family"?: string;
/**
* Unit name
* The identifier of the unit.
*/
"id"?: number;
/**
* Unit name.
*/
"name"?: string;
/**
Expand Down Expand Up @@ -51,6 +55,11 @@ export class Unit {
baseName: "family",
type: "string",
},
id: {
baseName: "id",
type: "number",
format: "int64",
},
name: {
baseName: "name",
type: "string",
Expand Down
Loading