Skip to content

Instantly share code, notes, and snippets.

@pmhsfelix
Created October 6, 2016 21:01
Show Gist options
  • Save pmhsfelix/76dcc1b495000c70ee303cc3dd1e90fa to your computer and use it in GitHub Desktop.
Save pmhsfelix/76dcc1b495000c70ee303cc3dd1e90fa to your computer and use it in GitHub Desktop.
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