Alerting: Add custom grouping for alert groups (#37378)

* Group alertmangaer alerts by custom grouping

* Filter am groups

* Style filter components

* Style filter bar and add clear functionality

* rename components to alert group

* use query params for group filters

* filter style improvements

* add tests for group by

* Add grouping banner to better highlight groupings

* clean up hook logic
This commit is contained in:
Nathan Rodman
2021-08-19 09:22:52 -07:00
committed by GitHub
parent 6ed60c0bec
commit df791ae2af
22 changed files with 547 additions and 185 deletions

View File

@@ -127,8 +127,9 @@ export interface PrometheusRuleIdentifier {
}
export type RuleIdentifier = CloudRuleIdentifier | GrafanaRuleIdentifier | PrometheusRuleIdentifier;
export interface RuleFilterState {
export interface FilterState {
queryString?: string;
dataSource?: string;
alertState?: string;
groupBy?: string[];
}