Start Now

Monitors


Add Monitor

Request

POST /monitors

Parameters

NameTypeDescription
namestringRequired -- Name of the Monitor
titlestringTitle of Monitor for Status Page (Optional)
typestringRequired -- Scheme or Protocol
urnstringRequired -- Urn address
intervalint64Required -- Interval in seconds
regionsarrayRequired -- An array of regions ids
descriptionstringMonitor description
groupsarrayAn array of groups uuid
degradedThresholdfloat64Degraded value in seconds
apdexThresholdfloat64Apdex value in seconds

Request Payload Example

{
  "name": "Example Monitor",
  "title": "Title for Example Monitor",
  "type": "https",
  "urn": "example.com",
  "interval": "2",
  "description": "Description",
  "regions": [ 1, 5 ],
  "groups": [ "93742199-d3d4-4a0a-a7bb-9e66e0a3f83b", "c5623708-3fa4-4598-afc4-d134ca3a2ea8" ],
  "degradedThreshold": 2,
  "apdexThreshold": 0.75`
}

Request Curl Example

curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer d3d6763224e8f54ee5aeb08202b7eb101d97081876819cb48833d9f892185917" \
-d \
  '{
      "name":"Example Monitor",
      "title":"Title for Example Monitor",
      "type":"https",
      "urn":"example.com",
      "intervalId":2,
      "description":"Description",
      "regions":[ 1, 5 ],
      "groups":["93742199-d3d4-4a0a-a7bb-9e66e0a3f83b", "c5623708-3fa4-4598-afc4-d134ca3a2ea8"],
      "degradedThreshold":2,
      "apdexThreshold":0.75`
  }' \
"https://api.statsignal.dev/v1/monitors"

Response Example

Status: 201 Created

{
  "uuid": "3373ceee-9da4-46b4-ab62-212b1b864823",
  "name": "Example Monitor",
  "title": "Title for Example Monitor",
  "type": "https",
  "urn": "example.com",
  "description": "Description",
  "interval": "2",
  "regions": [
    1,
    5
  ],
  "groups": [
    "93742199-d3d4-4a0a-a7bb-9e66e0a3f83b",
    "c5623708-3fa4-4598-afc4-d134ca3a2ea8"
  ],
  "degradedThreshold": 2,
  "apdexThreshold": 0.75,
  "createdAt": "2020-11-2rT06:36:31Z",
}
Statsignal - Uptime monitoring and status page | Product Hunt
Statsignal is designed and built by 19 Signals LLC. Copyright ©2021 19 Signals LLC. All rights reserved.