public.servers.latest
const url = 'https://rest.watchtower15.com/v1/servers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/latest';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://rest.watchtower15.com/v1/servers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/latest \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”ServersLatestResource
object
object
One of unknown, healthy, warning, critical.
One of active, pending_approval, revoked.
Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set. Null when no agent reports.
Epoch milliseconds.
Epoch milliseconds: when the host booted, null when its agent never reported it.
object
Alarms firing at critical, over the server’s own alarms and its volumes’, ports’ and units’.
Alarms the evaluator does not score.
Of the firing ones, the acknowledged.
The newest sample of the last 15 minutes; null when there is none.
object
Example generated
{ "data": { "uuid": "example", "health_status": "example", "agent_status": "example", "connectivity_state": "example", "agent_last_seen_at": 1, "booted_at": 1, "alarm_summary": { "critical": 1, "warning": 1, "ok": 1, "inactive": 1, "acknowledged": 1 }, "sample": { "sampled_at": 1, "cpu_usage_percent": 1, "memory_usage_percent": 1, "memory_used_mb": 1, "memory_free_mb": 1, "swap_usage_percent": 1, "swap_used_mb": 1, "load_avg_1m": 1, "load_avg_5m": 1, "load_avg_15m": 1, "disk_usage_percent": 1, "disk_used_gb": 1, "disk_free_gb": 1, "disk_io_read_mbps": 1, "disk_io_write_mbps": 1, "net_in_mbps": 1, "net_out_mbps": 1, "process_count": 1 } }}The API key is missing, malformed, expired or revoked.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}The key or its owner does not hold what the operation needs.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}No such record in this organisation (an absent id and another organisation’s answer alike).
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}The request is invalid; errors names the parameters.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}A rate limit or the organisation’s daily limit is reached; Retry-After says when to retry.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}An unexpected error.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}A data store did not answer within the request’s 10 seconds; try again shortly (store_unavailable).
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}