Machines

Get Machine usage

Returns the Machine's total resource usage and its cost in USD cents, accumulated since the Machine was created. Usage data can lag by up to 60 seconds.

get/machines/{id}/usage

Request

  • Base URL: /v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /v1/machines/{id}/usage
  • Auth: HTTP bearer

Path parameters

idstring required

The stable Machine ID (UUID).

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

currencystring required

The cost currency. Always USD.

machine_idstring required

The stable Machine ID.

total_cost_centsnumber double required

The total cost in USD cents across all metrics.

Example response

{
  "$schema": "/v1/schemas/MachineUsageResponse.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.