#[non_exhaustive]pub struct TargetHealthDescription {
pub target: Option<TargetDescription>,
pub health_check_port: Option<String>,
pub target_health: Option<TargetHealth>,
pub anomaly_detection: Option<AnomalyDetection>,
}
Expand description
Information about the health of a target.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.target: Option<TargetDescription>
The description of the target.
health_check_port: Option<String>
The port to use to connect with the target.
target_health: Option<TargetHealth>
The health information for the target.
anomaly_detection: Option<AnomalyDetection>
The anomaly detection result for the target.
If no anomalies were detected, the result is normal
.
If anomalies were detected, the result is anomalous
.
Implementations§
source§impl TargetHealthDescription
impl TargetHealthDescription
sourcepub fn target(&self) -> Option<&TargetDescription>
pub fn target(&self) -> Option<&TargetDescription>
The description of the target.
sourcepub fn health_check_port(&self) -> Option<&str>
pub fn health_check_port(&self) -> Option<&str>
The port to use to connect with the target.
sourcepub fn target_health(&self) -> Option<&TargetHealth>
pub fn target_health(&self) -> Option<&TargetHealth>
The health information for the target.
sourcepub fn anomaly_detection(&self) -> Option<&AnomalyDetection>
pub fn anomaly_detection(&self) -> Option<&AnomalyDetection>
The anomaly detection result for the target.
If no anomalies were detected, the result is normal
.
If anomalies were detected, the result is anomalous
.
source§impl TargetHealthDescription
impl TargetHealthDescription
sourcepub fn builder() -> TargetHealthDescriptionBuilder
pub fn builder() -> TargetHealthDescriptionBuilder
Creates a new builder-style object to manufacture TargetHealthDescription
.
Trait Implementations§
source§impl Clone for TargetHealthDescription
impl Clone for TargetHealthDescription
source§fn clone(&self) -> TargetHealthDescription
fn clone(&self) -> TargetHealthDescription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TargetHealthDescription
impl Debug for TargetHealthDescription
source§impl PartialEq for TargetHealthDescription
impl PartialEq for TargetHealthDescription
source§fn eq(&self, other: &TargetHealthDescription) -> bool
fn eq(&self, other: &TargetHealthDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetHealthDescription
Auto Trait Implementations§
impl Freeze for TargetHealthDescription
impl RefUnwindSafe for TargetHealthDescription
impl Send for TargetHealthDescription
impl Sync for TargetHealthDescription
impl Unpin for TargetHealthDescription
impl UnwindSafe for TargetHealthDescription
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.