Create a gist now

Instantly share code, notes, and snippets.

Representing a collection of statuses
{
"problemCount": 2,
"resources": [
{
"rel": "https://example.com/rels/payment",
"title": "payment gateway",
"id": "https://example.com/ids/paymentgateway/1",
"date": "Tue, 15 Nov 1994 08:12:31 GMT",
"state": "ok"
},
{
"rel": "https://example.com/rels/emailserver",
"title": "email server",
"id": "https://example.com/ids/emailserver/1",
"date": "Tue, 15 Nov 1994 08:12:31 GMT",
"state": "unknown"
},
{
"rel": "https://example.com/rels/db",
"title": "SQL DB 1",
"id": "https://example.com/ids/db/1",
"date": "Tue, 15 Nov 1994 08:12:31 GMT",
"state": "warning",
"problem": {
"type": "https://example.com/probs/timeout",
"title": "Timeout when accessing the DB",
"detail": "timeout after 30s"
}
},
{
"rel": "https://example.com/rels/db",
"title": "SQL DB 2",
"id": "https://example.com/ids/db/2",
"date": "Tue, 15 Nov 1994 08:12:31 GMT",
"state": "error",
"problem": {
"type": "https://example.com/probs/no-connectivity",
"title": "no connectivity to the DB",
"detail": "unreachable host"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment