Werk #8579: Generalize Livestatus filter operators
| Component | Livestatus | ||
| Title | Generalize Livestatus filter operators | ||
| Date | Dec 2, 2016 | ||
| Level | Trivial Change | ||
| Class | New Feature | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
Previously, some filter operator did not work for numbers or had only a special meaning with certain columns. This has been generalized in a uniform way, so all operators work for numbers now, too.
The operators ~, =~, and ~~ interpret numbers as bit sets, and have the following meaning:
- x ~ y means: x is a superset of y
- x =~ y means: x is a subset of y
- x ~~ y means: x contains at least one element of y
This is consistent with the way attribute list columns work and makes the Livestatus semantics more regular.