alerts.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import type {AlertConfig} from 'sentry/views/insights/common/components/chartPanel';
  2. export const ALERTS: Record<string, AlertConfig> = {
  3. lcp: {
  4. aggregate: 'performance_score(d:transactions/measurements.score.lcp@ratio)',
  5. query: 'has:measurements.score.total',
  6. name: 'Create LCP Score Alert',
  7. },
  8. fcp: {
  9. aggregate: 'performance_score(measurements.score.fcp)',
  10. query: 'has:measurements.score.total',
  11. name: 'Create FCP Score Alert',
  12. },
  13. cls: {
  14. aggregate: 'performance_score(measurements.score.cls)',
  15. query: 'has:measurements.score.total',
  16. name: 'Create CLS Score Alert',
  17. },
  18. ttfb: {
  19. aggregate: 'performance_score(measurements.score.ttfb)',
  20. query: 'has:measurements.score.total',
  21. name: 'Create TTFB Score Alert',
  22. },
  23. inp: {
  24. aggregate: 'performance_score(measurements.score.inp)',
  25. query: 'has:measurements.score.total',
  26. name: 'Create INP Score Alert',
  27. },
  28. total: {
  29. aggregate: 'performance_score(measurements.score.total)',
  30. query: 'has:measurements.score.total',
  31. name: 'Create Total Score Alert',
  32. },
  33. };