Skip to main content
POST
/
internal
/
interfaces
/
{interface}
/
metrics
(Internal) Summarized 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

from
string<date-time>
required
to
string<date-time>
required

Response

200 - application/json

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

max_in
number
max_out
number
avg_in
number
avg_out
number
I