Files
Nathan Rodman a0dac9c6d9 Alerting: Add alertmanager notifications tab (#35759)
* Add alertmanager notifications tab

* Link to silences page from am alert

* Include summary for alertmanager group

* Fix colors for am state

* Add horizontal dividing line

* PR feedback

* Add basic unit test for alert notificaitons

* Rename Notificaitons component file

* Polling interval to groups

* Add alertmanager notifications tab

* Link to silences page from am alert

* Include summary for alertmanager group

* PR feedback

* Add basic unit test for alert notificaitons

* Rename Notificaitons component file

* Alerting: make alertmanager notifications view responsive (#36067)

* refac DynamicTableWithGuidelines

* more responsiveness fixes

* Add more to tests

* Add loading and alert state for notifications

Co-authored-by: Domas <domas.lapinskas@grafana.com>
2021-07-07 16:17:26 -07:00

31 lines
955 B
TypeScript

export const RULER_NOT_SUPPORTED_MSG = 'ruler not supported';
export const RULE_LIST_POLL_INTERVAL_MS = 20000;
export const ALERTMANAGER_NAME_QUERY_KEY = 'alertmanager';
export const ALERTMANAGER_NAME_LOCAL_STORAGE_KEY = 'alerting-alertmanager';
export const SILENCES_POLL_INTERVAL_MS = 20000;
export const NOTIFICATIONS_POLL_INTERVAL_MS = 20000;
export const TIMESERIES = 'timeseries';
export const TABLE = 'table';
export const STAT = 'stat';
export enum Annotation {
description = 'description',
summary = 'summary',
runbookURL = 'runbook_url',
alertId = '__alertId__',
dashboardUID = '__dashboardUid__',
panelID = '__panelId__',
}
export const annotationLabels: Record<Annotation, string> = {
[Annotation.description]: 'Description',
[Annotation.summary]: 'Summary',
[Annotation.runbookURL]: 'Runbook URL',
[Annotation.dashboardUID]: 'Dashboard UID',
[Annotation.panelID]: 'Panel ID',
[Annotation.alertId]: 'Alert ID',
};