Data Quality V2
Manage Data Quality V2 monitors, run checks on demand, and work cases and incidents from your own pipelines and tools
The Data Quality V2 API gives you programmatic access to the monitors, runs, cases, and incidents you work with in the Data Quality V2 module. Use it to manage monitors as code, run a check from your orchestrator the moment a load finishes, and move cases into the tools your team already triages in.
How the objects fit together
A monitor holds what you name and tag: its name, description, DQ dimension, custom attributes, and whether it's enabled. What the monitor actually checks — its type, asset, schedule, threshold, and scan method — lives in a configuration version. Each execution of that configuration is a run. A run that fails raises an incident, and Decube groups incidents into a case for you to triage.
Monitor
A check on a table, column, or source, and its descriptive properties
monitor_id
Configuration version
What the monitor checks and when. A destructive change creates a new version.
configuration_id
Run
One execution of a configuration version, either scheduled or triggered on demand
run_id
Incident
One failed run, with the evidence Decube measured and a debug query
incident_id
Case
The incidents from one configuration version, grouped until you close the case
case_id
A few relationships shape how you call the API:
One active version per monitor. Endpoints that accept
configuration_idreturn the active version when you leave it out. Pass it to read an earlier version.Runs and cases belong to a version. When a destructive change creates a new version, run history and cases start fresh on that version. The earlier ones stay reachable through the old
configuration_id.One open case per version. A failed run joins the open case for its configuration version. Once you close that case, the next failure opens a new one.
Conventions
These rules apply to every endpoint in this section:
IDs are query parameters, not path segments. For example,
GET /data_quality/monitors/details?monitor_id=123.Request bodies are JSON. Send
Content-Type: application/jsonwith everyPOST,PUT, andPATCH.Percentages are decimals. Send
0.015for 1.5% and0.5for 50%.Decimal values come back as strings. Thresholds, percentage tolerances, and measured values such as averages return as strings, for example
"0.015", so no precision is lost. Requests accept either a number or a string.Timestamps are ISO 8601. Dates such as
incident_fromuseYYYY-MM-DD.Errors return HTTP
400. Treat any400as a failed request and read the response body for details.
Pagination
List and search endpoints take page_size (default 25, maximum 100) and page_number (default 1). The response returns items along with the page_number and page_size you requested, without a total count. Keep requesting the next page until a page returns fewer items than page_size.
Full and partial updates
Most update endpoints replace the whole object, so send every field — including the ones you're not changing. The safest pattern is to read the current object, change what you need, and send it back.
Update a case is the exception. It accepts a partial body: include a field, wrapped in a value object, to change it, and leave it out to keep its current value.
Quickstart
This example finds the monitors on one table, then fetches the full configuration of one of them.
Endpoints
In this section
MonitorsMonitor runsCases & incidentsExamplesMigrate from Monitors (classic)Last updated