Metrics

CPU and memory of a project over time (per resource: the project, its previews, its databases) against the allocated resources and the plan, with restarts and out-of-memory kills. 1h: every minute, 24h: 5-minute points, 7d/30d: from 15-minute rollups

get/projects/{projectId}/metrics

Request

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

Path parameters

projectIdstring uuid required

Query parameters

range'1h' | '24h' | '7d' | '30d'

Response

Metrics

projectIdstring uuid required
range'1h' | '24h' | '7d' | '30d' required
resolutionSecondsinteger required
fromstring required

ISO-8601 timestamp

tostring required

ISO-8601 timestamp

collectingboolean required

the host collector reported within the last 5 minutes (false: graphs are not collected on this server yet)

lastReportAtstring nullable required

when the collector last reported (platform-wide)

oomKillsCountedboolean required

false: the collector cannot read the kernel log, so oomKills stay 0

Changes

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