v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Metrics

Related Assets to a Metric

Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours.

get/api/v2/metrics/{metric_name}/assets

Path parameters

metric_namestring required

The name of the metric.

Response

Success

Example response

{
  "data": {
    "id": "test.metric.latency",
    "relationships": {
      "dashboards": {
        "data": [
          {
            "id": "xxx-yyy-zzz",
            "type": "dashboards"
          }
        ]
      },
      "monitors": {
        "data": [
          {
            "id": "1775073",
            "type": "monitors"
          }
        ]
      },
      "notebooks": {
        "data": [
          {
            "id": "12345",
            "type": "notebooks"
          }
        ]
      },
      "slos": {
        "data": [
          {
            "id": "9ffef113b389520db54391d67d652dfb",
            "type": "slos"
          }
        ]
      }
    },
    "type": "metrics"
  },
  "included": [
    {
      "attributes": {
        "tags": [
          "env",
          "service",
          "host",
          "datacenter"
        ]
      },
      "id": "xxx-yyy-zzz",
      "type": "dashboards"
    }
  ]
}