Skip to content

Instantly share code, notes, and snippets.

@ConnorDoyle
Last active August 29, 2015 14:01
Show Gist options
  • Save ConnorDoyle/0059fb49860b92799ca4 to your computer and use it in GitHub Desktop.
Save ConnorDoyle/0059fb49860b92799ca4 to your computer and use it in GitHub Desktop.
Health Check Session
$ http GET localhost:8080/v2/apps/my-app/
HTTP/1.1 200 OK
Content-Type: application/json
Server: Jetty(8.y.z-SNAPSHOT)
Transfer-Encoding: chunked
{
"app": {
"cmd": "python -m SimpleHTTPServer $PORT",
"constraints": [],
"container": null,
"cpus": 0.1,
"env": {},
"executor": "",
"healthChecks": [
{
"gracePeriodSeconds": 15,
"intervalSeconds": 10,
"maxConsecutiveFailures": 5,
"path": "",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 10
}
],
"id": "my-app",
"instances": 2,
"mem": 16.0,
"ports": [
18533
],
"taskRateLimit": 1.0,
"tasks": [
{
"host": "iota",
"id": "my-app_0-1401239340995",
"ports": [
31217
],
"stagedAt": "2014-05-28T01:09:01.008Z",
"startedAt": "2014-05-28T01:09:02.074Z",
"version": "2014-05-28T01:08:58.101Z"
},
{
"host": "iota",
"id": "my-app_1-1401239347000",
"ports": [
31185
],
"stagedAt": "2014-05-28T01:09:07.003Z",
"startedAt": "2014-05-28T01:09:08.130Z",
"version": "2014-05-28T01:08:58.101Z"
}
],
"tasksRunning": 2,
"tasksStaged": 0,
"uris": [],
"version": "2014-05-28T01:42:11.982Z"
}
}
$ http GET localhost:8080/v2/apps/my-app/tasks
HTTP/1.1 200 OK
Content-Type: application/json
Server: Jetty(8.y.z-SNAPSHOT)
Transfer-Encoding: chunked
{
"tasks": [
{
"appId": "my-app",
"healthCheckResults": [
{
"alive": true,
"consecutiveFailures": 0,
"firstSuccess": "2014-05-28T01:42:22.319Z",
"lastFailure": null,
"lastSuccess": "2014-05-28T01:42:42.046Z",
"taskId": "my-app_0-1401239340995"
}
],
"host": "iota",
"id": "my-app_0-1401239340995",
"ports": [
31217
],
"stagedAt": "2014-05-28T01:09:01.008Z",
"startedAt": "2014-05-28T01:09:02.074Z",
"version": "2014-05-28T01:08:58.101Z"
},
{
"appId": "my-app",
"healthCheckResults": [
{
"alive": true,
"consecutiveFailures": 0,
"firstSuccess": "2014-05-28T01:42:22.319Z",
"lastFailure": null,
"lastSuccess": "2014-05-28T01:42:42.045Z",
"taskId": "my-app_1-1401239347000"
}
],
"host": "iota",
"id": "my-app_1-1401239347000",
"ports": [
31185
],
"stagedAt": "2014-05-28T01:09:07.003Z",
"startedAt": "2014-05-28T01:09:08.130Z",
"version": "2014-05-28T01:08:58.101Z"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment