---
title: "Returns time-series data for a monitor's metric, suitable for graphing."
method: GET
path: "/tracer/user-alerts/{id}/graph/"
tags: ["tracer"]
---

# Returns time-series data for a monitor's metric, suitable for graphing.

`GET /tracer/user-alerts/{id}/graph/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/tracer/user-alerts/{id}/graph/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Accepts `start_date` and `end_date` query parameters (ISO 8601 format).
If not provided, it defaults to the last 7 days.

## Response `200`

OK

- UserAlertMonitorGraphResponse
  - `status` boolean
  - `result` object, required: Static monitors return an array of graph points; percentage-change monitors return graph_data and alert_bar_data arrays.
    - `graph_data` object[], required
      - `timestamp` string, required
      - `value` number, required
    - `alert_bar_data` object[], required
      - `start_timestamp` string, required
      - `end_timestamp` string, required
      - `status` 'healthy' | 'warning' | 'critical' | 'insufficient_data', required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `503`: Service Unavailable
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
