Struct aws_sdk_lightsail::input::TestAlarmInput [−][src]
#[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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestAlarm, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestAlarm, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<TestAlarm
>
Creates a new builder-style object to manufacture TestAlarmInput
The name of the alarm to test.
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TestAlarmInput
impl Send for TestAlarmInput
impl Sync for TestAlarmInput
impl Unpin for TestAlarmInput
impl UnwindSafe for TestAlarmInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more