x-api-secret API key header (OAuth Bearer tokens are not accepted).
Base path: /api/v1/performance
GET /performance
Returns the current performance snapshot including stats, time-series data, and alert thresholds.Authentication
Shared API secret configured via the
BOT_API_SECRET environment variable.Response
Returns a performance snapshot object with current metrics and historical time-series data.Current point-in-time metrics.
Currently configured alert thresholds.
Example
GET /performance/thresholds
Returns the current alert thresholds only.Authentication
Shared API secret.
Example
PUT /performance/thresholds
Updates one or more alert thresholds. Only the supplied fields are changed; omitted fields retain their current values.Authentication
Shared API secret.
Request body
All fields are optional but at least one must be provided. Values must be positive numbers.Alert threshold for V8 heap usage in MB.
Alert threshold for RSS in MB.
Alert threshold for CPU utilization percentage.
Alert threshold for command response time in ms.
Example
Error responses
| Status | Cause |
|---|---|
400 | No valid threshold fields provided, or a value is not a positive number |
401 | Missing or invalid x-api-secret |