Class Observation
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Observation.Builder,
Observation>
Describes an anomaly or error with the application.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Observation.Builder
builder()
final String
The detail type of the CloudWatch Event-based observation, for example,EC2 Instance State-change Notification
.final String
The ID of the CloudWatch Event-based observation related to the detected problem.final CloudWatchEventSource
The source of the CloudWatch Event.final String
The source of the CloudWatch Event.final String
The CodeDeploy application to which the deployment belongs.final String
The deployment group to which the CodeDeploy deployment belongs.final String
The deployment ID of the CodeDeploy-based observation related to the detected problem.final String
The instance group to which the CodeDeploy instance belongs.final String
The status of the CodeDeploy deployment, for exampleSUCCESS
orFAILURE
.final String
ebsCause()
The cause of an EBS CloudWatch event.final String
ebsEvent()
The type of EBS CloudWatch event, such ascreateVolume
,deleteVolume
orattachVolume
.final String
The request ID of an EBS CloudWatch event.final String
The result of an EBS CloudWatch event, such asfailed
orsucceeded
.final String
ec2State()
The state of the instance, such asSTOPPING
orTERMINATING
.final Instant
endTime()
The time when the observation ended, in epoch seconds.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The Amazon Resource Name (ARN) of the AWS Health Event-based observation.final String
The description of the AWS Health event provided by the service, such as Amazon EC2.final String
The category of the AWS Health event, such asissue
.final String
The type of the AWS Health event, for example,AWS_EC2_POWER_CONNECTIVITY_ISSUE
.final String
The service to which the AWS Health Event belongs, such as EC2.final String
id()
The ID of the observation type.final Instant
lineTime()
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.final LogFilter
The log filter of the observation.final String
The log filter of the observation.final String
logGroup()
The log group name.final String
logText()
The log text of the observation.final String
The name of the observation metric.final String
The namespace of the observation metric.final String
The category of an RDS event.final String
The message of an RDS event.final String
The name of the S3 CloudWatch Event-based observation.static Class
<? extends Observation.Builder> final String
The source resource ARN of the observation.final String
The source type of the observation.final Instant
The time when the observation was first detected, in epoch seconds.final String
The Amazon Resource Name (ARN) of the step function-based observation.final String
The Amazon Resource Name (ARN) of the step function execution-based observation.final String
The input to the step function-based observation.final String
The status of the step function-related observation.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
unit()
The unit of the source observation metric.final Double
value()
The value of the source observation metric.final Integer
The X-Ray request error percentage for this node.final Integer
The X-Ray request fault percentage for this node.final String
The name of the X-Ray node.final String
The type of the X-Ray node.final Long
The X-Ray node request average latency for this node.final Integer
The X-Ray request count for this node.final Integer
The X-Ray request throttle percentage for this node.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID of the observation type.
- Returns:
- The ID of the observation type.
-
startTime
The time when the observation was first detected, in epoch seconds.
- Returns:
- The time when the observation was first detected, in epoch seconds.
-
endTime
The time when the observation ended, in epoch seconds.
- Returns:
- The time when the observation ended, in epoch seconds.
-
sourceType
The source type of the observation.
- Returns:
- The source type of the observation.
-
sourceARN
The source resource ARN of the observation.
- Returns:
- The source resource ARN of the observation.
-
logGroup
The log group name.
- Returns:
- The log group name.
-
lineTime
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
- Returns:
- The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
-
logText
The log text of the observation.
- Returns:
- The log text of the observation.
-
logFilter
The log filter of the observation.
If the service returns an enum value that is not available in the current SDK version,
logFilter
will returnLogFilter.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlogFilterAsString()
.- Returns:
- The log filter of the observation.
- See Also:
-
logFilterAsString
The log filter of the observation.
If the service returns an enum value that is not available in the current SDK version,
logFilter
will returnLogFilter.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlogFilterAsString()
.- Returns:
- The log filter of the observation.
- See Also:
-
metricNamespace
The namespace of the observation metric.
- Returns:
- The namespace of the observation metric.
-
metricName
The name of the observation metric.
- Returns:
- The name of the observation metric.
-
unit
The unit of the source observation metric.
- Returns:
- The unit of the source observation metric.
-
value
The value of the source observation metric.
- Returns:
- The value of the source observation metric.
-
cloudWatchEventId
The ID of the CloudWatch Event-based observation related to the detected problem.
- Returns:
- The ID of the CloudWatch Event-based observation related to the detected problem.
-
cloudWatchEventSource
The source of the CloudWatch Event.
If the service returns an enum value that is not available in the current SDK version,
cloudWatchEventSource
will returnCloudWatchEventSource.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcloudWatchEventSourceAsString()
.- Returns:
- The source of the CloudWatch Event.
- See Also:
-
cloudWatchEventSourceAsString
The source of the CloudWatch Event.
If the service returns an enum value that is not available in the current SDK version,
cloudWatchEventSource
will returnCloudWatchEventSource.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcloudWatchEventSourceAsString()
.- Returns:
- The source of the CloudWatch Event.
- See Also:
-
cloudWatchEventDetailType
The detail type of the CloudWatch Event-based observation, for example,
EC2 Instance State-change Notification
.- Returns:
- The detail type of the CloudWatch Event-based observation, for example,
EC2 Instance State-change Notification
.
-
healthEventArn
The Amazon Resource Name (ARN) of the AWS Health Event-based observation.
- Returns:
- The Amazon Resource Name (ARN) of the AWS Health Event-based observation.
-
healthService
The service to which the AWS Health Event belongs, such as EC2.
- Returns:
- The service to which the AWS Health Event belongs, such as EC2.
-
healthEventTypeCode
The type of the AWS Health event, for example,
AWS_EC2_POWER_CONNECTIVITY_ISSUE
.- Returns:
- The type of the AWS Health event, for example,
AWS_EC2_POWER_CONNECTIVITY_ISSUE
.
-
healthEventTypeCategory
The category of the AWS Health event, such as
issue
.- Returns:
- The category of the AWS Health event, such as
issue
.
-
healthEventDescription
The description of the AWS Health event provided by the service, such as Amazon EC2.
- Returns:
- The description of the AWS Health event provided by the service, such as Amazon EC2.
-
codeDeployDeploymentId
The deployment ID of the CodeDeploy-based observation related to the detected problem.
- Returns:
- The deployment ID of the CodeDeploy-based observation related to the detected problem.
-
codeDeployDeploymentGroup
The deployment group to which the CodeDeploy deployment belongs.
- Returns:
- The deployment group to which the CodeDeploy deployment belongs.
-
codeDeployState
The status of the CodeDeploy deployment, for example
SUCCESS
orFAILURE
.- Returns:
- The status of the CodeDeploy deployment, for example
SUCCESS
orFAILURE
.
-
codeDeployApplication
The CodeDeploy application to which the deployment belongs.
- Returns:
- The CodeDeploy application to which the deployment belongs.
-
codeDeployInstanceGroupId
The instance group to which the CodeDeploy instance belongs.
- Returns:
- The instance group to which the CodeDeploy instance belongs.
-
ec2State
The state of the instance, such as
STOPPING
orTERMINATING
.- Returns:
- The state of the instance, such as
STOPPING
orTERMINATING
.
-
rdsEventCategories
The category of an RDS event.
- Returns:
- The category of an RDS event.
-
rdsEventMessage
The message of an RDS event.
- Returns:
- The message of an RDS event.
-
s3EventName
The name of the S3 CloudWatch Event-based observation.
- Returns:
- The name of the S3 CloudWatch Event-based observation.
-
statesExecutionArn
The Amazon Resource Name (ARN) of the step function execution-based observation.
- Returns:
- The Amazon Resource Name (ARN) of the step function execution-based observation.
-
statesArn
The Amazon Resource Name (ARN) of the step function-based observation.
- Returns:
- The Amazon Resource Name (ARN) of the step function-based observation.
-
statesStatus
The status of the step function-related observation.
- Returns:
- The status of the step function-related observation.
-
statesInput
The input to the step function-based observation.
- Returns:
- The input to the step function-based observation.
-
ebsEvent
The type of EBS CloudWatch event, such as
createVolume
,deleteVolume
orattachVolume
.- Returns:
- The type of EBS CloudWatch event, such as
createVolume
,deleteVolume
orattachVolume
.
-
ebsResult
The result of an EBS CloudWatch event, such as
failed
orsucceeded
.- Returns:
- The result of an EBS CloudWatch event, such as
failed
orsucceeded
.
-
ebsCause
The cause of an EBS CloudWatch event.
- Returns:
- The cause of an EBS CloudWatch event.
-
ebsRequestId
The request ID of an EBS CloudWatch event.
- Returns:
- The request ID of an EBS CloudWatch event.
-
xRayFaultPercent
The X-Ray request fault percentage for this node.
- Returns:
- The X-Ray request fault percentage for this node.
-
xRayThrottlePercent
The X-Ray request throttle percentage for this node.
- Returns:
- The X-Ray request throttle percentage for this node.
-
xRayErrorPercent
The X-Ray request error percentage for this node.
- Returns:
- The X-Ray request error percentage for this node.
-
xRayRequestCount
The X-Ray request count for this node.
- Returns:
- The X-Ray request count for this node.
-
xRayRequestAverageLatency
The X-Ray node request average latency for this node.
- Returns:
- The X-Ray node request average latency for this node.
-
xRayNodeName
The name of the X-Ray node.
- Returns:
- The name of the X-Ray node.
-
xRayNodeType
The type of the X-Ray node.
- Returns:
- The type of the X-Ray node.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Observation.Builder,
Observation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-