Skip to main content
GET
/
sites
/
{siteId}
/
metrics
Get Site Metrics
curl --request GET \
  --url https://api.altostrat.io/sites/{siteId}/metrics \
  --header 'Authorization: Bearer <token>'
{
  "uptime_percentage": 99.98,
  "downtime_duration_seconds": 17,
  "last_status": "online",
  "last_seen_at": "2025-10-29T12:55:00Z"
}

Authorizations

Authorization
string
header
required

A JWT issued by Altostrat's authentication service, containing user and organization claims.

Path Parameters

siteId
string
required

The unique identifier for the site (router).

Response

Successfully retrieved 24-hour performance metrics for the site.

Performance and uptime metrics for a site over the last 24 hours.

uptime_percentage
number

The percentage of time the site was online and responsive in the last 24 hours.

Example:

99.98

downtime_duration_seconds
integer

Total duration in seconds the site was considered offline in the last 24 hours.

Example:

17

last_status
enum<string>

The most recent reported status of the site.

Available options:
online,
offline
Example:

"online"

last_seen_at
string<date-time>

The ISO 8601 timestamp when the last heartbeat was received from the site.

Example:

"2025-10-29T12:55:00Z"