Class EvidenceMeasurement
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanTrue when the expectation came from a newly learned, still-thin baseline, so the comparison is less reliable than usual.static EvidenceMeasurement.Builderbuilder()final DoubleThe value observed in this window.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final DoubleLower bound of the expected range.final DoubleUpper bound of the expected range.final DoubleThe point prediction.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerMinutes 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.final Stringquantity()What was measured.final IntegerHow 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.static Class<? extends EvidenceMeasurement.Builder> final StringHow the quantity was aggregated, as a CloudWatch statistic name — "Sum", "Average", "Maximum", "Minimum", "SampleCount" or a percentile.final DoubleThe value the comparison had to cross for this detector to fire, in the same unit as currentValue.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringTransform applied before comparison.final Stringunit()Unit of currentValue, expectedValue, expectedLower and expectedUpper.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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
Transform applied before comparison. Absent when the raw value was compared.
- Returns:
- Transform applied before comparison. Absent when the raw value was compared.
-
currentValue
The value observed in this window.
- Returns:
- The value observed in this window.
-
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
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
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
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
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
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<EvidenceMeasurement.Builder,EvidenceMeasurement> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-