Struct aws_sdk_lightsail::operation::test_alarm::TestAlarmInput
source · #[non_exhaustive]pub struct TestAlarmInput {
pub alarm_name: Option<String>,
pub state: Option<AlarmState>,
}
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.alarm_name: Option<String>
The name of the alarm to test.
state: Option<AlarmState>
The alarm state to test.
An alarm has the following possible states that can be tested:
-
ALARM
- The metric is outside of the defined threshold. -
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state. -
OK
- The metric is within the defined threshold.
Implementations§
source§impl TestAlarmInput
impl TestAlarmInput
sourcepub fn alarm_name(&self) -> Option<&str>
pub fn alarm_name(&self) -> Option<&str>
The name of the alarm to test.
sourcepub fn state(&self) -> Option<&AlarmState>
pub fn state(&self) -> Option<&AlarmState>
The alarm state to test.
An alarm has the following possible states that can be tested:
-
ALARM
- The metric is outside of the defined threshold. -
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state. -
OK
- The metric is within the defined threshold.
source§impl TestAlarmInput
impl TestAlarmInput
sourcepub fn builder() -> TestAlarmInputBuilder
pub fn builder() -> TestAlarmInputBuilder
Creates a new builder-style object to manufacture TestAlarmInput
.
Trait Implementations§
source§impl Clone for TestAlarmInput
impl Clone for TestAlarmInput
source§fn clone(&self) -> TestAlarmInput
fn clone(&self) -> TestAlarmInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestAlarmInput
impl Debug for TestAlarmInput
source§impl PartialEq for TestAlarmInput
impl PartialEq for TestAlarmInput
source§fn eq(&self, other: &TestAlarmInput) -> bool
fn eq(&self, other: &TestAlarmInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestAlarmInput
Auto Trait Implementations§
impl Freeze for TestAlarmInput
impl RefUnwindSafe for TestAlarmInput
impl Send for TestAlarmInput
impl Sync for TestAlarmInput
impl Unpin for TestAlarmInput
impl UnwindSafe for TestAlarmInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more