Skip to content

Instantly share code, notes, and snippets.

@streamer45
Created May 15, 2014 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save streamer45/0aef54dc77f0d6aba9af to your computer and use it in GitHub Desktop.
Save streamer45/0aef54dc77f0d6aba9af to your computer and use it in GitHub Desktop.
**Example request**:
GET /containers/4fa6e0f0c678/top HTTP/1.1
**Example response**:
HTTP/1.1 200 OK
Content-Type: application/json
{
"Titles":[
"USER",
"PID",
"%CPU",
"%MEM",
"VSZ",
"RSS",
"TTY",
"STAT",
"START",
"TIME",
"COMMAND"
],
"Processes":[
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"],
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"]
]
}
Query Parameters:
- **ps_args** – ps arguments to use (eg. aux)
Status Codes:
- **200** – no error
- **404** – no such container
- **500** – server error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment