latestOpenAPI 3.0.02026-08-0819201.1 MB

411f9f98c01e

runtime quota usages

Returns usage metrics (CPU and Memory) of the specified contract. Returns Memory (in MiB) and CPU (in milli CPU) usage.

Memory usage is reported as a sum of RAM usage for each second during the specified period for each step. CPU usage is reported as an amount of consumed CPU for each step. Only a corresponding contract member can be authorized to access this resource.

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

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.

Response

OK

Example response

{
  "data": {
    "memory": 23039948,
    "cpu": 68423815
  }
}