GET
/
workspaces
/
{workspaceSlug}
/
metrics
/
compute
cURL
curl --request GET \
  --url https://global.thenile.dev/workspaces/{workspaceSlug}/metrics/compute \
  --header 'Authorization: Bearer <token>'
[
  {
    "usageByDatabase": {},
    "chartData": {
      "points": [
        {
          "x": 123,
          "y": 123
        }
      ],
      "maxCPUCount": 123
    },
    "totalVCPUHours": 123,
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceSlug
string
required

Query Parameters

start
string<date-time>

The start of a time window

end
string<date-time>

The end of a time window

Response

200
application/json

A list of compute metrics for the databases in the workspace.

The response is of type object[].