Monitors
Edit Monitor
Request
PATCH /monitors/uuid
Parameter
Name | Type | Description |
---|
uuid | string | Required -- Monitor uuid |
name | string | Name of the Monitor |
title | string | Title of Monitor for Status Page (Optional) |
type | string | Scheme or Protocol |
urn | string | Urn address |
interval | int64 | Interval in seconds |
regions | array | An array of regions ids |
description | string | Monitor description |
groups | array | An array of groups uuid |
degradedThreshold | float64 | Degraded value in seconds |
apdexThreshold | float64 | Apdex 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"
}