Operator

Set this brand's server alert thresholds (a full replace; null = that alert is off). Needs a session from the last 5 minutes and a reason

put/operator/server/alerts

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/operator/server/alerts
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Request body

memoryPercentinteger nullable required
diskPercentinteger nullable required
swapPercentinteger nullable required
cpuPercentinteger nullable required
loadPerCorenumber nullable required

alert when the 1-minute load divided by the logical CPUs reaches this (1 = load equal to the number of cores)

forMinutesinteger required

an alert starts once every minute sample of this many minutes is at or above its threshold

notifyboolean required

send a server_alert notification (in-app and email) to the operators when an alert starts and ends

notestring nullable
reasonstring required

why (audited)

Response

Saved

replayboolean required

Changes

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