Monitors

Integrate monitoring and alerting into orchestration, CI/CD, and observability workflows so teams can react faster and automate responses to data issues.

The Monitors API provides the building blocks to manage monitor discovery, execution, and results retrieval across assets and tenants.

Get Monitor History

get

Get a monitor's test result history in reverse chronological order (most recent first). For Schema Drift and Job Failure monitors, the endpoint returns only failing test results (i.e. when an incident is present). For all other monitor types, it returns the full history of results.

Query parameters
monitor_idinteger · min: 1Required

Unique identifier of the monitor

pageinteger · min: 1OptionalDefault: 1
page_sizeinteger · min: 10 · max: 1000OptionalDefault: 10
Responses
200

Successful Response

application/json
get
GET /api/v1/data/monitors/history?monitor_id=1 HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
{
  "data": [
    {
      "status": "running",
      "period": "2025-08-21T00:03:03.849Z",
      "detail": {
        "value": 1,
        "test_type": "text",
        "metric_name": "text"
      },
      "case_id": 1,
      "incident_id": 1
    }
  ]
}

Post Trigger On Demand Monitor

post

Trigger an on-demand run for a monitor. Returns a UUID that can be used to track the execution status. Only one on-demand run can be active at a time per monitor. The monitor must be of a supported type (mode = on_demand) and cannot be a schema drift or job failure monitor.

Body
monitor_idinteger · min: 1Required

Unique identifier of the monitor

Responses
200

Successful Response

application/json
post
POST /api/v1/data/monitors/trigger HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "monitor_id": 1
}
{
  "job_id": "123e4567-e89b-12d3-a456-426614174000"
}

Get Monitor Run Status

get

Get the status of an on-demand monitor run. Returns the current status of the run and, if completed, the corresponding test result.

Query parameters
job_idstring · uuidRequired

Unique identifier of monitor run

Responses
200

Successful Response

application/json
get
GET /api/v1/data/monitors/status?job_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
{
  "status": "running",
  "result": {
    "status": "running",
    "period": "2025-08-21T00:03:03.849Z",
    "detail": {
      "value": 1,
      "test_type": "text",
      "metric_name": "text"
    },
    "case_id": 1,
    "incident_id": 1
  }
}

Last updated