POST
/
internal
/
interfaces
/
{interface}
/
metrics
curl --request POST \
  --url https://api.altostrat.io/internal/interfaces/{interface}/metrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z"
}'
{
  "max_in": 123,
  "max_out": 123,
  "avg_in": 123,
  "avg_out": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

interface
string
required

SNMP interface ID

Body

application/json

StatsRangeRequest specifying from/to

The body is of type object.

Response

200 - application/json

Returns e.g. { max_in, max_out, avg_in, avg_out } in MBps

The response is of type object.