List alert rules
GET
/alerts/rules
const url = 'https://your-server.example/api/alerts/rules';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-server.example/api/alerts/rules \ --cookie session=<session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Rules.
Media typeapplication/json
Array<object>
object
id
integer format: int64
name
string
scope
System, app, or webhook
string
target
App slug or “*”.
string
metric
string
operator
string
threshold
number
duration_seconds
integer
webhook_ids
Array<integer>
enabled
boolean
Example
[ { "operator": ">" }]