Skip to content

Commit c51686a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add cloud-cost as a supported query data source (#1007)
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 f91408c commit c51686a

File tree

6 files changed

+36
-18
lines changed

6 files changed

+36
-18
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:02:01.735035",
8-
"spec_repo_commit": "3916cc96"
7+
"regenerated": "2023-02-13 19:39:20.423919",
8+
"spec_repo_commit": "e92a3dde"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-10 22:02:01.746694",
13-
"spec_repo_commit": "3916cc96"
12+
"regenerated": "2023-02-13 19:39:20.436463",
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.

packages/datadog-api-client-v2/models/MetricsDataSource.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
import { UnparsedObject } from "../../datadog-api-client-common/util";
88

99
/**
10-
* A data source that is powered by the Metrics backend.
10+
* A data source that is powered by the Metrics platform.
1111
*/
1212

13-
export type MetricsDataSource = typeof METRICS | UnparsedObject;
13+
export type MetricsDataSource =
14+
| typeof METRICS
15+
| typeof CLOUD_COST
16+
| UnparsedObject;
1417
export const METRICS = "metrics";
18+
export const CLOUD_COST = "cloud_cost";

packages/datadog-api-client-v2/models/MetricsScalarQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class MetricsScalarQuery {
1717
*/
1818
"aggregator": MetricsAggregator;
1919
/**
20-
* A data source that is powered by the Metrics backend.
20+
* A data source that is powered by the Metrics platform.
2121
*/
2222
"dataSource": MetricsDataSource;
2323
/**

packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1212
*/
1313
export class MetricsTimeseriesQuery {
1414
/**
15-
* A data source that is powered by the Metrics backend.
15+
* A data source that is powered by the Metrics platform.
1616
*/
1717
"dataSource": MetricsDataSource;
1818
/**

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ const enumsMap: { [key: string]: any[] } = {
824824
MetricTagConfigurationType: ["manage_tags"],
825825
MetricType: ["metrics"],
826826
MetricsAggregator: ["avg", "min", "max", "sum", "last"],
827-
MetricsDataSource: ["metrics"],
827+
MetricsDataSource: ["metrics", "cloud_cost"],
828828
MonitorConfigPolicyResourceType: ["monitor-config-policy"],
829829
MonitorConfigPolicyType: ["tag"],
830830
OpsgenieServiceRegionType: ["us", "eu", "custom"],

0 commit comments

Comments
 (0)