Skip to content

Commit a29b6f5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update estimate docs with realtime changes (#308)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a48714b commit a29b6f5

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
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.6",
7-
"regenerated": "2024-09-25 18:39:36.583329",
8-
"spec_repo_commit": "1fa8186c"
7+
"regenerated": "2024-09-26 19:34:38.607113",
8+
"spec_repo_commit": "83debf9e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-25 18:39:36.598325",
13-
"spec_repo_commit": "1fa8186c"
12+
"regenerated": "2024-09-26 19:34:38.621641",
13+
"spec_repo_commit": "83debf9e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32775,8 +32775,7 @@ paths:
3277532775
schema:
3277632776
type: string
3277732777
- description: The number of hours of look back (from now) to estimate cardinality
32778-
with. Estimates are based on historical data, and unspecified fields default
32779-
to the minimum 49 hours.
32778+
with. If unspecified, it defaults to 0 hours.
3278032779
example: 49
3278132780
in: query
3278232781
name: filter[hours_ago]
@@ -32805,7 +32804,7 @@ paths:
3280532804
schema:
3280632805
type: boolean
3280732806
- description: A window, in hours, from the look back to estimate cardinality
32808-
with.
32807+
with. The minimum and default is 1 hour.
3280932808
example: 6
3281032809
in: query
3281132810
name: filter[timespan_h]

src/datadogV2/api/api_metrics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ use std::io::Write;
1717
pub struct EstimateMetricsOutputSeriesOptionalParams {
1818
/// Filtered tag keys that the metric is configured to query with.
1919
pub filter_groups: Option<String>,
20-
/// 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.
20+
/// The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
2121
pub filter_hours_ago: Option<i32>,
2222
/// The number of aggregations that a `count`, `rate`, or `gauge` metric is configured to use. Max number of aggregation combos is 9.
2323
pub filter_num_aggregations: Option<i32>,
2424
/// A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
2525
pub filter_pct: Option<bool>,
26-
/// A window, in hours, from the look back to estimate cardinality with.
26+
/// A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
2727
pub filter_timespan_h: Option<i32>,
2828
}
2929

@@ -33,7 +33,7 @@ impl EstimateMetricsOutputSeriesOptionalParams {
3333
self.filter_groups = Some(value);
3434
self
3535
}
36-
/// 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.
36+
/// The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
3737
pub fn filter_hours_ago(mut self, value: i32) -> Self {
3838
self.filter_hours_ago = Some(value);
3939
self
@@ -48,7 +48,7 @@ impl EstimateMetricsOutputSeriesOptionalParams {
4848
self.filter_pct = Some(value);
4949
self
5050
}
51-
/// A window, in hours, from the look back to estimate cardinality with.
51+
/// A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
5252
pub fn filter_timespan_h(mut self, value: i32) -> Self {
5353
self.filter_timespan_h = Some(value);
5454
self

0 commit comments

Comments
 (0)