mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 10:26:40 +00:00
* feat: anamoly detection - initial ui * feat: anamoly detection - oct 10 * feat: use antd checkbox * feat: handle multiple series * feat: handle chart height on switch btwn threshold / anomaly * feat: do not update url on detection type change * chore: pr clean up * feat: remove chart container background
11 lines
459 B
TypeScript
11 lines
459 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.ANOMALY_BASED_ALERT]: DataSource.METRICS,
|
|
[AlertTypes.METRICS_BASED_ALERT]: DataSource.METRICS,
|
|
[AlertTypes.LOGS_BASED_ALERT]: DataSource.LOGS,
|
|
[AlertTypes.TRACES_BASED_ALERT]: DataSource.TRACES,
|
|
[AlertTypes.EXCEPTIONS_BASED_ALERT]: DataSource.TRACES,
|
|
};
|