mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -5,7 +5,7 @@ import { useStyles2, LinkButton } from '@grafana/ui';
|
||||
import { css } from '@emotion/css';
|
||||
|
||||
import { AlertLabels } from 'app/features/alerting/unified/components/AlertLabels';
|
||||
import { AmNotificationsGroupHeader } from 'app/features/alerting/unified/components/amnotifications/AmNotificationsGroupHeader';
|
||||
import { AlertGroupHeader } from 'app/features/alerting/unified/components/alert-groups/AlertGroupHeader';
|
||||
import { CollapseToggle } from 'app/features/alerting/unified/components/CollapseToggle';
|
||||
import { getNotificationsTextColors } from 'app/features/alerting/unified/styles/notifications';
|
||||
import { makeAMLink } from 'app/features/alerting/unified/utils/misc';
|
||||
@@ -33,7 +33,7 @@ export const AlertGroup = ({ alertManagerSourceName, group, expandAll }: Props)
|
||||
)}
|
||||
<div className={styles.row}>
|
||||
<CollapseToggle isCollapsed={!showAlerts} onToggle={() => setShowAlerts(!showAlerts)} />{' '}
|
||||
<AmNotificationsGroupHeader group={group} />
|
||||
<AlertGroupHeader group={group} />
|
||||
</div>
|
||||
{showAlerts && (
|
||||
<div className={styles.alerts}>
|
||||
|
||||
Reference in New Issue
Block a user