Class Observation

    • Method Detail

      • id

        public final String id()

        The ID of the observation type.

        Returns:
        The ID of the observation type.
      • startTime

        public final Instant 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

        public final Instant endTime()

        The time when the observation ended, in epoch seconds.

        Returns:
        The time when the observation ended, in epoch seconds.
      • sourceType

        public final String sourceType()

        The source type of the observation.

        Returns:
        The source type of the observation.
      • sourceARN

        public final String sourceARN()

        The source resource ARN of the observation.

        Returns:
        The source resource ARN of the observation.
      • logGroup

        public final String logGroup()

        The log group name.

        Returns:
        The log group name.
      • lineTime

        public final Instant 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

        public final String logText()

        The log text of the observation.

        Returns:
        The log text of the observation.
      • logFilterAsString

        public final String 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 return LogFilter.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from logFilterAsString().

        Returns:
        The log filter of the observation.
        See Also:
        LogFilter
      • metricNamespace

        public final String metricNamespace()

        The namespace of the observation metric.

        Returns:
        The namespace of the observation metric.
      • metricName

        public final String metricName()

        The name of the observation metric.

        Returns:
        The name of the observation metric.
      • unit

        public final String unit()

        The unit of the source observation metric.

        Returns:
        The unit of the source observation metric.
      • value

        public final Double value()

        The value of the source observation metric.

        Returns:
        The value of the source observation metric.
      • cloudWatchEventId

        public final String 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.
      • cloudWatchEventDetailType

        public final String 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

        public final String 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

        public final String 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

        public final String 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

        public final String healthEventTypeCategory()

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

        Returns:
        The category of the AWS Health event, such as issue.
      • healthEventDescription

        public final String 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

        public final String 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

        public final String codeDeployDeploymentGroup()

        The deployment group to which the CodeDeploy deployment belongs.

        Returns:
        The deployment group to which the CodeDeploy deployment belongs.
      • codeDeployState

        public final String codeDeployState()

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

        Returns:
        The status of the CodeDeploy deployment, for example SUCCESS or FAILURE.
      • codeDeployApplication

        public final String codeDeployApplication()

        The CodeDeploy application to which the deployment belongs.

        Returns:
        The CodeDeploy application to which the deployment belongs.
      • codeDeployInstanceGroupId

        public final String codeDeployInstanceGroupId()

        The instance group to which the CodeDeploy instance belongs.

        Returns:
        The instance group to which the CodeDeploy instance belongs.
      • ec2State

        public final String ec2State()

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

        Returns:
        The state of the instance, such as STOPPING or TERMINATING.
      • rdsEventCategories

        public final String rdsEventCategories()

        The category of an RDS event.

        Returns:
        The category of an RDS event.
      • rdsEventMessage

        public final String rdsEventMessage()

        The message of an RDS event.

        Returns:
        The message of an RDS event.
      • s3EventName

        public final String s3EventName()

        The name of the S3 CloudWatch Event-based observation.

        Returns:
        The name of the S3 CloudWatch Event-based observation.
      • statesExecutionArn

        public final String 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

        public final String 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

        public final String statesStatus()

        The status of the step function-related observation.

        Returns:
        The status of the step function-related observation.
      • statesInput

        public final String statesInput()

        The input to the step function-based observation.

        Returns:
        The input to the step function-based observation.
      • ebsEvent

        public final String ebsEvent()

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

        Returns:
        The type of EBS CloudWatch event, such as createVolume, deleteVolume or attachVolume.
      • ebsResult

        public final String ebsResult()

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

        Returns:
        The result of an EBS CloudWatch event, such as failed or succeeded.
      • ebsCause

        public final String ebsCause()

        The cause of an EBS CloudWatch event.

        Returns:
        The cause of an EBS CloudWatch event.
      • ebsRequestId

        public final String ebsRequestId()

        The request ID of an EBS CloudWatch event.

        Returns:
        The request ID of an EBS CloudWatch event.
      • xRayFaultPercent

        public final Integer xRayFaultPercent()

        The X-Ray request fault percentage for this node.

        Returns:
        The X-Ray request fault percentage for this node.
      • xRayThrottlePercent

        public final Integer xRayThrottlePercent()

        The X-Ray request throttle percentage for this node.

        Returns:
        The X-Ray request throttle percentage for this node.
      • xRayErrorPercent

        public final Integer xRayErrorPercent()

        The X-Ray request error percentage for this node.

        Returns:
        The X-Ray request error percentage for this node.
      • xRayRequestCount

        public final Integer xRayRequestCount()

        The X-Ray request count for this node.

        Returns:
        The X-Ray request count for this node.
      • xRayRequestAverageLatency

        public final Long xRayRequestAverageLatency()

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

        Returns:
        The X-Ray node request average latency for this node.
      • xRayNodeName

        public final String xRayNodeName()

        The name of the X-Ray node.

        Returns:
        The name of the X-Ray node.
      • xRayNodeType

        public final String xRayNodeType()

        The type of the X-Ray node.

        Returns:
        The type of the X-Ray node.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)