Status Page

Create a new monitor

Changed on
post/projects/{project_id}/monitors

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

Request body

check_interval_secondsinteger nullable

How often to probe, in seconds. Defaults to 60 when omitted.

Clamped, not rejected: values below 30 are stored as 30 and non-positive values as 60, and the created monitor comes back with the clamped value — so the response always reports the interval the scheduler will actually use.

check_pathstring nullable
environment_idinteger required
monitor_typestring required
namestring required

Response

Monitor created successfully

check_interval_secondsinteger required
check_kind'environment' | 'http' | 'tcp' | 'tls' | 'dns' required

environment for a monitor of a Temps environment, otherwise the check run against check.target (ADR 108 D3, D4).

check_pathstring nullable
created_atstring date-time required
environment_idinteger nullable
idinteger required
is_activeboolean required
is_managedboolean required

Temps-managed HTTP monitor; independent monitors remain visible for workers.

monitor_typestring required
monitor_urlstring required
namestring required
next_check_atstring date-time nullable

When the scheduler will next probe this monitor. Read-only: it is maintained by the health-check scheduler, never accepted on write. null means the monitor has not been scheduled yet and is due on the next sweep.

probe_from_nodesboolean required

Also checked from worker nodes; down only when most locations agree (ADR 108 D5).

project_idinteger required
updated_atstring date-time required

Changes

    • info

      added the optional property check to the response with the status

    • info

      added the optional property location_results to the response with the status

    • info

      added the required property check_kind to the response with the status

    1 more change in this revision