isCrashFreeAlert.tsx 317 B

123456789
  1. import {Dataset} from '../types';
  2. /**
  3. * Currently we can tell if an alert is a crash free alert by the dataset,
  4. * but this may become more complicated soon
  5. */
  6. export function isCrashFreeAlert(dataset?: Dataset): boolean {
  7. return dataset !== undefined && [Dataset.SESSIONS, Dataset.METRICS].includes(dataset);
  8. }