Skip to content

Commit

Permalink
Add clarification on metrics parameter filter[hours_ago] (#1874)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Feb 21, 2024
1 parent 24feb21 commit 0707019
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-20 19:02:25.507403",
"spec_repo_commit": "5ef419de"
"regenerated": "2024-02-21 12:50:36.140864",
"spec_repo_commit": "1ec2d96a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-20 19:02:25.522187",
"spec_repo_commit": "5ef419de"
"regenerated": "2024-02-21 12:50:36.176011",
"spec_repo_commit": "1ec2d96a"
}
}
}
4 changes: 3 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28095,14 +28095,16 @@ paths:
schema:
type: string
- description: The number of hours of look back (from now) to estimate cardinality
with.
with. Estimates are based on historical data, and unspecified fields default
to the minimum 49 hours.
example: 49
in: query
name: filter[hours_ago]
required: false
schema:
format: int32
maximum: 2147483647
minimum: 49
type: integer
- description: The number of aggregations that a `count`, `rate`, or `gauge`
metric is configured to use. Max number of aggregation combos is 9.
Expand Down
3 changes: 2 additions & 1 deletion src/datadog_api_client/v2/api/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def __init__(self, api_client=None):
"filter_hours_ago": {
"validation": {
"inclusive_maximum": 2147483647,
"inclusive_minimum": 49,
},
"openapi_types": (int,),
"attribute": "filter[hours_ago]",
Expand Down Expand Up @@ -546,7 +547,7 @@ def estimate_metrics_output_series(
:type metric_name: str
:param filter_groups: Filtered tag keys that the metric is configured to query with.
:type filter_groups: str, optional
:param filter_hours_ago: The number of hours of look back (from now) to estimate cardinality with.
:param filter_hours_ago: The number of hours of look back (from now) to estimate cardinality with. Estimates are based on historical data, and unspecified fields default to the minimum 49 hours.
:type filter_hours_ago: int, optional
:param filter_num_aggregations: The number of aggregations that a ``count`` , ``rate`` , or ``gauge`` metric is configured to use. Max number of aggregation combos is 9.
:type filter_num_aggregations: int, optional
Expand Down

0 comments on commit 0707019

Please sign in to comment.