Metric conditions
Create a metric condition
Hosts and projects must belong to the team (422 otherwise). The condition is checked on the next report of each host it applies to.
post/metric-conditions
Request
- Base URLhttps://api.spectate.net/v1
- AuthHTTP bearer
Request body
Example request
{
"condition": {
"threshold": 90,
"duration_minutes": 5,
"hosts": [
{
"label": "web-1"
}
],
"projects": [
{
"name": "Production"
}
]
},
"threshold": 90,
"duration_minutes": 5
}Response
The new metric condition.
Example response
{
"threshold": 90,
"duration_minutes": 5,
"hosts": [
{
"label": "web-1"
}
],
"projects": [
{
"name": "Production"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.