mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
10 lines
317 B
TypeScript
10 lines
317 B
TypeScript
import {Dataset} from '../types';
|
|
|
|
/**
|
|
* Currently we can tell if an alert is a crash free alert by the dataset,
|
|
* but this may become more complicated soon
|
|
*/
|
|
export function isCrashFreeAlert(dataset?: Dataset): boolean {
|
|
return dataset !== undefined && [Dataset.SESSIONS, Dataset.METRICS].includes(dataset);
|
|
}
|