Vai al contenuto principale
GET
/
recent
Ottieni guasti recenti (Legacy)
curl --request GET \
  --url https://api.altostrat.io/recent \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "flt_31pkd1t8FvW7qZv0jG2a9kH5mB1",
    "message": "Failover del link WAN: il link primario (WAN1) non è attivo",
    "resolved_at": null,
    "created_at": "2025-10-21T12:00:00.000000Z",
    "duration": "2 ore, 15 minuti",
    "severity": "error",
    "type": "wantunnel",
    "cause": "Sondaggio fallito: latenza superiore alla soglia di 500ms",
    "site_id": "site_8a7b6c5d4e3f2g1h",
    "resource_identifier": "dev_2j4k2l2j3k4l2j3k4"
  }
]

Authorizations

Authorization
string
header
required

Le richieste API sono autenticate utilizzando un JSON Web Token (JWT) fornito nell'header Authorization.

Query Parameters

site
string

(Opzionale) Filtra i guasti recenti per un sito specifico.

Example:

"site_8a7b6c5d4e3f2g1h"

type
string

(Opzionale) Filtra per tipo di guasto.

Example:

"wantunnel"

Response

Un elenco di eventi di guasto recenti in un formato legacy.

id
string

Un identificatore univoco per l'oggetto guasto.

Example:

"flt_31pkd1t8FvW7qZv0jG2a9kH5mB1"

message
string

Un riepilogo conciso del guasto.

Example:

"Failover del link WAN: il link primario (WAN1) non è attivo"

resolved_at
string<date-time> | null

Il timestamp di quando il guasto è stato risolto.

Example:

null

created_at
string<date-time>

Il timestamp di quando il guasto è stato creato.

Example:

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

duration
string

Una stringa leggibile che rappresenta la durata del guasto.

Example:

"2 ore, 15 minuti"

severity
string

La gravità del guasto.

Example:

"error"

type
string

Il tipo del guasto.

Example:

"wantunnel"

cause
string

La causa probabile del guasto.

Example:

"Sondaggio fallito: latenza superiore alla soglia di 500ms"

site_id
string | null

L'identificatore del sito a cui appartiene questa risorsa.

Example:

"site_8a7b6c5d4e3f2g1h"

resource_identifier
string

L'identificatore univoco della risorsa.

Example:

"dev_2j4k2l2j3k4l2j3k4"