#[non_exhaustive]
pub struct Observation { /* private fields */ }
Expand description

Describes an anomaly or error with the application.

Implementations§

source§

impl Observation

source

pub fn id(&self) -> Option<&str>

The ID of the observation type.

source

pub fn start_time(&self) -> Option<&DateTime>

The time when the observation was first detected, in epoch seconds.

source

pub fn end_time(&self) -> Option<&DateTime>

The time when the observation ended, in epoch seconds.

source

pub fn source_type(&self) -> Option<&str>

The source type of the observation.

source

pub fn source_arn(&self) -> Option<&str>

The source resource ARN of the observation.

source

pub fn log_group(&self) -> Option<&str>

The log group name.

source

pub fn line_time(&self) -> Option<&DateTime>

The timestamp in the CloudWatch Logs that specifies when the matched line occurred.

source

pub fn log_text(&self) -> Option<&str>

The log text of the observation.

source

pub fn log_filter(&self) -> Option<&LogFilter>

The log filter of the observation.

source

pub fn metric_namespace(&self) -> Option<&str>

The namespace of the observation metric.

source

pub fn metric_name(&self) -> Option<&str>

The name of the observation metric.

source

pub fn unit(&self) -> Option<&str>

The unit of the source observation metric.

source

pub fn value(&self) -> Option<f64>

The value of the source observation metric.

source

pub fn cloud_watch_event_id(&self) -> Option<&str>

The ID of the CloudWatch Event-based observation related to the detected problem.

source

pub fn cloud_watch_event_source(&self) -> Option<&CloudWatchEventSource>

The source of the CloudWatch Event.

source

pub fn cloud_watch_event_detail_type(&self) -> Option<&str>

The detail type of the CloudWatch Event-based observation, for example, EC2 Instance State-change Notification.

source

pub fn health_event_arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the AWS Health Event-based observation.

source

pub fn health_service(&self) -> Option<&str>

The service to which the AWS Health Event belongs, such as EC2.

source

pub fn health_event_type_code(&self) -> Option<&str>

The type of the AWS Health event, for example, AWS_EC2_POWER_CONNECTIVITY_ISSUE.

source

pub fn health_event_type_category(&self) -> Option<&str>

The category of the AWS Health event, such as issue.

source

pub fn health_event_description(&self) -> Option<&str>

The description of the AWS Health event provided by the service, such as Amazon EC2.

source

pub fn code_deploy_deployment_id(&self) -> Option<&str>

The deployment ID of the CodeDeploy-based observation related to the detected problem.

source

pub fn code_deploy_deployment_group(&self) -> Option<&str>

The deployment group to which the CodeDeploy deployment belongs.

source

pub fn code_deploy_state(&self) -> Option<&str>

The status of the CodeDeploy deployment, for example SUCCESS or FAILURE.

source

pub fn code_deploy_application(&self) -> Option<&str>

The CodeDeploy application to which the deployment belongs.

source

pub fn code_deploy_instance_group_id(&self) -> Option<&str>

The instance group to which the CodeDeploy instance belongs.

source

pub fn ec2_state(&self) -> Option<&str>

The state of the instance, such as STOPPING or TERMINATING.

source

pub fn rds_event_categories(&self) -> Option<&str>

The category of an RDS event.

source

pub fn rds_event_message(&self) -> Option<&str>

The message of an RDS event.

source

pub fn s3_event_name(&self) -> Option<&str>

The name of the S3 CloudWatch Event-based observation.

source

pub fn states_execution_arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the step function execution-based observation.

source

pub fn states_arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the step function-based observation.

source

pub fn states_status(&self) -> Option<&str>

The status of the step function-related observation.

source

pub fn states_input(&self) -> Option<&str>

The input to the step function-based observation.

source

pub fn ebs_event(&self) -> Option<&str>

The type of EBS CloudWatch event, such as createVolume, deleteVolume or attachVolume.

source

pub fn ebs_result(&self) -> Option<&str>

The result of an EBS CloudWatch event, such as failed or succeeded.

source

pub fn ebs_cause(&self) -> Option<&str>

The cause of an EBS CloudWatch event.

source

pub fn ebs_request_id(&self) -> Option<&str>

The request ID of an EBS CloudWatch event.

source

pub fn x_ray_fault_percent(&self) -> Option<i32>

The X-Ray request fault percentage for this node.

source

pub fn x_ray_throttle_percent(&self) -> Option<i32>

The X-Ray request throttle percentage for this node.

source

pub fn x_ray_error_percent(&self) -> Option<i32>

The X-Ray request error percentage for this node.

source

pub fn x_ray_request_count(&self) -> Option<i32>

The X-Ray request count for this node.

source

pub fn x_ray_request_average_latency(&self) -> Option<i64>

The X-Ray node request average latency for this node.

source

pub fn x_ray_node_name(&self) -> Option<&str>

The name of the X-Ray node.

source

pub fn x_ray_node_type(&self) -> Option<&str>

The type of the X-Ray node.

source§

impl Observation

source

pub fn builder() -> ObservationBuilder

Creates a new builder-style object to manufacture Observation.

Trait Implementations§

source§

impl Clone for Observation

source§

fn clone(&self) -> Observation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Observation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Observation> for Observation

source§

fn eq(&self, other: &Observation) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Observation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more