Skip to main content
GET
/
v1
/
monitoring
/
mikrotik-stats
/
{siteId}
Get Device Heartbeat History
curl --request GET \
  --url https://api.altostrat.io/v1/monitoring/mikrotik-stats/{siteId} \
  --header 'Authorization: Bearer <token>'
[
  {
    "time_formatted": "12:00",
    "date_formatted": "29 Oct",
    "missed_heartbeats_percentage": 0,
    "total_minutes_down": 0
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

siteId
string<uuid>
required

The unique identifier for the site.

Example:

"d8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8"

Response

A list of hourly heartbeat status reports.

time_formatted
string

The hour of the heartbeat check.

Example:

"12:00"

date_formatted
string

The date of the heartbeat check.

Example:

"29 Oct"

missed_heartbeats_percentage
number

The percentage of the hour that the device was considered down due to missed heartbeats.

Example:

0

total_minutes_down
number

The total number of minutes the device was considered down during this hour.

Example:

0