Skip to content

Commit

Permalink
Clarify units of metrics interval param as seconds (#44)
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 Mar 22, 2024
1 parent 169aac7 commit cb595e9
Show file tree
Hide file tree
Showing 3 changed files with 6 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-03-21 19:44:23.281401",
"spec_repo_commit": "7b0d4cbe"
"regenerated": "2024-03-22 15:34:49.536706",
"spec_repo_commit": "24998b49"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-21 19:44:23.297078",
"spec_repo_commit": "7b0d4cbe"
"regenerated": "2024-03-22 15:34:49.554368",
"spec_repo_commit": "24998b49"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12444,7 +12444,7 @@ components:
properties:
interval:
description: If the type of the metric is rate or count, define the corresponding
interval.
interval in seconds.
example: 20
format: int64
type: integer
Expand Down
2 changes: 1 addition & 1 deletion src/datadogV2/model/model_metric_series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::fmt::{self, Formatter};
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct MetricSeries {
/// If the type of the metric is rate or count, define the corresponding interval.
/// If the type of the metric is rate or count, define the corresponding interval in seconds.
#[serde(rename = "interval")]
pub interval: Option<i64>,
/// Metadata for the metric.
Expand Down

0 comments on commit cb595e9

Please sign in to comment.