#[non_exhaustive]pub struct EstimateMetricsOutputSeriesOptionalParams {
pub filter_groups: Option<String>,
pub filter_hours_ago: Option<i32>,
pub filter_num_aggregations: Option<i32>,
pub filter_pct: Option<bool>,
pub filter_timespan_h: Option<i32>,
}
Expand description
EstimateMetricsOutputSeriesOptionalParams is a struct for passing parameters to the method MetricsAPI::estimate_metrics_output_series
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.filter_groups: Option<String>
Filtered tag keys that the metric is configured to query with.
filter_hours_ago: Option<i32>
The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
filter_num_aggregations: Option<i32>
Deprecated. Number of aggregations has no impact on volume.
filter_pct: Option<bool>
A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
filter_timespan_h: Option<i32>
A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
Implementations§
Source§impl EstimateMetricsOutputSeriesOptionalParams
impl EstimateMetricsOutputSeriesOptionalParams
Sourcepub fn filter_groups(self, value: String) -> Self
pub fn filter_groups(self, value: String) -> Self
Filtered tag keys that the metric is configured to query with.
Examples found in repository?
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = MetricsAPI::with_config(configuration);
10 let resp = api
11 .estimate_metrics_output_series(
12 "system.cpu.idle".to_string(),
13 EstimateMetricsOutputSeriesOptionalParams::default()
14 .filter_groups("app,host".to_string())
15 .filter_num_aggregations(4),
16 )
17 .await;
18 if let Ok(value) = resp {
19 println!("{:#?}", value);
20 } else {
21 println!("{:#?}", resp.unwrap_err());
22 }
23}
Sourcepub fn filter_hours_ago(self, value: i32) -> Self
pub fn filter_hours_ago(self, value: i32) -> Self
The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
Sourcepub fn filter_num_aggregations(self, value: i32) -> Self
pub fn filter_num_aggregations(self, value: i32) -> Self
Deprecated. Number of aggregations has no impact on volume.
Examples found in repository?
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = MetricsAPI::with_config(configuration);
10 let resp = api
11 .estimate_metrics_output_series(
12 "system.cpu.idle".to_string(),
13 EstimateMetricsOutputSeriesOptionalParams::default()
14 .filter_groups("app,host".to_string())
15 .filter_num_aggregations(4),
16 )
17 .await;
18 if let Ok(value) = resp {
19 println!("{:#?}", value);
20 } else {
21 println!("{:#?}", resp.unwrap_err());
22 }
23}
Sourcepub fn filter_pct(self, value: bool) -> Self
pub fn filter_pct(self, value: bool) -> Self
A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
Sourcepub fn filter_timespan_h(self, value: i32) -> Self
pub fn filter_timespan_h(self, value: i32) -> Self
A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
Trait Implementations§
Source§impl Clone for EstimateMetricsOutputSeriesOptionalParams
impl Clone for EstimateMetricsOutputSeriesOptionalParams
Source§fn clone(&self) -> EstimateMetricsOutputSeriesOptionalParams
fn clone(&self) -> EstimateMetricsOutputSeriesOptionalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more