POST
/
interfaces
/
{interface}
/
metrics
curl --request POST \
  --url https://api.altostrat.io/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"
}'
{
  "ifInOctets": [
    {
      "clock": "2025-01-10 10:00:00",
      "value": 32563
    },
    {
      "clock": "2025-01-10 10:05:00",
      "value": 29415
    }
  ],
  "ifOutOctets": [
    {
      "clock": "2025-01-10 10:00:00",
      "value": 12563
    },
    {
      "clock": "2025-01-10 10:05:00",
      "value": 8845
    }
  ]
}

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

Date range and other parameters

The body is of type object.

Response

200
application/json

Interface metrics array in a format suitable for charting

The response is of type object.