related_assets
Creates, updates, deletes, gets or lists a related_assets resource.
Overview
| Name | related_assets |
| Type | Resource |
| Id | datadog.metrics.related_assets |
Fields
The following fields are returned by SELECT queries:
- list_metric_assets
| Name | Datatype | Description |
|---|---|---|
id | string | The metric name for this resource. (example: test.metric.latency) |
relationships | object | Relationships to assets related to the metric. |
type | string | The metric resource type. (metrics) (default: metrics, example: metrics) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_metric_assets | select | metric_name | Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours. |
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 |
|---|---|---|
metric_name | string | The name of the metric. (example: dist.http.endpoint.request) |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
SELECT examples
- list_metric_assets
Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours.
SELECT
id,
relationships,
type
FROM datadog.metrics.related_assets
WHERE metric_name = '{{ metric_name }}' -- required
;