Class Anomaly
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Anomaly.Builder,Anomaly>
This data type is part of Observations, which is in preview release for Amazon CloudWatch Omni and is subject to change.
An anomaly detected for a monitored service.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe unique identifier of the anomaly episode.final StringThe analyzer-specific classification of what kind of anomaly this is.static Anomaly.Builderbuilder()final StringCloud provider from the topology node identity (e.g.final StringA human-readable description of the detected behavior.details()Arbitrary key-value details.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Up to 100 timestamped per-occurrence samples.final InstantTimestamp of the first occurrence in this episode, serialized as epoch seconds.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Details property.final booleanFor responses, this returns true if the service returned a value for the EvidenceSamples property.final inthashCode()final InstantTimestamp of the most recent occurrence in this episode, serialized as epoch seconds.final StringnodeId()Topology graph node ID resolved at write time.final NodeTypenodeType()Whether the node is a service, a resource, or a remote service.final StringWhether the node is a service, a resource, or a remote service.final IntegerTotal occurrences merged into this anomaly episode.static Class<? extends Anomaly.Builder> final Stringservice()The monitored service the anomaly was detected on.final Severityseverity()The severity of the anomaly as most recently evaluated.final StringThe severity of the anomaly as most recently evaluated.final AnomalySignalTypeThe kind of telemetry signal the anomaly was detected in.final StringThe kind of telemetry signal the anomaly was detected in.final StringAccount that produced the signal (may differ from owner for centralized monitoring).final StringRegion where the source signal was produced.final Stringtitle()Short human-readable label assigned by the analyzer.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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
anomalyId
The unique identifier of the anomaly episode.
- Returns:
- The unique identifier of the anomaly episode.
-
service
The monitored service the anomaly was detected on.
- Returns:
- The monitored service the anomaly was detected on.
-
signalType
The kind of telemetry signal the anomaly was detected in.
If the service returns an enum value that is not available in the current SDK version,
signalTypewill returnAnomalySignalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsignalTypeAsString().- Returns:
- The kind of telemetry signal the anomaly was detected in.
- See Also:
-
signalTypeAsString
The kind of telemetry signal the anomaly was detected in.
If the service returns an enum value that is not available in the current SDK version,
signalTypewill returnAnomalySignalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsignalTypeAsString().- Returns:
- The kind of telemetry signal the anomaly was detected in.
- See Also:
-
anomalyType
The analyzer-specific classification of what kind of anomaly this is.
- Returns:
- The analyzer-specific classification of what kind of anomaly this is.
-
severity
The severity of the anomaly as most recently evaluated.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- The severity of the anomaly as most recently evaluated.
- See Also:
-
severityAsString
The severity of the anomaly as most recently evaluated.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- The severity of the anomaly as most recently evaluated.
- See Also:
-
description
A human-readable description of the detected behavior. Sensitive customer content.
- Returns:
- A human-readable description of the detected behavior. Sensitive customer content.
-
lastSeenAt
Timestamp of the most recent occurrence in this episode, serialized as epoch seconds.
- Returns:
- Timestamp of the most recent occurrence in this episode, serialized as epoch seconds.
-
firstSeenAt
Timestamp of the first occurrence in this episode, serialized as epoch seconds.
- Returns:
- Timestamp of the first occurrence in this episode, serialized as epoch seconds.
-
hasDetails
public final boolean hasDetails()For responses, this returns true if the service returned a value for the Details property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
details
Arbitrary key-value details. Nested values are flattened to strings. Sensitive customer content.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDetails()method.- Returns:
- Arbitrary key-value details. Nested values are flattened to strings. Sensitive customer content.
-
title
Short human-readable label assigned by the analyzer. Sensitive customer content.
- Returns:
- Short human-readable label assigned by the analyzer. Sensitive customer content.
-
occurrenceCount
Total occurrences merged into this anomaly episode.
- Returns:
- Total occurrences merged into this anomaly episode.
-
sourceAccountId
Account that produced the signal (may differ from owner for centralized monitoring).
- Returns:
- Account that produced the signal (may differ from owner for centralized monitoring).
-
sourceRegion
Region where the source signal was produced.
- Returns:
- Region where the source signal was produced.
-
nodeId
Topology graph node ID resolved at write time. Absent when the topology resolver could not match the service to a graph node.
- Returns:
- Topology graph node ID resolved at write time. Absent when the topology resolver could not match the service to a graph node.
-
nodeType
Whether the node is a service, a resource, or a remote service.
If the service returns an enum value that is not available in the current SDK version,
nodeTypewill returnNodeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnodeTypeAsString().- Returns:
- Whether the node is a service, a resource, or a remote service.
- See Also:
-
nodeTypeAsString
Whether the node is a service, a resource, or a remote service.
If the service returns an enum value that is not available in the current SDK version,
nodeTypewill returnNodeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnodeTypeAsString().- Returns:
- Whether the node is a service, a resource, or a remote service.
- See Also:
-
cloudProvider
Cloud provider from the topology node identity (e.g. "aws", "azure").
- Returns:
- Cloud provider from the topology node identity (e.g. "aws", "azure").
-
hasEvidenceSamples
public final boolean hasEvidenceSamples()For responses, this returns true if the service returned a value for the EvidenceSamples property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
evidenceSamples
Up to 100 timestamped per-occurrence samples.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEvidenceSamples()method.- Returns:
- Up to 100 timestamped per-occurrence samples.
-
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<Anomaly.Builder,Anomaly> - 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.
-