Skip to content

Update /api/v1/metrics endpoint description to reflect daily UTC reset behavior #2650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "2025-06-23 20:34:47.832678",
"spec_repo_commit": "837c2656"
"regenerated": "2025-06-24 14:37:33.139439",
"spec_repo_commit": "d7a08ce8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-23 20:34:47.969661",
"spec_repo_commit": "837c2656"
"regenerated": "2025-06-24 14:37:33.299068",
"spec_repo_commit": "d7a08ce8"
}
}
}
8 changes: 7 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29301,8 +29301,14 @@ paths:
- logs_write_pipelines
/api/v1/metrics:
get:
description: Get the list of actively reporting metrics from a given time until
description: 'Get the list of actively reporting metrics from a given time until
now.

The tag service resets daily at midnight UTC. This endpoint returns only

metrics that have reported since the last reset, even if the `from`

parameter specifies an earlier time.'
operationId: ListActiveMetrics
parameters:
- description: Seconds since the Unix epoch.
Expand Down
3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/api/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ def list_active_metrics(
"""Get active metrics list.

Get the list of actively reporting metrics from a given time until now.
The tag service resets daily at midnight UTC. This endpoint returns only
metrics that have reported since the last reset, even if the ``from``
parameter specifies an earlier time.

:param _from: Seconds since the Unix epoch.
:type _from: int
Expand Down
Loading