Skip to content

List alert rules

GET
/v1/metric-alerts
curl --request GET \
--url 'https://shareout.site/v1/metric-alerts?artifact_id=example' \
--header 'Authorization: Bearer <token>'

Manager-aware — managers see every rule on the artifact; viewers see only their own.

artifact_id
required
string

Alert rules

Media type application/json
object
alerts
Array
object
artifact_id
required
string
metric_id
required
string
name
required
string
condition
required
object
op
required
string
Allowed values: gt gte lt lte eq neq
value
required
number
schedule
required

5-field cron expression.

string
destination
required
object
kind
required
string
Allowed values: slack email discord webhook http_get telegram
config
required

Destination config matching the kind (see Jobs config interfaces).

object
message
string
cooldown_seconds
integer
id
string
enabled
boolean
created_at
integer
Example
{
"alerts": [
{
"condition": {
"op": "gt"
},
"destination": {
"kind": "slack"
}
}
]
}