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

Request

  • Base URL: https://api.elastic.io/v2
  • URL: https://api.elastic.io/v2/runtime-quota-usages/contracts/{contract_id}/history
  • Auth: HTTP basic

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
    }
  ]
}

Changes

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