Struct aws_sdk_autoscaling::types::builders::MetricDataQueryBuilder
source · #[non_exhaustive]pub struct MetricDataQueryBuilder { /* private fields */ }Expand description
A builder for MetricDataQuery.
Implementations§
source§impl MetricDataQueryBuilder
impl MetricDataQueryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
A short name that identifies the object's results in the response. This name must be unique among all MetricDataQuery objects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
A short name that identifies the object's results in the response. This name must be unique among all MetricDataQuery objects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
A short name that identifies the object's results in the response. This name must be unique among all MetricDataQuery objects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
The math expression to perform on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions.
Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.
sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
The math expression to perform on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions.
Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.
sourcepub fn get_expression(&self) -> &Option<String>
pub fn get_expression(&self) -> &Option<String>
The math expression to perform on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions.
Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.
sourcepub fn metric_stat(self, input: MetricStat) -> Self
pub fn metric_stat(self, input: MetricStat) -> Self
Information about the metric data to return.
Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.
sourcepub fn set_metric_stat(self, input: Option<MetricStat>) -> Self
pub fn set_metric_stat(self, input: Option<MetricStat>) -> Self
Information about the metric data to return.
Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.
sourcepub fn get_metric_stat(&self) -> &Option<MetricStat>
pub fn get_metric_stat(&self) -> &Option<MetricStat>
Information about the metric data to return.
Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.
sourcepub fn label(self, input: impl Into<String>) -> Self
pub fn label(self, input: impl Into<String>) -> Self
A human-readable label for this metric or expression. This is especially useful if this is a math expression, so that you know what the value represents.
sourcepub fn set_label(self, input: Option<String>) -> Self
pub fn set_label(self, input: Option<String>) -> Self
A human-readable label for this metric or expression. This is especially useful if this is a math expression, so that you know what the value represents.
sourcepub fn get_label(&self) -> &Option<String>
pub fn get_label(&self) -> &Option<String>
A human-readable label for this metric or expression. This is especially useful if this is a math expression, so that you know what the value represents.
sourcepub fn return_data(self, input: bool) -> Self
pub fn return_data(self, input: bool) -> Self
Indicates whether to return the timestamps and raw data values of this metric.
If you use any math expressions, specify true for this value for only the final math expression that the metric specification is based on. You must specify false for ReturnData for all the other metrics and expressions used in the metric specification.
If you are only retrieving metrics and not performing any math expressions, do not specify anything for ReturnData. This sets it to its default (true).
sourcepub fn set_return_data(self, input: Option<bool>) -> Self
pub fn set_return_data(self, input: Option<bool>) -> Self
Indicates whether to return the timestamps and raw data values of this metric.
If you use any math expressions, specify true for this value for only the final math expression that the metric specification is based on. You must specify false for ReturnData for all the other metrics and expressions used in the metric specification.
If you are only retrieving metrics and not performing any math expressions, do not specify anything for ReturnData. This sets it to its default (true).
sourcepub fn get_return_data(&self) -> &Option<bool>
pub fn get_return_data(&self) -> &Option<bool>
Indicates whether to return the timestamps and raw data values of this metric.
If you use any math expressions, specify true for this value for only the final math expression that the metric specification is based on. You must specify false for ReturnData for all the other metrics and expressions used in the metric specification.
If you are only retrieving metrics and not performing any math expressions, do not specify anything for ReturnData. This sets it to its default (true).
sourcepub fn build(self) -> MetricDataQuery
pub fn build(self) -> MetricDataQuery
Consumes the builder and constructs a MetricDataQuery.
Trait Implementations§
source§impl Clone for MetricDataQueryBuilder
impl Clone for MetricDataQueryBuilder
source§fn clone(&self) -> MetricDataQueryBuilder
fn clone(&self) -> MetricDataQueryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricDataQueryBuilder
impl Debug for MetricDataQueryBuilder
source§impl Default for MetricDataQueryBuilder
impl Default for MetricDataQueryBuilder
source§fn default() -> MetricDataQueryBuilder
fn default() -> MetricDataQueryBuilder
source§impl PartialEq for MetricDataQueryBuilder
impl PartialEq for MetricDataQueryBuilder
source§fn eq(&self, other: &MetricDataQueryBuilder) -> bool
fn eq(&self, other: &MetricDataQueryBuilder) -> bool
self and other values to be equal, and is used
by ==.