POST
/
wan
/
ping-stats
curl --request POST \
  --url https://api.altostrat.io/wan/ping-stats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tunnels": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z",
  "datapoints": 123
}'
{
  "timestamps": [
    123
  ],
  "data": [
    {
      "tunnel_id": "<string>",
      "latency": [
        123
      ],
      "packet_loss": [
        123
      ],
      "mdev": [
        123
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

PingStatsRequest containing from, to, tunnels array, etc.

The body is of type object.

Response

200
application/json

Returns { timestamps: [...], data: [ { tunnel_id: ..., latency: [...], packet_loss: [...], mdev: [...] }, ... ] }

The response is of type object.