Skip to content

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

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:45.000901",
"spec_repo_commit": "837c2656"
"regenerated": "2025-06-24 14:37:26.731055",
"spec_repo_commit": "d7a08ce8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-23 20:34:45.017074",
"spec_repo_commit": "837c2656"
"regenerated": "2025-06-24 14:37:26.749122",
"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
6 changes: 6 additions & 0 deletions src/datadogV1/api/api_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ impl MetricsAPI {
}

/// 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.
pub async fn list_active_metrics(
&self,
from: i64,
Expand All @@ -337,6 +340,9 @@ impl MetricsAPI {
}

/// 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.
pub async fn list_active_metrics_with_http_info(
&self,
from: i64,
Expand Down
Loading