alerts.ts 475 B

1234567891011121314151617
  1. import {t} from 'sentry/locale';
  2. import type {AlertConfig} from 'sentry/views/insights/common/components/chartPanel';
  3. export const ALERTS: Record<string, AlertConfig> = {
  4. missRate: {
  5. aggregate: 'cache_miss_rate()',
  6. query: 'span.op:[cache.get_item,cache.get]',
  7. },
  8. spm: {
  9. aggregate: 'spm()',
  10. query: 'span.op:[cache.get_item,cache.get]',
  11. },
  12. duration: {
  13. aggregate: 'avg(transaction.duration)',
  14. name: t('Create Average Duration Alert'),
  15. },
  16. };