anomalies
Creates, updates, deletes, gets or lists an anomalies resource.
Overview
| Name | anomalies |
| Type | Resource |
| Id | aws.ce.anomalies |
Fields
The following fields are returned by SELECT queries:
- get_anomalies
| Name | Datatype | Description |
|---|---|---|
anomaly_end_date | string | The last day the anomaly is detected. (pattern: <code>(\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?</code>) |
anomaly_id | string | The unique identifier for the anomaly. (pattern: <code>[\S\s]*</code>) |
anomaly_score | object | The latest and maximum score for the anomaly. |
anomaly_start_date | string | The first day the anomaly is detected. (pattern: <code>(\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}:\d{2}Z)?</code>) |
dimension_value | string | The dimension for the anomaly (for example, an Amazon Web Services service in a service monitor). (pattern: <code>[\S\s]*</code>) |
feedback | string | The feedback value. (YES, NO, PLANNED_ACTIVITY) |
impact | object | The dollar impact for the anomaly. |
monitor_arn | string | The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly. (pattern: <code>[\S\s]*</code>) |
root_causes | array | The list of identified root causes for the anomaly. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_anomalies | select | region | Retrieves all of the cost anomalies detected on your account during the time period that's specified by the DateInterval object. Anomalies are available for up to 90 days. | |
provide_anomaly_feedback | exec | region, AnomalyId | Modifies the feedback property of a given cost anomaly. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_anomalies
Retrieves all of the cost anomalies detected on your account during the time period that's specified by the DateInterval object. Anomalies are available for up to 90 days.
SELECT
anomaly_end_date,
anomaly_id,
anomaly_score,
anomaly_start_date,
dimension_value,
feedback,
impact,
monitor_arn,
root_causes
FROM aws.ce.anomalies
WHERE region = '{{ region }}' -- required
;
Lifecycle Methods
- provide_anomaly_feedback
Modifies the feedback property of a given cost anomaly.
EXEC aws.ce.anomalies.provide_anomaly_feedback
@region='{{ region }}' --required
@@json=
'{
"AnomalyId": "{{ AnomalyId }}",
"Feedback": "{{ Feedback }}"
}'
;