Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pixlcore/xyops/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Alert APIs manage alert definitions that evaluate monitor data and trigger actions. Alerts run on the conductor and evaluate incoming monitor samples from servers.List Alerts
GET /api/app/get_alerts/v1
Fetch all alert definitions.
Response
Get Alert
GET /api/app/get_alert/v1
Fetch a single alert definition.
Parameters
Alert ID
Example
cURL
Create Alert
POST /api/app/create_alert/v1
Create a new alert definition. Requires the create_alerts privilege.
Parameters
Display name for the alert
JEXL expression that evaluates to true when alert should fire
Alert message with optional template macros
Whether alert is active (default: true)
Number of consecutive samples required to trigger (default: 1)
Array of action definitions to execute when alert fires
Custom alert ID (auto-generated if omitted)
Example
The
expression is evaluated against server data. Use monitors.MONITOR_ID to reference monitor values and standard server properties like cpu.cores.Update Alert
POST /api/app/update_alert/v1
Update an existing alert. Requires the edit_alerts privilege.
Parameters
Alert ID to update
Any alert properties to update
Example
cURL
Test Alert
POST /api/app/test_alert/v1
Test an alert expression and message against a specific server. Requires the edit_alerts privilege.
Parameters
Server ID to test against
Alert expression to test
Alert message template to test
Response
Whether the alert would fire with current server data
The evaluated message with template macros replaced
Example
Delete Alert
POST /api/app/delete_alert/v1
Delete an alert definition. Requires the delete_alerts privilege.
Parameters
Alert ID to delete
Example
cURL
Get Alert Invocations
POST /api/app/get_alert_invocations/v1
Fetch information about multiple alert invocations (historical alert firing events).
Parameters
Array of alert invocation IDs
Example
cURL
Response
Manage Alert Invocation Tickets
POST /api/app/manage_alert_invocation_tickets/v1
Update the ticket list for an alert invocation. Requires the edit_tickets privilege.
Parameters
Alert invocation ID
Array of ticket IDs to associate
Example
cURL
Delete Alert Invocation
POST /api/app/delete_alert_invocation/v1
Delete a single alert invocation. Requires the delete_alerts privilege.
Parameters
Alert invocation ID to delete
Example
cURL
Message Template Macros
Alert messages support template macros using double curly braces:| Macro | Description |
|---|---|
{{monitors.load_avg}} | Monitor value |
{{float(monitors.load_avg)}} | Formatted float |
{{cpu.cores}} | Server property |
{{mem.total}} | Memory total |
Example Message
Action Types
Alerts support multiple action types:| Type | Description |
|---|---|
email | Send email notification |
web_hook | Call webhook |
run_event | Trigger another event |
channel | Send to notification channel |
ticket | Create support ticket |
Actions are triggered based on the
condition field: alert_new when alert first fires, alert_cleared when it clears.