Piloterr
Referência da APIAlerts

Get a project's alert subscriptions

GET
/v1/projects/{id}/alerts

Which channels the project alerts on, for which events, with the thresholds of run.error_rate_exceeded and run.slow.

Autorização

ApiKeyAuth
headerX-Api-Key<token>

Parâmetros de caminho

id*string

The project's id

Length1 <= length

Corpo da resposta

Subscriptions

application/json
  1. response
items*array<>
Example Request
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
    }
  ]
}