VoiceGateway

Read measured container resource samples

GET
/api/v1/org/{orgId}/project/{projectId}/resources

Authorization

cookievg_session<token>

The console's session cookie, set when you sign in. Every operation accepts it, at the role the operation names.

Path Parameters

orgId*string

Authorised orgId; the server must verify organisation/project ownership before any read.

Length1 <= length
projectId*string

Authorised projectId; the server must verify organisation/project ownership before any read.

Length1 <= length

Response Body

Authorised read result. Null means unreported, never zero. Source-specific coverage limits remain visible.

application/json
  1. response
source*string
resources*array<>
Example Request
curl -X GET 'https://example.com/api/v1/org/string/project/string/resources'
Example Response
{  "source": "string",  "resources": [    {      "id": "string",      "kind": "string",      "target": "string",      "containerId": "string",      "host": "string",      "sourceStatus": {        "lastReadAt": "2019-08-24T14:15:22Z",        "lastGoodReadAt": "2019-08-24T14:15:22Z",        "errorClass": "unauthenticated"      },      "samples": [        {          "t": "2019-08-24T14:15:22Z",          "observedAt": "2019-08-24T14:15:22Z",          "cpuUsed": 0,          "cpuCores": 0,          "memoryBytes": 0,          "memoryLimitBytes": 0        }      ]    }  ]}

Was this page helpful?