Référence de l'APIAlerts
Get a project's alert subscriptions
GET
Which channels the project alerts on, for which events, with the thresholds of run.error_rate_exceeded and run.slow.
ApiKeyAuthheader
X-Api-Key<token>id*stringThe project's id
Length
1 <= lengthSubscriptions
application/json- response
items*array<>curl -X GET 'https://dataflow.piloterr.com/v1/projects/string/alerts'Example Response
{
"items": [
{
"channel_id": "cm4kq2d5e000cl208m7va4jzh",
"events": [
"run.failed",
"run.completed",
"run.error_rate_exceeded"
],
"error_rate_pct": 20,
"max_duration_min": null
}
]
}