@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Anomaly extends Object implements Serializable, Cloneable, StructuredPojo
Details about an anomaly in a specific metric of application profile. The anomaly is detected using analysis of the metric data over a period of time.
Constructor and Description |
---|
Anomaly() |
Modifier and Type | Method and Description |
---|---|
Anomaly |
clone() |
boolean |
equals(Object obj) |
List<AnomalyInstance> |
getInstances()
A list of the instances of the detected anomalies during the requested period.
|
Metric |
getMetric()
Details about the metric that the analysis used when it detected the anomaly.
|
String |
getReason()
The reason for which metric was flagged as anomalous.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
|
void |
setMetric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly.
|
void |
setReason(String reason)
The reason for which metric was flagged as anomalous.
|
String |
toString()
Returns a string representation of this object.
|
Anomaly |
withInstances(AnomalyInstance... instances)
A list of the instances of the detected anomalies during the requested period.
|
Anomaly |
withInstances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
|
Anomaly |
withMetric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly.
|
Anomaly |
withReason(String reason)
The reason for which metric was flagged as anomalous.
|
public List<AnomalyInstance> getInstances()
A list of the instances of the detected anomalies during the requested period.
public void setInstances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
instances
- A list of the instances of the detected anomalies during the requested period.public Anomaly withInstances(AnomalyInstance... instances)
A list of the instances of the detected anomalies during the requested period.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- A list of the instances of the detected anomalies during the requested period.public Anomaly withInstances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
instances
- A list of the instances of the detected anomalies during the requested period.public void setMetric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
metric
- Details about the metric that the analysis used when it detected the anomaly. The metric includes the name
of the frame that was analyzed with the type and thread states used to derive the metric value for that
frame.public Metric getMetric()
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
public Anomaly withMetric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
metric
- Details about the metric that the analysis used when it detected the anomaly. The metric includes the name
of the frame that was analyzed with the type and thread states used to derive the metric value for that
frame.public void setReason(String reason)
The reason for which metric was flagged as anomalous.
reason
- The reason for which metric was flagged as anomalous.public String getReason()
The reason for which metric was flagged as anomalous.
public Anomaly withReason(String reason)
The reason for which metric was flagged as anomalous.
reason
- The reason for which metric was flagged as anomalous.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.