---
title: Costexplorer Anomaly Monitor
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Costexplorer Anomaly Monitor
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Costexplorer Anomaly Monitor

This table represents the Costexplorer Anomaly Monitor resource from Amazon Web Services.

```
aws.costexplorer_anomalymonitor
```

## Fields

| Title                   | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Description |
| ----------------------- | ---- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                    | core | string     |
| account_id              | core | string     |
| creation_date           | core | string     | The date when the monitor was created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| dimensional_value_count | core | int64      | The value for evaluated dimensions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| last_evaluated_date     | core | string     | The date when the monitor last evaluated for anomalies.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| last_updated_date       | core | string     | The date when the monitor was last updated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| monitor_arn             | core | string     | The Amazon Resource Name (ARN) value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| monitor_dimension       | core | string     | For customer managed monitors, do not specify this field. For Amazon Web Services managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For <code>TAG</code> and <code>COST_CATEGORY </code> dimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| monitor_name            | core | string     | The name of the monitor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| monitor_specification   | core | json       | An <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html">Expression</a> object used to control what costs the monitor analyzes for anomalies. For Amazon Web Services managed monitors: <ul> <li> If MonitorDimension is <code>SERVICE</code> or <code>LINKED_ACCOUNT</code>, do not specify this field </li> <li> If MonitorDimension is <code>TAG</code>, set this field to <code>{ "Tags": { "Key": "your tag key" } }</code> </li> <li> If MonitorDimension is <code>COST_CATEGORY</code>, set this field to <code>{ "CostCategories": { "Key": "your cost category key" } }</code> </li> </ul> For customer managed monitors: <ul> <li> To track linked accounts, set this field to <code>{ "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": [ "your list of up to 10 account IDs" ] } } </code> </li> <li> To track cost allocation tags, set this field to <code>{ "Tags": { "Key": "your tag key", "Values": [ "your list of up to 10 tag values" ] } } </code> </li> <li> To track cost categories, set this field to<code>{ "CostCategories": { "Key": "your cost category key", "Values": [ "your cost category value" ] } } </code> </li> </ul> |
| monitor_type            | core | string     | The type of the monitor. Set this to <code>DIMENSIONAL</code> for an Amazon Web Services managed monitor. Amazon Web Services managed monitors automatically track up to the top 5,000 values by cost within a dimension of your choosing. Each dimension value is evaluated independently. If you start incurring cost in a new value of your chosen dimension, it will automatically be analyzed by an Amazon Web Services managed monitor. Set this to <code>CUSTOM</code> for a customer managed monitor. Customer managed monitors let you select specific dimension values that get monitored in aggregate. For more information about monitor types, see <a href="https://docs.aws.amazon.com/cost-management/latest/userguide/getting-started-ad.html#monitor-type-def">Monitor types</a> in the <i>Billing and Cost Management User Guide</i>.                                                                                                                                                                                                                                                                                                                                                   |
| tags                    | core | hstore_csv |
