Monitoring
Get real-time workload recommendation
Changed onReturns system workload metrics and an actionable recommendation: normal, throttle, shed, or pause. Thresholds are runtime-configurable via MC_WORKLOAD_* environment variables.
get/api/workload
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- API key in cookie __Host-mc-session
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Workload snapshot and recommendation
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking