

# CostAnomalyDetectedQuery
<a name="API_bcmDashboards_CostAnomalyDetectedQuery"></a>

Defines the parameters for retrieving detected Amazon cost anomalies. Anomaly widgets display cost anomalies identified by Amazon Cost Anomaly Detection, including their cost impact and severity. Supports an anomaly date range and optional filtering by anomaly dimensions.

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

 ** timeRange **   <a name="awscostmanagement-Type-bcmDashboards_CostAnomalyDetectedQuery-timeRange"></a>
The anomaly date range for which to retrieve detected anomalies. Can be specified as absolute dates or relative time periods.  
Type: [DateTimeRange](API_bcmDashboards_DateTimeRange.md) object  
Required: Yes

 ** filter **   <a name="awscostmanagement-Type-bcmDashboards_CostAnomalyDetectedQuery-filter"></a>
The filter expression to apply to detected anomalies. Supports filtering by anomaly dimensions such as `SEVERITY`, `ASSESSMENT`, `MONITOR_TYPE`, and `ANOMALY_ID`.  
Type: [Expression](API_bcmDashboards_Expression.md) object  
Required: No

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/bcm-dashboards-2025-08-18/CostAnomalyDetectedQuery) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/bcm-dashboards-2025-08-18/CostAnomalyDetectedQuery) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/bcm-dashboards-2025-08-18/CostAnomalyDetectedQuery) 