Skip to content

Commit 9301cd0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add cloud-cost as a supported query data source (#1327)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 5d20a01 commit 9301cd0

File tree

7 files changed

+36
-19
lines changed

7 files changed

+36
-19
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-02-10 22:01:56.096464",
8-
"spec_repo_commit": "3916cc96"
7+
"regenerated": "2023-02-13 19:39:23.939884",
8+
"spec_repo_commit": "e92a3dde"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-10 22:01:56.108254",
13-
"spec_repo_commit": "3916cc96"
12+
"regenerated": "2023-02-13 19:39:23.954474",
13+
"spec_repo_commit": "e92a3dde"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,6 +2850,8 @@ components:
28502850
type: string
28512851
values:
28522852
description: The array of numerical values for one formula or query.
2853+
example:
2854+
- 0.5
28532855
items:
28542856
description: An individual value for a given column and group-by.
28552857
example: 0.5
@@ -3274,6 +3276,8 @@ components:
32743276
$ref: '#/components/schemas/EventsQueryGroupBys'
32753277
indexes:
32763278
description: The indexes in which to search.
3279+
example:
3280+
- main
32773281
items:
32783282
description: The unique index name.
32793283
example: main
@@ -3325,6 +3329,8 @@ components:
33253329
$ref: '#/components/schemas/EventsQueryGroupBys'
33263330
indexes:
33273331
description: The indexes in which to search.
3332+
example:
3333+
- main
33283334
items:
33293335
description: The unique index name.
33303336
example: main
@@ -3670,6 +3676,9 @@ components:
36703676
values:
36713677
description: The array of tag values for each group found for the results
36723678
of the formulas or queries.
3679+
example:
3680+
- - production
3681+
- - staging
36733682
items:
36743683
description: An individual tag value for a given group column.
36753684
items:
@@ -3683,6 +3692,7 @@ components:
36833692
description: List of tags that apply to a single response value.
36843693
items:
36853694
description: A single tag that applies to a single response value.
3695+
example: env:production
36863696
type: string
36873697
type: array
36883698
HTTPLog:
@@ -7218,13 +7228,15 @@ components:
72187228
type: object
72197229
MetricsDataSource:
72207230
default: metrics
7221-
description: A data source that is powered by the Metrics backend.
7231+
description: A data source that is powered by the Metrics platform.
72227232
enum:
72237233
- metrics
7234+
- cloud_cost
72247235
example: metrics
72257236
type: string
72267237
x-enum-varnames:
72277238
- METRICS
7239+
- CLOUD_COST
72287240
MetricsScalarQuery:
72297241
description: An individual scalar metrics query.
72307242
properties:
@@ -17014,12 +17026,13 @@ paths:
1701417026
tags:
1701517027
- Metrics
1701617028
x-codegen-request-body-name: body
17017-
x-unstable: '**Note**: This endpoint is GA for the metrics data source. Logs
17018-
is in beta.
17029+
x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data
17030+
sources. Logs is
1701917031

17020-
We are gradually onboarding support for more sources. If you have any feedback,
17032+
in beta. We are gradually onboarding support for more sources. If you have
17033+
any
1702117034

17022-
contact [Datadog support](https://docs.datadoghq.com/help/).'
17035+
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1702317036
/api/v2/query/timeseries:
1702417037
post:
1702517038
description: 'Query timeseries data across various data sources and
@@ -17051,12 +17064,13 @@ paths:
1705117064
tags:
1705217065
- Metrics
1705317066
x-codegen-request-body-name: body
17054-
x-unstable: '**Note**: This endpoint is GA for the metrics data source. Logs
17055-
is in beta.
17067+
x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data
17068+
sources. Logs is
1705617069

17057-
We are gradually onboarding support for more sources. If you have any feedback,
17070+
in beta. We are gradually onboarding support for more sources. If you have
17071+
any
1705817072

17059-
contact [Datadog support](https://docs.datadoghq.com/help/).'
17073+
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1706017074
/api/v2/roles:
1706117075
get:
1706217076
description: Returns all roles, including their names and their unique identifiers.

src/datadog_api_client/v2/model/metrics_data_source.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@
1414

1515
class MetricsDataSource(ModelSimple):
1616
"""
17-
A data source that is powered by the Metrics backend.
17+
A data source that is powered by the Metrics platform.
1818
19-
:param value: If omitted defaults to "metrics". Must be one of ["metrics"].
19+
:param value: If omitted defaults to "metrics". Must be one of ["metrics", "cloud_cost"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"metrics",
25+
"cloud_cost",
2526
}
2627
METRICS: ClassVar["MetricsDataSource"]
28+
CLOUD_COST: ClassVar["MetricsDataSource"]
2729

2830
@cached_property
2931
def openapi_types(_):
@@ -33,3 +35,4 @@ def openapi_types(_):
3335

3436

3537
MetricsDataSource.METRICS = MetricsDataSource("metrics")
38+
MetricsDataSource.CLOUD_COST = MetricsDataSource("cloud_cost")

src/datadog_api_client/v2/model/metrics_scalar_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
:param aggregator: The type of aggregation that can be performed on metrics queries.
5353
:type aggregator: MetricsAggregator
5454
55-
:param data_source: A data source that is powered by the Metrics backend.
55+
:param data_source: A data source that is powered by the Metrics platform.
5656
:type data_source: MetricsDataSource
5757
5858
:param name: The variable name for use in formulas.

src/datadog_api_client/v2/model/metrics_timeseries_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self_, data_source: MetricsDataSource, query: str, name: Union[str,
3838
"""
3939
An individual timeseries metrics query.
4040
41-
:param data_source: A data source that is powered by the Metrics backend.
41+
:param data_source: A data source that is powered by the Metrics platform.
4242
:type data_source: MetricsDataSource
4343
4444
:param name: The variable name for use in formulas.

src/datadog_api_client/v2/model/scalar_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, **kwargs):
1818
:param aggregator: The type of aggregation that can be performed on metrics queries.
1919
:type aggregator: MetricsAggregator
2020
21-
:param data_source: A data source that is powered by the Metrics backend.
21+
:param data_source: A data source that is powered by the Metrics platform.
2222
:type data_source: MetricsDataSource
2323
2424
:param name: The variable name for use in formulas.

src/datadog_api_client/v2/model/timeseries_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, **kwargs):
1515
"""
1616
An individual timeseries query to one of the basic Datadog data sources.
1717
18-
:param data_source: A data source that is powered by the Metrics backend.
18+
:param data_source: A data source that is powered by the Metrics platform.
1919
:type data_source: MetricsDataSource
2020
2121
:param name: The variable name for use in formulas.

0 commit comments

Comments
 (0)