insights

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-insights"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/779dd941-1d44-44e1-a1a0-2950ef8b9779/social-card.svg?v=3e7ae33eec8b" alt="insights" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/health-scoresScope insight:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/health-scores"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of HealthScoreRow, newest first
Example
{
  "data": [
    {
      "config": {},
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "description": "string",
      "id": "string",
      "name": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataHealthScoreRow[]required
Show child parameters
configobjectrequired
The health_score Query IR document (without kind).
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
namestringrequired
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/health-scoresScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
configobjectrequired
The health_score query without kind: signals (event, weight, target), window_days, entity, healthy_at, at_risk_at, environment.
descriptionstring
namestringrequired
{
  "config": {},
  "description": "string",
  "name": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/health-scores" \
  -H "Content-Type: application/json" \
  -d '{"config":{},"description":"string","name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "config": {},
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "description": "string",
  "id": "string",
  "name": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
configobjectrequired
The health_score Query IR document (without kind).
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
namestringrequired
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/health-scores/{id}Scope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
PUThttps://lucidace.com/v1/projects/{project_id}/health-scores/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
configobjectrequired
The health_score query without kind: signals (event, weight, target), window_days, entity, healthy_at, at_risk_at, environment.
descriptionstring
namestringrequired
{
  "config": {},
  "description": "string",
  "name": "string"
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}" \
  -H "Content-Type: application/json" \
  -d '{"config":{},"description":"string","name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/health-scores/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/health-scores/{id}/runScope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
entitystring
Only this entity's row (a person's distinct id or a group key), however large the population.
partstring
entities (default) or bands.
refreshboolean
{
  "entity": "string",
  "part": "string",
  "refresh": true
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}/run" \
  -H "Content-Type: application/json" \
  -d '{"entity":"string","part":"string","refresh":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "columns": [
    "string"
  ],
  "meta": {
    "bytes_read": 0,
    "cache_hit": true,
    "cache_key": "string",
    "clamped_range": true,
    "computed_at": "2024-01-01T00:00:00Z",
    "execution_ms": 0,
    "next_allowed_client_refresh": "2024-01-01T00:00:00Z",
    "rows_read": 0,
    "sampled": true,
    "sql_hash": "string"
  },
  "rows": [
    [
      {}
    ]
  ]
}
Schema
columnsstring[]required
metaobjectrequired
Show child parameters
bytes_readinteger
Bytes ClickHouse read, like rows_read.
cache_hitbooleanrequired
cache_keystringrequired
Stable hash of the cache key (project, SQL, timezone, canonical query).
clamped_rangebooleanrequired
computed_atstringrequired
When the result was computed (last_refresh).
execution_msinteger
Wall time of the ClickHouse call; None on a cache hit.
next_allowed_client_refreshstringrequired
Before this, refresh: "force_*" recomputes but the dashboards' auto refresh serves the cache.
rows_readinteger
Rows ClickHouse read (its X-ClickHouse-Summary header); None when not reported.
sampledbooleanrequired
sql_hashstringrequired
rowsobject[][]required
202
404
429
503
GEThttps://lucidace.com/v1/projects/{project_id}/insight-feedScope insight:read

Parameters

project_idstringpathrequired
include_dismissedbooleanquery
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/insight-feed"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of FeedItem, newest first
Example
{
  "data": [
    {
      "body": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "data": {},
      "dedupe_key": "string",
      "dismissed_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "kind": "string",
      "severity": "string",
      "title": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataFeedItem[]required
Show child parameters
bodystringrequired
created_atstringrequired
dataobjectrequired
dedupe_keystringrequired
dismissed_atstring
idstringrequired
kindstringrequired
severitystringrequired
info | warning | critical
titlestringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/insight-feedScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
bodystring
dataobject
dedupe_keystringrequired
Same key = same card (refreshed in place).
kindstringrequired
severitystring
info | warning | critical
titlestringrequired
{
  "body": "string",
  "data": {},
  "dedupe_key": "string",
  "kind": "string",
  "severity": "string",
  "title": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/insight-feed" \
  -H "Content-Type: application/json" \
  -d '{"body":"string","data":{},"dedupe_key":"string","kind":"string","severity":"string","title":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "body": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "data": {},
  "dedupe_key": "string",
  "dismissed_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "kind": "string",
  "severity": "string",
  "title": "string"
}
Schema
bodystringrequired
created_atstringrequired
dataobjectrequired
dedupe_keystringrequired
dismissed_atstring
idstringrequired
kindstringrequired
severitystringrequired
info | warning | critical
titlestringrequired
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/insight-feed/{id}/dismissScope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/insight-feed/{id}/dismiss"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
404

Updated