Skip to content

Commit 8788749

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update Metrics Query descriptions and scopes (#1540)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f1f972a commit 8788749

File tree

7 files changed

+22
-19
lines changed

7 files changed

+22
-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-06-26 07:19:26.221149",
8-
"spec_repo_commit": "6831ab50"
7+
"regenerated": "2023-06-28 13:29:53.237675",
8+
"spec_repo_commit": "042157e1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-26 07:19:26.233789",
13-
"spec_repo_commit": "6831ab50"
12+
"regenerated": "2023-06-28 13:29:53.250399",
13+
"spec_repo_commit": "042157e1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3927,8 +3927,8 @@ components:
39273927
aggregation:
39283928
$ref: '#/components/schemas/EventsAggregation'
39293929
metric:
3930-
description: Metric whose calculated value should be used to define the
3931-
sort order of a query's results.
3930+
description: The metric's calculated value which should be used to define
3931+
the sort order of a query's results.
39323932
example: '@duration'
39333933
type: string
39343934
order:
@@ -8903,7 +8903,8 @@ components:
89038903
type: object
89048904
MetricsAggregator:
89058905
default: avg
8906-
description: The type of aggregation that can be performed on metrics queries.
8906+
description: The type of aggregation that can be performed on metrics-based
8907+
queries.
89078908
enum:
89088909
- avg
89098910
- min
@@ -21082,7 +21083,7 @@ paths:
2108221083
resultsPath: data
2108321084
/api/v2/query/scalar:
2108421085
post:
21085-
description: 'Query scalar values (as seen on Query Value, Table and Toplist
21086+
description: 'Query scalar values (as seen on Query Value, Table, and Toplist
2108621087
widgets).
2108721088

2108821089
Multiple data sources are supported with the ability to
@@ -21119,13 +21120,13 @@ paths:
2111921120
tags:
2112021121
- Metrics
2112121122
x-codegen-request-body-name: body
21122-
x-unstable: '**Note**: This endpoint is GA for the metrics, real user monitoring
21123-
(RUM) and cloud cost data sources.
21123+
x-unstable: '**Note**: This endpoint is GA for Metrics, Real User Monitoring
21124+
(RUM), and Cloud Cost Management data sources.
2112421125

2112521126
Support for logs is in beta. We are gradually onboarding support for more
2112621127
sources. If you have any
2112721128

21128-
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
21129+
feedback, contact [Datadog Support](https://docs.datadoghq.com/help/).'
2112921130
/api/v2/query/timeseries:
2113021131
post:
2113121132
description: 'Query timeseries data across various data sources and
@@ -21158,17 +21159,19 @@ paths:
2115821159
appKeyAuth: []
2115921160
- AuthZ:
2116021161
- timeseries_query
21162+
- metrics_read
21163+
- metric_tags_write
2116121164
summary: Query timeseries data across multiple products
2116221165
tags:
2116321166
- Metrics
2116421167
x-codegen-request-body-name: body
21165-
x-unstable: '**Note**: This endpoint is GA for the metrics, real user monitoring
21166-
(RUM) and cloud cost data sources.
21168+
x-unstable: '**Note**: This endpoint is GA for Metrics, Real User Monitoring
21169+
(RUM), and Cloud Cost Management data sources.
2116721170

2116821171
Support for logs is in beta. We are gradually onboarding support for more
2116921172
sources. If you have any
2117021173

21171-
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
21174+
feedback, contact [Datadog Support](https://docs.datadoghq.com/help/).'
2117221175
/api/v2/restriction_policy/{resource_id}:
2117321176
delete:
2117421177
description: Deletes the restriction policy associated with a specified resource.

src/datadog_api_client/v2/api/metrics_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def query_scalar_data(
717717
) -> ScalarFormulaQueryResponse:
718718
"""Query scalar data across multiple products.
719719
720-
Query scalar values (as seen on Query Value, Table and Toplist widgets).
720+
Query scalar values (as seen on Query Value, Table, and Toplist widgets).
721721
Multiple data sources are supported with the ability to
722722
process the data using formulas and functions.
723723

src/datadog_api_client/v2/model/events_group_by_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
:param aggregation: The type of aggregation that can be performed on events-based queries.
5555
:type aggregation: EventsAggregation
5656
57-
:param metric: Metric whose calculated value should be used to define the sort order of a query's results.
57+
:param metric: The metric's calculated value which should be used to define the sort order of a query's results.
5858
:type metric: str, optional
5959
6060
:param order: Direction of sort.

src/datadog_api_client/v2/model/metrics_aggregator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class MetricsAggregator(ModelSimple):
1616
"""
17-
The type of aggregation that can be performed on metrics queries.
17+
The type of aggregation that can be performed on metrics-based queries.
1818
1919
:param value: If omitted defaults to "avg". Must be one of ["avg", "min", "max", "sum", "last", "percentile", "mean", "l2norm", "area"].
2020
:type value: str

src/datadog_api_client/v2/model/metrics_scalar_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(
4949
"""
5050
An individual scalar metrics query.
5151
52-
:param aggregator: The type of aggregation that can be performed on metrics queries.
52+
:param aggregator: The type of aggregation that can be performed on metrics-based queries.
5353
:type aggregator: MetricsAggregator
5454
5555
:param data_source: A data source that is powered by the Metrics platform.

src/datadog_api_client/v2/model/scalar_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 scalar query to one of the basic Datadog data sources.
1717
18-
:param aggregator: The type of aggregation that can be performed on metrics queries.
18+
:param aggregator: The type of aggregation that can be performed on metrics-based queries.
1919
:type aggregator: MetricsAggregator
2020
2121
:param data_source: A data source that is powered by the Metrics platform.

0 commit comments

Comments
 (0)