Logs-4
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
PATCH | |
DELETE | |
POST | |
POST | |
GET | |
POST | |
POST | |
GET | |
POST | |
POST |
Update logs alerts
Required API key scopes
logs:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- enabledbooleanDefault:
true - filters
- threshold_countinteger
- threshold_operatorDefault:
above - window_minutesintegerDefault:
5 - evaluation_periodsintegerDefault:
1 - datapoints_to_alarmintegerDefault:
1 - cooldown_minutesintegerDefault:
0 - snooze_untilstring
Response
Example request
PATCH /api /projects /:project_id /logs /alerts /:idExample response
Status 200
Update logs alerts
Required API key scopes
logs:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- enabledbooleanDefault:
true - filters
- threshold_countinteger
- threshold_operatorDefault:
above - window_minutesintegerDefault:
5 - evaluation_periodsintegerDefault:
1 - datapoints_to_alarmintegerDefault:
1 - cooldown_minutesintegerDefault:
0 - snooze_untilstring
Response
Example request
PATCH /api /projects /:project_id /logs /alerts /:idExample response
Status 200
Delete logs alerts
Required API key scopes
logs:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /logs /alerts /:idExample response
Status 204 No response body
Delete logs alerts
Required API key scopes
logs:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /logs /alerts /:idExample response
Status 204 No response body
Create logs alerts destinations
Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
Path parameters
- idstring
- project_idstring
Request parameters
- type
- slack_workspace_idinteger
- slack_channel_idstring
- slack_channel_namestring
- webhook_urlstring
Response
Example request
POST /api /projects /:project_id /logs /alerts /:id /destinationsExample response
Status 201
Create logs alerts destinations
Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
Path parameters
- idstring
- project_idstring
Request parameters
- type
- slack_workspace_idinteger
- slack_channel_idstring
- slack_channel_namestring
- webhook_urlstring
Response
Example request
POST /api /projects /:project_id /logs /alerts /:id /destinationsExample response
Status 201
Create logs alerts destinations delete
Delete a notification destination by deleting its HogFunction group atomically.
Path parameters
- idstring
- project_idstring
Request parameters
- hog_function_idsarray
Example request
POST /api /projects /:project_id /logs /alerts /:id /destinations /deleteExample response
Status 204 No response body
Create logs alerts destinations delete
Delete a notification destination by deleting its HogFunction group atomically.
Path parameters
- idstring
- project_idstring
Request parameters
- hog_function_idsarray
Example request
POST /api /projects /:project_id /logs /alerts /:id /destinations /deleteExample response
Status 204 No response body
List all logs alerts events
Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional ?kind=... narrows to a single kind.
Path parameters
- idstring
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /logs /alerts /:id /eventsExample response
Status 200
List all logs alerts events
Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional ?kind=... narrows to a single kind.
Path parameters
- idstring
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /logs /alerts /:id /eventsExample response
Status 200
Create logs alerts reset
Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
Path parameters
- idstring
- project_idstring
Response
Example request
POST /api /projects /:project_id /logs /alerts /:id /resetExample response
Status 200
Create logs alerts reset
Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
Path parameters
- idstring
- project_idstring
Response
Example request
POST /api /projects /:project_id /logs /alerts /:id /resetExample response
Status 200
Create logs alerts simulate
Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
Path parameters
- project_idstring
Request parameters
- filters
- threshold_countinteger
- threshold_operator
- window_minutesinteger
- evaluation_periodsintegerDefault:
1 - datapoints_to_alarmintegerDefault:
1 - cooldown_minutesintegerDefault:
0 - date_fromstring
Response
Example request
POST /api /projects /:project_id /logs /alerts /simulateExample response
Status 200
Create logs alerts simulate
Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
Path parameters
- project_idstring
Request parameters
- filters
- threshold_countinteger
- threshold_operator
- window_minutesinteger
- evaluation_periodsintegerDefault:
1 - datapoints_to_alarmintegerDefault:
1 - cooldown_minutesintegerDefault:
0 - date_fromstring
Response
Example request
POST /api /projects /:project_id /logs /alerts /simulateExample response
Status 200
Retrieve logs attributes
Required API key scopes
logs:readPath parameters
- project_idstring
Query parameters
- attribute_typestringOne of:
"log""resource" - dateRange
- filterGrouparrayDefault:
- limitinteger
- offsetinteger
- searchstring
- search_valuesbooleanDefault:
false - serviceNamesarrayDefault:
Response
Example request
GET /api /projects /:project_id /logs /attributesExample response
Status 200
Retrieve logs attributes
Required API key scopes
logs:readPath parameters
- project_idstring
Query parameters
- attribute_typestringOne of:
"log""resource" - dateRange
- filterGrouparrayDefault:
- limitinteger
- offsetinteger
- searchstring
- search_valuesbooleanDefault:
false - serviceNamesarrayDefault:
Response
Example request
GET /api /projects /:project_id /logs /attributesExample response
Status 200
Create logs count
Required API key scopes
logs:readPath parameters
- project_idstring
Request parameters
- query
Response
Example request
POST /api /projects /:project_id /logs /countExample response
Status 200
Create logs count
Required API key scopes
logs:readPath parameters
- project_idstring
Request parameters
- query
Response
Example request
POST /api /projects /:project_id /logs /countExample response
Status 200
Create logs count ranges
Required API key scopes
logs:readPath parameters
- project_idstring
Request parameters
- query
Response
Example request
POST /api /projects /:project_id /logs /count-ranges