vision
GET
https://lucidace.com /v1/projects/{project_id}/vision/alerts Scope replay:readParameters
project_idstringpathrequiredscanner_idstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/alerts"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"auto_disable_after": 0,
"broken_reason": "string",
"channels": [
{}
],
"cooldown_minutes": 0,
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"failures": 0,
"id": "string",
"kind": "string",
"last_checked_at": "2024-01-01T00:00:00Z",
"last_fired_at": "2024-01-01T00:00:00Z",
"last_value": 0,
"metric": "string",
"name": "string",
"of_checks": 0,
"op": "string",
"project_id": "string",
"quiet_end": 0,
"quiet_start": 0,
"quiet_tz": "string",
"recent_breaches": [
true
],
"required_breaches": 0,
"scanner_id": "string",
"score_max": 0,
"score_min": 0,
"snoozed_until": "2024-01-01T00:00:00Z",
"state": "string",
"tag": "string",
"updated_at": "2024-01-01T00:00:00Z",
"value": 0,
"verdict": "string",
"window_hours": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
auto_disable_afterintegerrequiredbroken_reasonstringchannelsobject[]requiredNotification channels as stored (Slack URLs sealed; redacted on the way out).
cooldown_minutesintegerrequiredcreated_atstringrequiredenabledbooleanrequiredfailuresintegerrequiredConsecutive failed deliveries; at
auto_disable_after (0 = never) the alert turns broken.idstringrequiredkindstringrequiredmatch | thresholdlast_checked_atstringlast_fired_atstringlast_valuenumbermetricstringrequiredthreshold:
count | avg_scorenamestringrequiredof_checksintegerrequiredopstringrequiredthreshold:
gte | lteproject_idstringrequiredquiet_endintegerquiet_startintegerQuiet hours
[quiet_start, quiet_end) in quiet_tz: events are recorded, nothing is sent.quiet_tzstringrequiredrecent_breachesboolean[]requiredOutcomes of the last
of_checks checks, oldest first.required_breachesintegerrequiredThreshold: fire only when this many of the last
of_checks checks breached (N of M).scanner_idstringrequiredscore_maxnumberscore_minnumbersnoozed_untilstringstatestringrequiredok | firing | errored | broken (broken: switched off after repeated delivery failures)tagstringupdated_atstringrequiredvaluenumberrequiredverdictstringwindow_hoursintegerrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/vision/alerts Scope replay:writeParameters
project_idstringpathrequiredRequest body
application/json
A Vision alert. match fires on each matching observation; threshold checks hourly whether the count (metric = count) or average score (avg_score) of matching observations over window_hours is gte/lte value, notifying on firing and on resolve.
auto_disable_afterintegerConsecutive failed deliveries before the alert turns broken and off (0 = never, default 5).
channelsarrayInsight-alert channels (
email, slack, webhook). Omitted on update keeps the stored ones.cooldown_minutesintegerMatch alerts: minutes between notifications (0 to 10080).
enabledbooleankindstringrequiredmatch | thresholdmetricstringnamestringrequiredof_checksintegeropstringquiet_endintegerquiet_startintegerQuiet hours (0 to 23, start inclusive, end exclusive, may wrap midnight) in
quiet_tz.quiet_tzstringrequired_breachesintegerThreshold: fire when this many of the last
of_checks hourly checks breached (default 1 of 1).scanner_idstringrequiredscore_maxnumberscore_minnumbersnoozed_untilstringtagstringvaluenumberverdictstringwindow_hoursinteger24, 72, 168, 336 or 720.
{
"auto_disable_after": 0,
"channels": [
{}
],
"cooldown_minutes": 0,
"enabled": true,
"kind": "string",
"metric": "string",
"name": "string",
"of_checks": 0,
"op": "string",
"quiet_end": 0,
"quiet_start": 0,
"quiet_tz": "string",
"required_breaches": 0,
"scanner_id": "string",
"score_max": 0,
"score_min": 0,
"snoozed_until": "2024-01-01T00:00:00Z",
"tag": "string",
"value": 0,
"verdict": "string",
"window_hours": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/alerts" \
-H "Content-Type: application/json" \
-d '{"auto_disable_after":0,"channels":[{}],"cooldown_minutes":0,"enabled":true,"kind":"string","metric":"string","name":"string","of_checks":0,"op":"string","quiet_end":0,"quiet_start":0,"quiet_tz":"string","required_breaches":0,"scanner_id":"string","score_max":0,"score_min":0,"snoozed_until":"2024-01-01T00:00:00Z","tag":"string","value":0,"verdict":"string","window_hours":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"auto_disable_after": 0,
"broken_reason": "string",
"channels": [
{}
],
"cooldown_minutes": 0,
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"failures": 0,
"id": "string",
"kind": "string",
"last_checked_at": "2024-01-01T00:00:00Z",
"last_fired_at": "2024-01-01T00:00:00Z",
"last_value": 0,
"metric": "string",
"name": "string",
"of_checks": 0,
"op": "string",
"project_id": "string",
"quiet_end": 0,
"quiet_start": 0,
"quiet_tz": "string",
"recent_breaches": [
true
],
"required_breaches": 0,
"scanner_id": "string",
"score_max": 0,
"score_min": 0,
"snoozed_until": "2024-01-01T00:00:00Z",
"state": "string",
"tag": "string",
"updated_at": "2024-01-01T00:00:00Z",
"value": 0,
"verdict": "string",
"window_hours": 0
}Schema
auto_disable_afterintegerrequiredbroken_reasonstringchannelsobject[]requiredNotification channels as stored (Slack URLs sealed; redacted on the way out).
cooldown_minutesintegerrequiredcreated_atstringrequiredenabledbooleanrequiredfailuresintegerrequiredConsecutive failed deliveries; at
auto_disable_after (0 = never) the alert turns broken.idstringrequiredkindstringrequiredmatch | thresholdlast_checked_atstringlast_fired_atstringlast_valuenumbermetricstringrequiredthreshold:
count | avg_scorenamestringrequiredof_checksintegerrequiredopstringrequiredthreshold:
gte | lteproject_idstringrequiredquiet_endintegerquiet_startintegerQuiet hours
[quiet_start, quiet_end) in quiet_tz: events are recorded, nothing is sent.quiet_tzstringrequiredrecent_breachesboolean[]requiredOutcomes of the last
of_checks checks, oldest first.required_breachesintegerrequiredThreshold: fire only when this many of the last
of_checks checks breached (N of M).scanner_idstringrequiredscore_maxnumberscore_minnumbersnoozed_untilstringstatestringrequiredok | firing | errored | broken (broken: switched off after repeated delivery failures)tagstringupdated_atstringrequiredvaluenumberrequiredverdictstringwindow_hoursintegerrequired400
404
GET
https://lucidace.com /v1/projects/{project_id}/vision/alerts/{id} Scope replay:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/alerts/{id}"TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/vision/alerts/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
A Vision alert. match fires on each matching observation; threshold checks hourly whether the count (metric = count) or average score (avg_score) of matching observations over window_hours is gte/lte value, notifying on firing and on resolve.
auto_disable_afterintegerConsecutive failed deliveries before the alert turns broken and off (0 = never, default 5).
channelsarrayInsight-alert channels (
email, slack, webhook). Omitted on update keeps the stored ones.cooldown_minutesintegerMatch alerts: minutes between notifications (0 to 10080).
enabledbooleankindstringrequiredmatch | thresholdmetricstringnamestringrequiredof_checksintegeropstringquiet_endintegerquiet_startintegerQuiet hours (0 to 23, start inclusive, end exclusive, may wrap midnight) in
quiet_tz.quiet_tzstringrequired_breachesintegerThreshold: fire when this many of the last
of_checks hourly checks breached (default 1 of 1).scanner_idstringrequiredscore_maxnumberscore_minnumbersnoozed_untilstringtagstringvaluenumberverdictstringwindow_hoursinteger24, 72, 168, 336 or 720.
{
"auto_disable_after": 0,
"channels": [
{}
],
"cooldown_minutes": 0,
"enabled": true,
"kind": "string",
"metric": "string",
"name": "string",
"of_checks": 0,
"op": "string",
"quiet_end": 0,
"quiet_start": 0,
"quiet_tz": "string",
"required_breaches": 0,
"scanner_id": "string",
"score_max": 0,
"score_min": 0,
"snoozed_until": "2024-01-01T00:00:00Z",
"tag": "string",
"value": 0,
"verdict": "string",
"window_hours": 0
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/vision/alerts/{id}" \
-H "Content-Type: application/json" \
-d '{"auto_disable_after":0,"channels":[{}],"cooldown_minutes":0,"enabled":true,"kind":"string","metric":"string","name":"string","of_checks":0,"op":"string","quiet_end":0,"quiet_start":0,"quiet_tz":"string","required_breaches":0,"scanner_id":"string","score_max":0,"score_min":0,"snoozed_until":"2024-01-01T00:00:00Z","tag":"string","value":0,"verdict":"string","window_hours":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Saving an errored or broken alert resets it
400
404
DELETE
https://lucidace.com /v1/projects/{project_id}/vision/alerts/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/vision/alerts/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
GET
https://lucidace.com /v1/projects/{project_id}/vision/alerts/{id}/history Scope replay:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/alerts/{id}/history"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Last 100 matches, firings, resolves and suppressed matches
Example
{
"data": [
{
"at": "2024-01-01T00:00:00Z",
"detail": "string",
"id": 0,
"kind": "string",
"observation_id": "string",
"value": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
atstringrequireddetailstringidintegerrequiredkindstringrequiredmatched | fired | resolved | errored | suppressed | quiet | broken | resetobservation_idstringvaluenumbernext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/vision/alerts/{id}/reset Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/alerts/{id}/reset"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Back to ok and enabled; failure streak and N-of-M window cleared
404
Updated