sql-views

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-sql-views"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/399d3698-f6ab-417b-abfb-12dc3af58064/social-card.svg?v=3e7ae33eec8b" alt="sql-views" width="600" height="315"></a>
POSThttps://lucidace.com/v1/projects/{project_id}/sql-views/{id}/resumeScope insight:write

Lift a suspension (P-M22): the failure streak resets and the view refreshes on the next tick.

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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_checksbooleanrequired
A refresh whose error-severity checks fail is not published (write-audit-publish).
consecutive_failuresintegerrequired
Failed refreshes in a row (P-M22); a success resets it.
created_atstringrequired
descriptionstringrequired
idstringrequired
incremental_columnstring
Column a refresh appends past (incremental view); null = full refresh every time.
incremental_lookback_minutesintegerrequired
Minutes below the watermark an incremental refresh re-reads to pick up late rows (G255); 0 = none.
last_errorstring
materializedbooleanrequired
namestringrequired
querystringrequired
refresh_minutesinteger
Minutes between scheduled refreshes of a materialized view; null = manual only.
refreshed_atstring
snapshot_columnsarray
Column names of the last snapshot.
stored_columnsarray
[[name, type], ..] of the stored version.
stored_rowsinteger
Rows of the published ClickHouse-stored version (no row cap).
suspend_afterinteger
Failures in a row that suspend the schedule; null = the server default.
suspend_reasonstring
suspended_atstring
Set when the schedule was suspended after repeated failures; resume clears it.
updated_atstringrequired
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/sql-views/{id}/runsScope insight:read

Refresh history of one view, newest first.

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
errorstring
failed_checksstring[]required
Names of the error-severity checks that blocked the run.
finished_atstringrequired
idstringrequired
modestringrequired
full | incremental
rows_writtenintegerrequired
started_atstringrequired
statusstringrequired
published | blocked | failed
versioninteger
next_cursorstring
404
Updated