Alerting: Limit GMA alerts on the new list page (#105657)

This commit is contained in:
Konrad Lalik
2025-05-21 12:26:23 +02:00
committed by GitHub
parent 7361537253
commit e2cd5c870f
13 changed files with 42 additions and 23 deletions

View File

@ -3,7 +3,7 @@
import { DataQuery, RelativeTimeRange } from '@grafana/data';
import { ExpressionQuery } from 'app/features/expressions/types';
import { AlertGroupTotals } from './unified-alerting';
import { AlertGroupTotals, AlertInstanceTotals } from './unified-alerting';
export type Labels = Record<string, string>;
export type Annotations = Record<string, string>;
@ -170,7 +170,10 @@ export interface PromRuleGroupDTO<TRule = PromRuleDTO> {
lastEvaluation?: string;
}
export interface GrafanaPromAlertingRuleDTO extends GrafanaPromRuleDTOBase, PromAlertingRuleDTO {}
export interface GrafanaPromAlertingRuleDTO extends GrafanaPromRuleDTOBase, PromAlertingRuleDTO {
totals: AlertInstanceTotals;
totalsFiltered: AlertInstanceTotals;
}
export interface GrafanaPromRecordingRuleDTO extends GrafanaPromRuleDTOBase, PromRecordingRuleDTO {}