Computers

Get computer metrics

Changed on

Returns CPU, memory, and disk usage metrics for an active managed computer. Not supported for computers connected through Remote Control.

get/api/v0/computers/{computerId}/metrics

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

computerId, string required

Computer ID. Must not contain "/" and must not be "." or "..".

Query parameters

start, string date-time

Start of time range (ISO 8601)

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

object[] required
timestamp, string required
cpuUsedPct, number required
cpuCount, number required
memUsed, number required
memTotal, number required
diskUsed, number required
diskTotal, number required

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property detail from the response with the status

    • breaking

      removed the required property status from the response with the status

    26 more changes in this revision