Struct aws_sdk_applicationinsights::types::Observation

source ·
#[non_exhaustive]
pub struct Observation {
Show 45 fields pub id: Option<String>, pub start_time: Option<DateTime>, pub end_time: Option<DateTime>, pub source_type: Option<String>, pub source_arn: Option<String>, pub log_group: Option<String>, pub line_time: Option<DateTime>, pub log_text: Option<String>, pub log_filter: Option<LogFilter>, pub metric_namespace: Option<String>, pub metric_name: Option<String>, pub unit: Option<String>, pub value: Option<f64>, pub cloud_watch_event_id: Option<String>, pub cloud_watch_event_source: Option<CloudWatchEventSource>, pub cloud_watch_event_detail_type: Option<String>, pub health_event_arn: Option<String>, pub health_service: Option<String>, pub health_event_type_code: Option<String>, pub health_event_type_category: Option<String>, pub health_event_description: Option<String>, pub code_deploy_deployment_id: Option<String>, pub code_deploy_deployment_group: Option<String>, pub code_deploy_state: Option<String>, pub code_deploy_application: Option<String>, pub code_deploy_instance_group_id: Option<String>, pub ec2_state: Option<String>, pub rds_event_categories: Option<String>, pub rds_event_message: Option<String>, pub s3_event_name: Option<String>, pub states_execution_arn: Option<String>, pub states_arn: Option<String>, pub states_status: Option<String>, pub states_input: Option<String>, pub ebs_event: Option<String>, pub ebs_result: Option<String>, pub ebs_cause: Option<String>, pub ebs_request_id: Option<String>, pub x_ray_fault_percent: Option<i32>, pub x_ray_throttle_percent: Option<i32>, pub x_ray_error_percent: Option<i32>, pub x_ray_request_count: Option<i32>, pub x_ray_request_average_latency: Option<i64>, pub x_ray_node_name: Option<String>, pub x_ray_node_type: Option<String>,
}
Expand description

Describes an anomaly or error with the application.

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.
§id: Option<String>

The ID of the observation type.

§start_time: Option<DateTime>

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

§end_time: Option<DateTime>

The time when the observation ended, in epoch seconds.

§source_type: Option<String>

The source type of the observation.

§source_arn: Option<String>

The source resource ARN of the observation.

§log_group: Option<String>

The log group name.

§line_time: Option<DateTime>

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

§log_text: Option<String>

The log text of the observation.

§log_filter: Option<LogFilter>

The log filter of the observation.

§metric_namespace: Option<String>

The namespace of the observation metric.

§metric_name: Option<String>

The name of the observation metric.

§unit: Option<String>

The unit of the source observation metric.

§value: Option<f64>

The value of the source observation metric.

§cloud_watch_event_id: Option<String>

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

§cloud_watch_event_source: Option<CloudWatchEventSource>

The source of the CloudWatch Event.

§cloud_watch_event_detail_type: Option<String>

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

§health_event_arn: Option<String>

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

§health_service: Option<String>

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

§health_event_type_code: Option<String>

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

§health_event_type_category: Option<String>

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

§health_event_description: Option<String>

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

§code_deploy_deployment_id: Option<String>

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

§code_deploy_deployment_group: Option<String>

The deployment group to which the CodeDeploy deployment belongs.

§code_deploy_state: Option<String>

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

§code_deploy_application: Option<String>

The CodeDeploy application to which the deployment belongs.

§code_deploy_instance_group_id: Option<String>

The instance group to which the CodeDeploy instance belongs.

§ec2_state: Option<String>

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

§rds_event_categories: Option<String>

The category of an RDS event.

§rds_event_message: Option<String>

The message of an RDS event.

§s3_event_name: Option<String>

The name of the S3 CloudWatch Event-based observation.

§states_execution_arn: Option<String>

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

§states_arn: Option<String>

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

§states_status: Option<String>

The status of the step function-related observation.

§states_input: Option<String>

The input to the step function-based observation.

§ebs_event: Option<String>

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

§ebs_result: Option<String>

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

§ebs_cause: Option<String>

The cause of an EBS CloudWatch event.

§ebs_request_id: Option<String>

The request ID of an EBS CloudWatch event.

§x_ray_fault_percent: Option<i32>

The X-Ray request fault percentage for this node.

§x_ray_throttle_percent: Option<i32>

The X-Ray request throttle percentage for this node.

§x_ray_error_percent: Option<i32>

The X-Ray request error percentage for this node.

§x_ray_request_count: Option<i32>

The X-Ray request count for this node.

§x_ray_request_average_latency: Option<i64>

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

§x_ray_node_name: Option<String>

The name of the X-Ray node.

§x_ray_node_type: Option<String>

The type of the X-Ray node.

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 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 T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> IntoEither for T

source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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