sql-views
POST
https://lucidace.com /v1/projects/{project_id}/sql-views/{id}/resume Scope insight:writeLift a suspension (P-M22): the failure streak resets and the view refreshes on the next tick.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/sql-views/{id}/resume"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"block_on_failed_checks": true,
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"id": "string",
"incremental_column": "string",
"incremental_lookback_minutes": 0,
"last_error": "string",
"materialized": true,
"name": "string",
"query": "string",
"refresh_minutes": 0,
"refreshed_at": "2024-01-01T00:00:00Z",
"snapshot_columns": [
"string"
],
"stored_columns": [
[
"string"
]
],
"stored_rows": 0,
"suspend_after": 0,
"suspend_reason": "string",
"suspended_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
block_on_failed_checksbooleanrequiredA refresh whose error-severity checks fail is not published (write-audit-publish).
consecutive_failuresintegerrequiredFailed refreshes in a row (P-M22); a success resets it.
created_atstringrequireddescriptionstringrequiredidstringrequiredincremental_columnstringColumn a refresh appends past (incremental view); null = full refresh every time.
incremental_lookback_minutesintegerrequiredMinutes below the watermark an incremental refresh re-reads to pick up late rows (G255); 0 = none.
last_errorstringmaterializedbooleanrequirednamestringrequiredquerystringrequiredrefresh_minutesintegerMinutes between scheduled refreshes of a materialized view; null = manual only.
refreshed_atstringsnapshot_columnsarrayColumn names of the last snapshot.
stored_columnsarray[[name, type], ..] of the stored version.stored_rowsintegerRows of the published ClickHouse-stored version (no row cap).
suspend_afterintegerFailures in a row that suspend the schedule; null = the server default.
suspend_reasonstringsuspended_atstringSet when the schedule was suspended after repeated failures; resume clears it.
updated_atstringrequired403
404
GET
https://lucidace.com /v1/projects/{project_id}/sql-views/{id}/runs Scope insight:readRefresh history of one view, newest first.
Parameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/sql-views/{id}/runs"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"error": "string",
"failed_checks": [
"string"
],
"finished_at": "2024-01-01T00:00:00Z",
"id": "string",
"mode": "string",
"rows_written": 0,
"started_at": "2024-01-01T00:00:00Z",
"status": "string",
"version": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
errorstringfailed_checksstring[]requiredNames of the error-severity checks that blocked the run.
finished_atstringrequiredidstringrequiredmodestringrequiredfull | incrementalrows_writtenintegerrequiredstarted_atstringrequiredstatusstringrequiredpublished | blocked | failedversionintegernext_cursorstring404
Updated