POST
/
wan-tunnels
/
{tunnel}
/
ping-stats
curl --request POST \
  --url https://api.altostrat.io/wan-tunnels/{tunnel}/ping-stats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z"
}'
[
  {
    "tunnel_id": "<string>",
    "latency": "<string>",
    "mdev": "<string>",
    "packet_loss": "<string>",
    "created_at": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tunnel
string
required

Tunnel ID (the external ID)

Body

application/json

Date range (from, to) for stats, possibly 5 minute intervals. If large gaps, 100% packet loss is inserted as placeholders.

The body is of type object.

Response

200
application/json

Array of ping samples

The response is of type object[].