alerts.ts 718 B

1234567891011121314151617181920212223242526272829
  1. import type {AlertConfig} from 'sentry/views/insights/common/components/chartPanel';
  2. const QUERY = 'span.module:http span.op:http.client';
  3. export const ALERTS: Record<string, AlertConfig> = {
  4. spm: {
  5. aggregate: 'spm()',
  6. query: QUERY,
  7. },
  8. duration: {
  9. aggregate: 'avg(d:spans/duration@millisecond)',
  10. query: QUERY,
  11. },
  12. threeHundreds: {
  13. aggregate: 'http_response_rate(3)',
  14. query: QUERY,
  15. name: 'Create 3XX Response Rate Alert',
  16. },
  17. fourHundreds: {
  18. aggregate: 'http_response_rate(4)',
  19. query: QUERY,
  20. name: 'Create 4XX Response Rate Alert',
  21. },
  22. fiveHundreds: {
  23. aggregate: 'http_response_rate(5)',
  24. query: QUERY,
  25. name: 'Create 5XX Response Rate Alert',
  26. },
  27. };