Saltar al contenido principal
GET
/
recent
Obtener fallos recientes (Heredado)
curl --request GET \
  --url https://api.altostrat.io/recent \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "flt_31pkd1t8FvW7qZv0jG2a9kH5mB1",
    "message": "Conmutación por error del enlace WAN: El enlace primario (WAN1) está caído",
    "resolved_at": null,
    "created_at": "2025-10-21T12:00:00.000000Z",
    "duration": "2 horas, 15 minutos",
    "severity": "error",
    "type": "wantunnel",
    "cause": "Sondeo fallido: Latencia excedió el umbral de 500ms",
    "site_id": "site_8a7b6c5d4e3f2g1h",
    "resource_identifier": "dev_2j4k2l2j3k4l2j3k4"
  }
]

Authorizations

Authorization
string
header
required

Las solicitudes a la API se autentican mediante un JSON Web Token (JWT) proporcionado en la cabecera Authorization.

Query Parameters

site
string

(Opcional) Filtrar fallos recientes para una sede específica.

Example:

"site_8a7b6c5d4e3f2g1h"

type
string

(Opcional) Filtrar por tipo de fallo.

Example:

"wantunnel"

Response

Una lista de eventos de fallo recientes en un formato heredado.

id
string

Un identificador único para el objeto de fallo.

Example:

"flt_31pkd1t8FvW7qZv0jG2a9kH5mB1"

message
string

Un resumen conciso del fallo.

Example:

"Conmutación por error del enlace WAN: El enlace primario (WAN1) está caído"

resolved_at
string<date-time> | null

La marca de tiempo de cuándo se resolvió el fallo.

Example:

null

created_at
string<date-time>

La marca de tiempo de cuándo se creó el fallo.

Example:

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

duration
string

Una cadena legible por humanos que representa la duración del fallo.

Example:

"2 horas, 15 minutos"

severity
string

La severidad del fallo.

Example:

"error"

type
string

El tipo del fallo.

Example:

"wantunnel"

cause
string

La causa probable del fallo.

Example:

"Sondeo fallido: Latencia excedió el umbral de 500ms"

site_id
string | null

El identificador de la sede a la que pertenece este recurso.

Example:

"site_8a7b6c5d4e3f2g1h"

resource_identifier
string

El identificador único del recurso.

Example:

"dev_2j4k2l2j3k4l2j3k4"