Live Alerts Stream
GET/api/v2/alerts/stream
Server-Sent Events stream of live alerts. Optionally filter by deviceId query param.
Request
Query Parameters
Filter stream to alerts for a specific device.
Filter stream to alerts for a specific project by ID.
When true, stream only alerts flagged as activities.
Responses
- 200
SSE stream emitting alert messages
- application/json
- Schema
- Example (from schema)
Schema
data
object
Unique alert identifier
Possible values: [discovery_new, discovery_known, delivery_started, delivery_completed, delivery_error, deploy_started, deploy_completed, deploy_error, pending_version, pending_resource, device_offline, git_sync_success, git_sync_failed, sbom_started, sbom_ready, sbom_failed, upload_started, upload_completed, upload_failed, upload_file_created, upload_file_deleted, release_created, release_published, release_archived, system]
Type of the alert event
Possible values: [critical, warning, info]
Severity level of the alert
Human-readable alert message
Device ID associated with the alert
Project ID associated with the alert
Catalog ID associated with the alert
Source service that generated the alert
Whether this event is a higher-level activity (true) or a regular alert (false)
Additional metadata
Timestamp when the alert was created
Unique event ID (same as the alert id)
SSE event type
{
"data": {
"id": "string",
"type": "discovery_new",
"severity": "critical",
"message": "string",
"deviceId": "string",
"projectId": 0,
"catalogId": "string",
"source": "string",
"isActivity": true,
"metadata": {},
"createdAt": "2024-01-15T10:30:00.000Z"
},
"id": "abc123",
"type": "alert"
}