latestOpenAPI 3.0.02026-08-0819201.1 MB

411f9f98c01e

runtime quota usages

Returns usage history (CPU and Memory) of the specified contract within defined period. Returns Memory (in MiB) and CPU (in milli CPU) usage.

Memory usage is reported as a sum of RAM usage for a day. CPU usage is reported as an amount of consumed CPU for a day. Only a corresponding contract member can be authorized to access this resource.

get/runtime-quota-usages/contracts/{contract_id}/history

Path parameters

contract_idstring required

Contract identifier

Query parameters

fromstring required

Start Date of the period (inclusive). Format – ISO 8601.

tostring required

End Date of the period (inclusive). Format – ISO 8601.

group_bystring

Param to specify aggregation period. Format - 'day', 'month' (default: 'month')

Response

OK

Example response

{
  "data": [
    {
      "id": "2019-09-01",
      "memory": 23039948,
      "cpu": 68423815
    }
  ]
}