Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get Detailed Stats for an App

GET /v3/apps/:guid/stats

Request

Route

GET /v3/apps/guid-40f33ce9-312b-4349-8dc6-9b2f3f1628c5/stats

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDR9.oy_B5tIdfzoBihTU_1IpYtLVY3BWuaew0rHv5mUhu9U
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-40f33ce9-312b-4349-8dc6-9b2f3f1628c5/stats" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDR9.oy_B5tIdfzoBihTU_1IpYtLVY3BWuaew0rHv5mUhu9U" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "processes": [
    {
      "type": "web",
      "index": 0,
      "state": "RUNNING",
      "usage": {
        "time": "2016-03-14 22:30:44 UTC",
        "cpu": 80,
        "mem": 128,
        "disk": 1024
      },
      "host": "toast",
      "port": 8080,
      "uptime": 1,
      "mem_quota": 1073741824,
      "disk_quota": 1073741824,
      "fds_quota": 16384
    },
    {
      "type": "web",
      "index": 1,
      "state": "RUNNING",
      "usage": {
        "time": "2016-03-14 22:30:44 UTC",
        "cpu": 80,
        "mem": 128,
        "disk": 1024
      },
      "host": "toast",
      "port": 8080,
      "uptime": 1,
      "mem_quota": 1073741824,
      "disk_quota": 1073741824,
      "fds_quota": 16384
    }
  ]
}

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.021606
Content-Length: 737