mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
9 lines
288 B
TypeScript
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);
|
|
}
|