mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 10:26:40 +00:00
10 lines
404 B
TypeScript
10 lines
404 B
TypeScript
|
|
import { AlertTypes } from 'types/api/alerts/alertTypes';
|
||
|
|
import { DataSource } from 'types/common/queryBuilder';
|
||
|
|
|
||
|
|
export const ALERTS_DATA_SOURCE_MAP: Record<AlertTypes, DataSource> = {
|
||
|
|
[AlertTypes.METRICS_BASED_ALERT]: DataSource.METRICS,
|
||
|
|
[AlertTypes.LOGS_BASED_ALERT]: DataSource.LOGS,
|
||
|
|
[AlertTypes.TRACES_BASED_ALERT]: DataSource.TRACES,
|
||
|
|
[AlertTypes.EXCEPTIONS_BASED_ALERT]: DataSource.TRACES,
|
||
|
|
};
|