|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The filter configuration. |
||
| conditions |
array |
The subscription conditions. |
|
|
object |
The individual condition. |
||
| field |
string |
The JSON path of the event field, which supports dot notation for nested fields. |
labels.alertname |
| op |
string |
The comparison operator. |
EQ |
| value |
string |
The matching value. Separate multiple values with commas when the operator is IN or NOT_IN. |
CRITICAL |
| expression |
string |
The expression. Specify either expression or relation. If expression is not empty, it takes precedence and relation is ignored. If expression is empty or not specified, relation (AND or OR) is used to perform a simple logical AND or OR operation on all conditions. The condition number corresponds to the index of the conditions array, starting from 1. Each condition evaluates whether a single event field matches based on field (the event field path, which supports dot notation for nested fields such as resource.tags.pod), op (the operator, such as CONTAIN, EQ, or IN), and value (the matching value). |
1 and 2 or 3 |
| relation |
string |
The logical relationship between conditions. This parameter takes effect when expression is empty. |
AND |
FilterSetting
Updated at:
Is this page helpful?