mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 16:42:26 +08:00
Alerting docs: Move the Condition operators
to the Classic condition section (#93997)
Alerting docs: Move the `Condition operators` to the Classic conditions section
This commit is contained in:
@ -53,19 +53,6 @@ The pending period specifies how long the condition must be met before firing, e
|
||||
|
||||
You can also set the pending period to zero to skip it and have the alert fire immediately once the condition is met.
|
||||
|
||||
## Condition operator
|
||||
|
||||
There are several condition operators available.
|
||||
|
||||
- **and**: Two conditions before and after must be true for the overall condition to be true.
|
||||
- **or**: If one of conditions before and after are true, the overall condition is true.
|
||||
- **logic-or**: If the condition before logic-or is true, the overall condition is immediately true, without evaluating subsequent conditions.
|
||||
|
||||
Here are some examples of operators.
|
||||
|
||||
- `TRUE and TRUE or FALSE and FALSE` evaluate to `FALSE`, because last two conditions return `FALSE`.
|
||||
- `TRUE and TRUE logic-or FALSE and FALSE` evaluate to `TRUE`, because the preceding condition returns `TRUE`.
|
||||
|
||||
## Evaluation example
|
||||
|
||||
Keep in mind:
|
||||
|
@ -111,6 +111,12 @@ Classic conditions exist mainly for compatibility reasons and should be avoided
|
||||
|
||||
Classic condition checks if any time series data matches the alert condition. It always produce one alert instance only, no matter how many time series meet the condition.
|
||||
|
||||
| Condition operators | How it works |
|
||||
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| and | Two conditions before and after must be true for the overall condition to be true. |
|
||||
| or | If one of conditions before and after are true, the overall condition is true. |
|
||||
| logic-or | If the condition before `logic-or` is true, the overall condition is immediately true, without evaluating subsequent conditions. For instance, `TRUE and TRUE logic-or FALSE and FALSE` evaluate to `TRUE`, because the preceding condition returns `TRUE`. |
|
||||
|
||||
## Aggregations
|
||||
|
||||
Grafana Alerting provides the following aggregation functions to enable you to further refine your query.
|
||||
|
Reference in New Issue
Block a user