Usage

One project's usage per day (CPU, memory, bandwidth, storage, build minutes) against what it runs with, its volumes, its share of the billing period's build minutes and its warnings

get/projects/{projectId}/usage

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/usage
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required

Query parameters

range'7d' | '30d'

Response

Usage

projectIdstring uuid required
organizationIdstring uuid required
namestring required
range'7d' | '30d' required
fromstring required

UTC day, YYYY-MM-DD

tostring required

UTC day, YYYY-MM-DD

generatedAtstring required

ISO-8601 timestamp

canUpgradeboolean required

the caller can change the plan (billing:write) and the team has limits to raise

unlimitedboolean required

a team without plan limits: no warnings and nothing to upgrade

Changes

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