Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Get Detailed Stats for a Process

GET /v3/processes/:guid/stats

Request

Route

GET /v3/processes/8480ec7f-b06c-4df7-92c1-11afc823f967/stats

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjExfQ.ezibnPGuf4Y0Npj21N4MXCCqwGO4CL4Um8URWr6N4a8
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/8480ec7f-b06c-4df7-92c1-11afc823f967/stats" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjExfQ.ezibnPGuf4Y0Npj21N4MXCCqwGO4CL4Um8URWr6N4a8" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "resources": [
    {
      "type": "web",
      "index": 0,
      "state": "RUNNING",
      "usage": {
        "time": "2016-01-26 22:20:11 UTC",
        "cpu": 80,
        "mem": 128,
        "disk": 1024
      },
      "host": "toast",
      "port": 8080,
      "uptime": 1,
      "mem_quota": 1073741824,
      "disk_quota": 1073741824,
      "fds_quota": 16384
    }
  ],
  "pagination": {
    "total_results": 1,
    "first": {
      "href": "/v3/processes/8480ec7f-b06c-4df7-92c1-11afc823f967/stats"
    },
    "last": {
      "href": "/v3/processes/8480ec7f-b06c-4df7-92c1-11afc823f967/stats"
    },
    "next": null,
    "previous": null
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.012122
Content-Length: 655