updateMetricThresholds
Update metric thresholds for an environment.
updateMetricThresholds(
input: SetOrUpdateMetricThresholdsInput
): SetOrUpdateMetricThresholdPayload
Example
- Query
- Variables
- Response
mutation ($input: SetOrUpdateMetricThresholdsInput) {
updateMetricThresholds(input: $input) {
success
thresholds {
id
metricName
operator
value
}
}
}
{
"input": {
"envId": 42,
"metricName": "metricName",
"thresholds": [
{
"operator": "operator",
"value": 30.7
}
]
}
}
{
"data": {
"updateMetricThresholds": {
"success": true,
"thresholds": [
{
"id": 42,
"metricName": "metricName",
"operator": "operator",
"value": 30.7
}
]
}
}
}
Arguments
updateMetricThresholds.input ● SetOrUpdateMetricThresholdsInput input common
The environment, metric, and thresholds to update.
Type
SetOrUpdateMetricThresholdPayload object common
The result of setting or updating metric thresholds.