v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBMonitors
Validate an existing monitor user template
Validate the structure and content of an existing monitor user template being updated to a new version.
post/api/v2/monitor/template/{template_id}/validate
Path parameters
template_idstring required
Example:00000000-0000-1234-0000-000000000000
ID of the monitor user template.
Request body
Example request
{
"data": {
"attributes": {
"description": "This is a template for monitoring user activity.",
"monitor_definition": {
"message": "You may need to add web hosts if this is consistently high.",
"name": "Bytes received on host0",
"query": "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100",
"type": "query alert"
},
"tags": [
"product:Our Custom App",
"integration:Azure"
],
"template_variables": [
{
"available_values": [
"value1",
"value2"
],
"defaults": [
"defaultValue"
],
"name": "regionName",
"tag_key": "datacenter"
}
],
"title": "Postgres CPU Monitor"
},
"id": "00000000-0000-1234-0000-000000000000",
"type": "monitor-user-template"
}
}Response
OK