Struct aws_sdk_iotsitewise::types::builders::MetricBuilder
source · #[non_exhaustive]pub struct MetricBuilder { /* private fields */ }Expand description
A builder for Metric.
Implementations§
source§impl MetricBuilder
impl MetricBuilder
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
For more information, see Quotas in the IoT SiteWise User Guide.
This field is required.sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
For more information, see Quotas in the IoT SiteWise User Guide.
sourcepub fn get_expression(&self) -> &Option<String>
pub fn get_expression(&self) -> &Option<String>
The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
For more information, see Quotas in the IoT SiteWise User Guide.
sourcepub fn variables(self, input: ExpressionVariable) -> Self
pub fn variables(self, input: ExpressionVariable) -> Self
Appends an item to variables.
To override the contents of this collection use set_variables.
The list of variables used in the expression.
sourcepub fn set_variables(self, input: Option<Vec<ExpressionVariable>>) -> Self
pub fn set_variables(self, input: Option<Vec<ExpressionVariable>>) -> Self
The list of variables used in the expression.
sourcepub fn get_variables(&self) -> &Option<Vec<ExpressionVariable>>
pub fn get_variables(&self) -> &Option<Vec<ExpressionVariable>>
The list of variables used in the expression.
sourcepub fn window(self, input: MetricWindow) -> Self
pub fn window(self, input: MetricWindow) -> Self
The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.
sourcepub fn set_window(self, input: Option<MetricWindow>) -> Self
pub fn set_window(self, input: Option<MetricWindow>) -> Self
The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.
sourcepub fn get_window(&self) -> &Option<MetricWindow>
pub fn get_window(&self) -> &Option<MetricWindow>
The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.
sourcepub fn processing_config(self, input: MetricProcessingConfig) -> Self
pub fn processing_config(self, input: MetricProcessingConfig) -> Self
The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
sourcepub fn set_processing_config(
self,
input: Option<MetricProcessingConfig>
) -> Self
pub fn set_processing_config( self, input: Option<MetricProcessingConfig> ) -> Self
The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
sourcepub fn get_processing_config(&self) -> &Option<MetricProcessingConfig>
pub fn get_processing_config(&self) -> &Option<MetricProcessingConfig>
The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
Trait Implementations§
source§impl Clone for MetricBuilder
impl Clone for MetricBuilder
source§fn clone(&self) -> MetricBuilder
fn clone(&self) -> MetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricBuilder
impl Debug for MetricBuilder
source§impl Default for MetricBuilder
impl Default for MetricBuilder
source§fn default() -> MetricBuilder
fn default() -> MetricBuilder
source§impl PartialEq for MetricBuilder
impl PartialEq for MetricBuilder
source§fn eq(&self, other: &MetricBuilder) -> bool
fn eq(&self, other: &MetricBuilder) -> bool
self and other values to be equal, and is used
by ==.