alerts.ts 411 B

1234567891011121314
  1. import type {AlertConfig} from 'sentry/views/insights/common/components/chartPanel';
  2. import {SpanMetricsField} from 'sentry/views/insights/types';
  3. export const ALERTS: Record<string, AlertConfig> = {
  4. spm: {
  5. aggregate: 'spm()',
  6. },
  7. duration: {
  8. aggregate: 'avg(d:spans/duration@millisecond)',
  9. },
  10. tokensUsed: {
  11. aggregate: `sum(c:spans/${SpanMetricsField.AI_TOTAL_TOKENS_USED}@none)`,
  12. },
  13. };