Alerting: support label matcher syntax in alert rule list filter (#36408)

* Add filter parsing to rule list filters

* Add unit tests for label parsing

* Make label operators an enum

* add example for parsing function

* Update labels operator regex

* Add tests to rule list for filtering

* add additional test for testing alert instances filtering

* Use tooltip for query syntax example

* refactor to use Matchers for filtering

* Update docs for label filtering on rules list

* style fixes
This commit is contained in:
Nathan Rodman
2021-07-26 12:05:49 -07:00
committed by GitHub
parent ffa0ef9b3d
commit 5f0bc252bc
7 changed files with 279 additions and 19 deletions

View File

@@ -128,7 +128,6 @@ export interface QueryResultBase {
export interface Labels {
[key: string]: string;
}
export interface Column {
text: string; // For a Column, the 'text' is the field name
filterable?: boolean;