Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 33 additions & 11 deletions content/en/api/v1/monitors/examples.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions data/api/v1/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9336,11 +9336,19 @@ components:
description: The monitor `CRITICAL` threshold.
format: double
type: number
critical_query:
description: Query evaluated as a dynamic `CRITICAL` threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
example: 'formula("2 * query1").rollup("avg").last("6mo")'
type: string
critical_recovery:
description: The monitor `CRITICAL` recovery threshold.
format: double
nullable: true
type: number
critical_recovery_query:
description: Query evaluated as a dynamic `CRITICAL` recovery threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
example: 'formula("1.5 * query1").rollup("avg").last("3mo")'
type: string
ok:
description: The monitor `OK` threshold.
format: double
Expand Down Expand Up @@ -34402,6 +34410,10 @@ paths:
- `operator`: <, <=, >, >=, ==, or !=
- `#`: an integer or decimal number used to set the threshold

To use a dynamic threshold on a metric monitor with a formula query, replace `#` with the `threshold` keyword
(for example, `... > threshold`) and provide the threshold as a query via `critical_query` on `options.thresholds`.
This feature is in preview.

If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window),
timeshift):space_aggr:metric{tags} [by {key}] operator #` with:

Expand Down
Loading
Loading