الانتقال إلى المحتوى الرئيسي
POST
/
v1
/
monitoring
/
interfaces
/
{interfaceId}
/
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

المعرّف الفريد لواجهة SNMP.

Example:

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

Body

application/json
from
string<date-time>
required

بداية الفترة الزمنية.

Example:

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

to
string<date-time>
required

نهاية الفترة الزمنية.

Example:

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

Response

مقاييس السلاسل الزمنية للواجهة المحددة.

ifInOctets
object[]

سلسلة زمنية من نقاط بيانات المقاييس لحركة المرور الواردة (ifInOctets) أو الصادرة (ifOutOctets).

ifOutOctets
object[]

سلسلة زمنية من نقاط بيانات المقاييس لحركة المرور الواردة (ifInOctets) أو الصادرة (ifOutOctets).