Files
2024-02-15 17:01:50 +00:00

9 lines
288 B
TypeScript

import {parseField, parseMRI} from 'sentry/utils/metrics/mri';
/**
* Currently we can tell if an alert is a custom metric alert by checking the aggregate for a MRI,
*/
export function isCustomMetricAlert(aggregate: string): boolean {
return !!parseMRI(parseField(aggregate)?.mri);
}