Skip to content

Returns Hub uptime data with daily granularity

Request

Returns uptime for a Hub with daily granularity. Hub uptime is based on uptime of all services in that Hub for every day.
Days are aligned to UTC timezone.
Hub is considered up for given day if all of its services are not down in that day. Every time frame when at least one of Hub services is down, is considered as downtime for this Hub.
Maximum length of date range is 18 months.

Security
ApiKeyAuth
Path
subdomainstringrequired

Unique subdomain of requested Hub.

Query
start_datestring, (date)

Start date for uptime calculations.
start_date and end_date range can't be bigger than 18 months.

Example:start_date=2025-01-01
end_datestring, (date)

End date for uptime calculations.
start_date and end_date range can't be bigger than 18 months.

Example:end_date=2025-01-01
api_versionstring

Api version

Value:"V3-R1"
curl -i -X GET \
  'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/uptime/daily?start_date=2025-01-01&end_date=2025-01-01&api_version=V3-R1' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
property name*number, [ 0 .. 1 ]additional property

Uptime value for the requested period. Value is between 0.0 and 1.0, where 0 means no uptime and 1 means 100% uptime.
Uptime value is always rounded down.

Example:0.9995
Response
{ "2023-01-01": 0.9995, "2023-01-02": 1, "2023-01-03": 0.68351, "2023-01-04": 0.99999, "2023-01-05": 1 }