Pular para o conteúdo principal
GET
/
recent
Obter falhas recentes (Legado)
curl --request GET \
  --url https://api.altostrat.io/recent \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "flt_31pkd1t8FvW7qZv0jG2a9kH5mB1",
    "message": "Failover do link WAN: Link primário (WAN1) está fora do ar",
    "resolved_at": null,
    "created_at": "2025-10-21T12:00:00.000000Z",
    "duration": "2 horas, 15 minutos",
    "severity": "error",
    "type": "wantunnel",
    "cause": "Sonda falhou: Latência excedeu o limite de 500ms",
    "site_id": "site_8a7b6c5d4e3f2g1h",
    "resource_identifier": "dev_2j4k2l2j3k4l2j3k4"
  }
]

Authorizations

Authorization
string
header
required

As requisições da API são autenticadas usando um JSON Web Token (JWT) fornecido no cabeçalho Authorization.

Query Parameters

site
string

(Opcional) Filtre falhas recentes para um site específico.

Example:

"site_8a7b6c5d4e3f2g1h"

type
string

(Opcional) Filtre por tipo de falha.

Example:

"wantunnel"

Response

Uma lista de eventos de falha recentes em um formato legado.

id
string

Um identificador único para o objeto de falha.

Example:

"flt_31pkd1t8FvW7qZv0jG2a9kH5mB1"

message
string

Um resumo conciso da falha.

Example:

"Failover do link WAN: Link primário (WAN1) está fora do ar"

resolved_at
string<date-time> | null

O timestamp de quando a falha foi resolvida.

Example:

null

created_at
string<date-time>

O timestamp de quando a falha foi criada.

Example:

"2025-10-21T12:00:00.000000Z"

duration
string

Uma string legível representando a duração da falha.

Example:

"2 horas, 15 minutos"

severity
string

A severidade da falha.

Example:

"error"

type
string

O tipo da falha.

Example:

"wantunnel"

cause
string

A causa provável da falha.

Example:

"Sonda falhou: Latência excedeu o limite de 500ms"

site_id
string | null

O identificador do site ao qual este recurso pertence.

Example:

"site_8a7b6c5d4e3f2g1h"

resource_identifier
string

O identificador único do recurso.

Example:

"dev_2j4k2l2j3k4l2j3k4"