Skip to main content
POST
/
v1
/
monitoring
/
interfaces
/
{interfaceId}
/
metrics
Get Interface Metrics
curl --request POST \
  --url https://api.altostrat.io/v1/monitoring/interfaces/{interfaceId}/metrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2025-10-29T10:00:00Z",
  "to": "2025-10-29T11:00:00Z"
}'
{
  "ifInOctets": [
    {
      "clock": "2025-10-29 10:05:00",
      "value": 1543210.5
    }
  ],
  "ifOutOctets": [
    {
      "clock": "2025-10-29 10:05:00",
      "value": 1543210.5
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

interfaceId
string<uuid>
required

The unique identifier for the SNMP interface.

Example:

"9f9510bd-1234-5678-a7cf-f845a39e26db"

Body

application/json
from
string<date-time>
required

The start of the time window.

Example:

"2025-10-29T10:00:00Z"

to
string<date-time>
required

The end of the time window.

Example:

"2025-10-29T11:00:00Z"

Response

Time-series metrics for the specified interface.

ifInOctets
object[]

A time-series of metric data points for inbound (ifInOctets) or outbound (ifOutOctets) traffic.

ifOutOctets
object[]

A time-series of metric data points for inbound (ifInOctets) or outbound (ifOutOctets) traffic.