Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get Detailed Stats for an App's Process

GET /v3/apps/:guid/processes/:type/stats

Request

Route

GET /v3/apps/guid-d1cd3b7a-285d-40bb-904c-71fa84fcba45/processes/web/stats

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNyIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQyOX0.6OoyO911NKtw8nMzJETbQ9uSAgalKFwiqb4TvgfNSTM
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-d1cd3b7a-285d-40bb-904c-71fa84fcba45/processes/web/stats" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNyIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQyOX0.6OoyO911NKtw8nMzJETbQ9uSAgalKFwiqb4TvgfNSTM" \
	-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-03-14 22:30:29 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/apps/guid-d1cd3b7a-285d-40bb-904c-71fa84fcba45/processes/web/stats"
    },
    "last": {
      "href": "/v3/apps/guid-d1cd3b7a-285d-40bb-904c-71fa84fcba45/processes/web/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.014720
Content-Length: 683