Class EvidenceMeasurement

java.lang.Object
software.amazon.awssdk.services.cloudwatchomni.model.EvidenceMeasurement
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<EvidenceMeasurement.Builder,EvidenceMeasurement>

@Generated("software.amazon.awssdk:codegen") public final class EvidenceMeasurement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvidenceMeasurement.Builder,EvidenceMeasurement>

This data type is part of Observations, which is in preview release for Amazon CloudWatch Omni and is subject to change.

What was measured in an evidence window, and how it compared to the expectation learned for it.

See Also:
  • Method Details

    • quantity

      public final String quantity()

      What was measured. Absent on a metric anomaly, where the anomaly itself already names the metric.

      Returns:
      What was measured. Absent on a metric anomaly, where the anomaly itself already names the metric.
    • statistic

      public final String statistic()

      How the quantity was aggregated, as a CloudWatch statistic name — "Sum", "Average", "Maximum", "Minimum", "SampleCount" or a percentile. Absent when nothing aggregated the figure in CloudWatch's sense, as on a derived error rate or request rate.

      Returns:
      How the quantity was aggregated, as a CloudWatch statistic name — "Sum", "Average", "Maximum", "Minimum", "SampleCount" or a percentile. Absent when nothing aggregated the figure in CloudWatch's sense, as on a derived error rate or request rate.
    • unit

      public final String unit()

      Unit of currentValue, expectedValue, expectedLower and expectedUpper. On a metric anomaly this is the unit CloudWatch published the metric as, so it is absent when the metric was published without one, and on a counted statistic, which has no unit.

      Returns:
      Unit of currentValue, expectedValue, expectedLower and expectedUpper. On a metric anomaly this is the unit CloudWatch published the metric as, so it is absent when the metric was published without one, and on a counted statistic, which has no unit.
    • transform

      public final String transform()

      Transform applied before comparison. Absent when the raw value was compared.

      Returns:
      Transform applied before comparison. Absent when the raw value was compared.
    • currentValue

      public final Double currentValue()

      The value observed in this window.

      Returns:
      The value observed in this window.
    • expectedValue

      public final Double expectedValue()

      The point prediction. Absent when the detector produces a band instead.

      Returns:
      The point prediction. Absent when the detector produces a band instead.
    • expectedLower

      public final Double expectedLower()

      Lower bound of the expected range. Absent when the detector produces a point prediction instead, or bounds only the other side.

      Returns:
      Lower bound of the expected range. Absent when the detector produces a point prediction instead, or bounds only the other side.
    • expectedUpper

      public final Double expectedUpper()

      Upper bound of the expected range. Absent when the detector produces a point prediction instead, or bounds only the other side.

      Returns:
      Upper bound of the expected range. Absent when the detector produces a point prediction instead, or bounds only the other side.
    • threshold

      public final Double threshold()

      The value the comparison had to cross for this detector to fire, in the same unit as currentValue. Distinct from expectedLower and expectedUpper, which describe the learned normal range: a detector can fire on a boundary it chose rather than on the edge of that range. Absent whenever the band itself was the boundary, which is every anomaly but a trace one today.

      Returns:
      The value the comparison had to cross for this detector to fire, in the same unit as currentValue. Distinct from expectedLower and expectedUpper, which describe the learned normal range: a detector can fire on a boundary it chose rather than on the edge of that range. Absent whenever the band itself was the boundary, which is every anomaly but a trace one today.
    • sampleCount

      public final Integer sampleCount()

      How many units the figures were computed over — calls for an error rate, turns for a per-turn quantity, events for a log count, buckets for a volume drop. A rate alone cannot distinguish 5 failures in 20 calls from 5 in 20,000.

      Returns:
      How many units the figures were computed over — calls for an error rate, turns for a per-turn quantity, events for a log count, buckets for a volume drop. A rate alone cannot distinguish 5 failures in 20 calls from 5 in 20,000.
    • periodMinutes

      public final Integer periodMinutes()

      Minutes the figures cover: the aggregation bucket width on most detectors, and the elapsed span of the episode so far on detectors that report running totals.

      Returns:
      Minutes the figures cover: the aggregation bucket width on most detectors, and the elapsed span of the episode so far on detectors that report running totals.
    • baselineIsNew

      public final Boolean baselineIsNew()

      True when the expectation came from a newly learned, still-thin baseline, so the comparison is less reliable than usual.

      Returns:
      True when the expectation came from a newly learned, still-thin baseline, so the comparison is less reliable than usual.
    • toBuilder

      public EvidenceMeasurement.Builder 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 interface ToCopyableBuilder<EvidenceMeasurement.Builder,EvidenceMeasurement>
      Returns:
      a builder for type T
    • builder

      public static EvidenceMeasurement.Builder builder()
    • serializableBuilderClass

      public static Class<? extends EvidenceMeasurement.Builder> serializableBuilderClass()
    • hashCode

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

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

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.