Reading from Datadog entities
Prerequisites
A Datadog Object you would like to read from. Refer the supported entities table below to check the available entities.
Supported entities
| Entity | Can be Filtered | Supports Limit | Supports Order By | Supports Select * | Supports Partitioning |
|---|---|---|---|---|---|
|
Metrics Timeseries |
Yes | No | No | Yes | No |
|
Log Queries |
Yes | Yes | Yes | Yes | No |
Example
Datadog_read = glueContext.create_dynamic_frame.from_options( connection_type="datadog", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "log-queries", "API_VERSION": "v2", "INSTANCE_URL": "https://api.datadoghq.com", "FILTER_PREDICATE": "from = `2023-10-03T09:00:26Z`" }
Datadog entity and field details
| Entity | Field | Data Type | Supported Operators |
|---|---|---|---|
| Metrics Timeseries | error | String | NA |
| aggr | String | NA | |
| attributes | Struct | NA | |
| display_name | String | NA | |
| end | DateTime | NA | |
| expression | String | NA | |
| interval | Integer | NA | |
| length | Integer | NA | |
| metric | String | NA | |
| pointlist | List | NA | |
| query_index | Integer | NA | |
| scope | String | NA | |
| start | DateTime | NA | |
| tag_set | List | NA | |
| unit | Struct | NA | |
| from_to_date | DateTime | BETWEEN | |
| query | String | EQUAL_TO | |
| status | String | NA | |
| type | String | NA | |
| host | String | NA | |
| Log Queries | id | String | NA |
| attributes | Struct | NA | |
| timestamp | DateTime | NA | |
| type | String | NA | |
| from | DateTime | BETWEEN,EQUAL_TO | |
| indexes | List | EQUAL_TO | |
| storage_tier | String | EQUAL_TO | |
| query | String | EQUAL_TO |