Struct aws_sdk_emr::model::cloud_watch_alarm_definition::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for CloudWatchAlarmDefinition
Implementations
sourceimpl Builder
impl Builder
sourcepub fn comparison_operator(self, input: ComparisonOperator) -> Self
pub fn comparison_operator(self, input: ComparisonOperator) -> Self
Determines how the metric specified by MetricName is compared to the value specified by Threshold.
sourcepub fn set_comparison_operator(self, input: Option<ComparisonOperator>) -> Self
pub fn set_comparison_operator(self, input: Option<ComparisonOperator>) -> Self
Determines how the metric specified by MetricName is compared to the value specified by Threshold.
sourcepub fn evaluation_periods(self, input: i32) -> Self
pub fn evaluation_periods(self, input: i32) -> Self
The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.
sourcepub fn set_evaluation_periods(self, input: Option<i32>) -> Self
pub fn set_evaluation_periods(self, input: Option<i32>) -> Self
The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the CloudWatch metric that is watched to determine an alarm condition.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the CloudWatch metric that is watched to determine an alarm condition.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300.
sourcepub fn statistic(self, input: Statistic) -> Self
pub fn statistic(self, input: Statistic) -> Self
The statistic to apply to the metric associated with the alarm. The default is AVERAGE.
sourcepub fn set_statistic(self, input: Option<Statistic>) -> Self
pub fn set_statistic(self, input: Option<Statistic>) -> Self
The statistic to apply to the metric associated with the alarm. The default is AVERAGE.
sourcepub fn threshold(self, input: f64) -> Self
pub fn threshold(self, input: f64) -> Self
The value against which the specified statistic is compared.
sourcepub fn set_threshold(self, input: Option<f64>) -> Self
pub fn set_threshold(self, input: Option<f64>) -> Self
The value against which the specified statistic is compared.
sourcepub fn unit(self, input: Unit) -> Self
pub fn unit(self, input: Unit) -> Self
The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.
sourcepub fn set_unit(self, input: Option<Unit>) -> Self
pub fn set_unit(self, input: Option<Unit>) -> Self
The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.
sourcepub fn dimensions(self, input: MetricDimension) -> Self
pub fn dimensions(self, input: MetricDimension) -> Self
Appends an item to dimensions.
To override the contents of this collection use set_dimensions.
A CloudWatch metric dimension.
sourcepub fn set_dimensions(self, input: Option<Vec<MetricDimension>>) -> Self
pub fn set_dimensions(self, input: Option<Vec<MetricDimension>>) -> Self
A CloudWatch metric dimension.
sourcepub fn build(self) -> CloudWatchAlarmDefinition
pub fn build(self) -> CloudWatchAlarmDefinition
Consumes the builder and constructs a CloudWatchAlarmDefinition
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more