

# Anomaly
<a name="API_Anomaly"></a>

 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. 

## Contents
<a name="API_Anomaly_Contents"></a>

 ** instances **   <a name="profiler-Type-Anomaly-instances"></a>
 A list of the instances of the detected anomalies during the requested period.   
Type: Array of [AnomalyInstance](API_AnomalyInstance.md) objects  
Required: Yes

 ** metric **   <a name="profiler-Type-Anomaly-metric"></a>
 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.   
Type: [Metric](API_Metric.md) object  
Required: Yes

 ** reason **   <a name="profiler-Type-Anomaly-reason"></a>
The reason for which metric was flagged as anomalous.  
Type: String  
Required: Yes

## See Also
<a name="API_Anomaly_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/codeguruprofiler-2019-07-18/Anomaly) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codeguruprofiler-2019-07-18/Anomaly) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codeguruprofiler-2019-07-18/Anomaly) 