Skip to content

Commit 50bf50b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5d27f02 of spec repo
1 parent c55b731 commit 50bf50b

4 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135317,6 +135317,10 @@ components:
135317135317
properties:
135318135318
attributes:
135319135319
$ref: "#/components/schemas/TimeseriesResponseAttributes"
135320+
id:
135321+
description: The identifier of the timeseries response resource.
135322+
example: "0"
135323+
type: string
135320135324
type:
135321135325
$ref: "#/components/schemas/TimeseriesFormulaResponseType"
135322135326
type: object
@@ -136177,6 +136181,11 @@ components:
136177136181
description: Unit family, allows for conversion between units of the same family, for scaling.
136178136182
example: time
136179136183
type: string
136184+
id:
136185+
description: The identifier of the unit.
136186+
example: 1
136187+
format: int64
136188+
type: integer
136180136189
name:
136181136190
description: Unit name
136182136191
example: minute

‎src/datadog_api_client/v2/model/timeseries_response.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,20 @@ def openapi_types(_):
2626

2727
return {
2828
"attributes": (TimeseriesResponseAttributes,),
29+
"id": (str,),
2930
"type": (TimeseriesFormulaResponseType,),
3031
}
3132

3233
attribute_map = {
3334
"attributes": "attributes",
35+
"id": "id",
3436
"type": "type",
3537
}
3638

3739
def __init__(
3840
self_,
3941
attributes: Union[TimeseriesResponseAttributes, UnsetType] = unset,
42+
id: Union[str, UnsetType] = unset,
4043
type: Union[TimeseriesFormulaResponseType, UnsetType] = unset,
4144
**kwargs,
4245
):
@@ -46,11 +49,16 @@ def __init__(
4649
:param attributes: The object describing a timeseries response.
4750
:type attributes: TimeseriesResponseAttributes, optional
4851
52+
:param id: The identifier of the timeseries response resource.
53+
:type id: str, optional
54+
4955
:param type: The type of the resource. The value should always be timeseries_response.
5056
:type type: TimeseriesFormulaResponseType, optional
5157
"""
5258
if attributes is not unset:
5359
kwargs["attributes"] = attributes
60+
if id is not unset:
61+
kwargs["id"] = id
5462
if type is not unset:
5563
kwargs["type"] = type
5664
super().__init__(kwargs)

‎src/datadog_api_client/v2/model/unit.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Unit(ModelNormal):
2020
def openapi_types(_):
2121
return {
2222
"family": (str,),
23+
"id": (int,),
2324
"name": (str,),
2425
"plural": (str,),
2526
"scale_factor": (float,),
@@ -28,6 +29,7 @@ def openapi_types(_):
2829

2930
attribute_map = {
3031
"family": "family",
32+
"id": "id",
3133
"name": "name",
3234
"plural": "plural",
3335
"scale_factor": "scale_factor",
@@ -37,6 +39,7 @@ def openapi_types(_):
3739
def __init__(
3840
self_,
3941
family: Union[str, UnsetType] = unset,
42+
id: Union[int, UnsetType] = unset,
4043
name: Union[str, UnsetType] = unset,
4144
plural: Union[str, UnsetType] = unset,
4245
scale_factor: Union[float, UnsetType] = unset,
@@ -49,6 +52,9 @@ def __init__(
4952
:param family: Unit family, allows for conversion between units of the same family, for scaling.
5053
:type family: str, optional
5154
55+
:param id: The identifier of the unit.
56+
:type id: int, optional
57+
5258
:param name: Unit name
5359
:type name: str, optional
5460
@@ -63,6 +69,8 @@ def __init__(
6369
"""
6470
if family is not unset:
6571
kwargs["family"] = family
72+
if id is not unset:
73+
kwargs["id"] = id
6674
if name is not unset:
6775
kwargs["name"] = name
6876
if plural is not unset:

‎tests/v2/features/metrics.feature‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ Feature: Metrics
980980
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"}}
981981
When the request is sent
982982
Then the response status is 200 OK
983+
And the response "data.id" is equal to "0"
983984
And the response "data.type" is equal to "timeseries_response"
984985

985986
@skip-validation @team:ddoghq/timeseries-query

0 commit comments

Comments
 (0)