API reference / Operations by tag
data-health
Operations tagged data-health.
7 operations. Base URL https://api.metrixed.com/v1; see authentication, errors and pagination.
Operations
| Method | Path | Summary |
|---|---|---|
| GET | /data-health | Data health: every check with its last result (status, compared, open discrepancies, repaired, consecutive failures) |
| GET | /data-health/checks/{key} | One data health check: latest discrepancies with sample ids, recent results, repairs |
| GET | /data-health/repairs | Recent data health repairs (automatic and operator-confirmed) with before / after |
| POST | /data-health/repairs | Request an operator-confirmed repair of a check's discrepancies (422 not_repairable for source-data checks; 409 repair_pending) |
| POST | /data-health/run | Queue a manual data health run over the last 1-35 days (409 run_pending while one is queued or running) |
| GET | /data-health/runs | Recent data health runs |
| GET | /data-health/summary | Data health badge: ok | issues | never and when every check last ran (staff who can read reports) |
GET /data-health
Data health: every check with its last result (status, compared, open discrepancies, repaired, consecutive failures)
Operation getDataHealth. Auth: API key (Bearer) or session cookie.
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json DataHealthOverview |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/data-health' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"status": "",
"verified_at": "1970-01-01T00:00:00.000Z",
"failing": 0,
"checks": [
{}
]
}
GET /data-health/checks/{key}
One data health check: latest discrepancies with sample ids, recent results, repairs
Operation getDataHealthChecksKey. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
key | path | string | yes | |
limit | query | integer | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json DataHealthCheckDetail |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/data-health/checks/<key>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"check": {},
"discrepancies": [
{}
],
"results": [
{}
],
"repairs": [
{}
]
}
GET /data-health/repairs
Recent data health repairs (automatic and operator-confirmed) with before / after
Operation getDataHealthRepairs. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
check | query | string | no | |
limit | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json DataHealthRepairList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/data-health/repairs' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
]
}
POST /data-health/repairs
Request an operator-confirmed repair of a check's discrepancies (422 not_repairable for source-data checks; 409 repair_pending)
Operation postDataHealthRepairs. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): DataHealthRepairRequest
| Field | Type | Flags | Description |
|---|---|---|---|
check | string | required | |
discrepancies | array of string | ||
all | boolean | ||
reason | string |
| Status | Description | Body |
|---|---|---|
| 202 | ok | application/json DataHealthQueued |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/data-health/repairs' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"check":""}'
Example 202 response:
{
"id": "",
"status": "",
"check": "",
"window_from": ""
}
POST /data-health/run
Queue a manual data health run over the last 1-35 days (409 run_pending while one is queued or running)
Operation postDataHealthRun. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): DataHealthRunRequest
| Field | Type | Flags | Description |
|---|---|---|---|
days | integer |
| Status | Description | Body |
|---|---|---|
| 202 | ok | application/json DataHealthQueued |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/data-health/run' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"days":0}'
Example 202 response:
{
"id": "",
"status": "",
"check": "",
"window_from": ""
}
GET /data-health/runs
Recent data health runs
Operation getDataHealthRuns. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json DataHealthRunList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/data-health/runs' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
]
}
GET /data-health/summary
Data health badge: ok | issues | never and when every check last ran (staff who can read reports)
Operation getDataHealthSummary. Auth: API key (Bearer) or session cookie.
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json DataHealthSummary |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/data-health/summary' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"status": "",
"verified_at": "1970-01-01T00:00:00.000Z",
"failing": 0,
"checks": 0
}