constants.ts 955 B

123456789101112131415161718192021222324252627282930
  1. export const RULER_NOT_SUPPORTED_MSG = 'ruler not supported';
  2. export const RULE_LIST_POLL_INTERVAL_MS = 20000;
  3. export const ALERTMANAGER_NAME_QUERY_KEY = 'alertmanager';
  4. export const ALERTMANAGER_NAME_LOCAL_STORAGE_KEY = 'alerting-alertmanager';
  5. export const SILENCES_POLL_INTERVAL_MS = 20000;
  6. export const NOTIFICATIONS_POLL_INTERVAL_MS = 20000;
  7. export const TIMESERIES = 'timeseries';
  8. export const TABLE = 'table';
  9. export const STAT = 'stat';
  10. export enum Annotation {
  11. description = 'description',
  12. summary = 'summary',
  13. runbookURL = 'runbook_url',
  14. alertId = '__alertId__',
  15. dashboardUID = '__dashboardUid__',
  16. panelID = '__panelId__',
  17. }
  18. export const annotationLabels: Record<Annotation, string> = {
  19. [Annotation.description]: 'Description',
  20. [Annotation.summary]: 'Summary',
  21. [Annotation.runbookURL]: 'Runbook URL',
  22. [Annotation.dashboardUID]: 'Dashboard UID',
  23. [Annotation.panelID]: 'Panel ID',
  24. [Annotation.alertId]: 'Alert ID',
  25. };