Start Now

Monitors


Edit Monitor

Request

PATCH /monitors/uuid

Parameter

NameTypeDescription
uuidstringRequired -- Monitor uuid
namestringName of the Monitor
titlestringTitle of Monitor for Status Page (Optional)
typestringScheme or Protocol
urnstringUrn address
intervalint64Interval in seconds
regionsarrayAn 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",
  "description": "Description",
  "interval": "2",
  "regions": [ 1, 5 ],
  "groups": [ "93742199-d3d4-4a0a-a7bb-9e66e0a3f83b", "c5623708-3fa4-4598-afc4-d134ca3a2ea8" ],
  "degradedThreshold": 2,
  "apdexThreshold": 0.75`
}

Request Curl Example

curl -X PATCH \
-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/3373ceee-9da4-46b4-ab62-212b1b864823"

Response Example

Status: 200 updated

{
  "uuid": "3373ceee-9da4-46b4-ab62-212b1b864823",
  "name": "Example Monitor",
  "title": "Title for Example Monitor",
  "type": "http",
  "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",
  "updatedAt": "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.