constants.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. export const CHANGE_ALERT_CONDITION_IDS = [
  2. 'sentry.rules.conditions.event_frequency.EventFrequencyCondition',
  3. 'sentry.rules.conditions.event_frequency.EventUniqueUserFrequencyCondition',
  4. 'sentry.rules.conditions.event_frequency.EventFrequencyPercentCondition',
  5. ];
  6. export const CHANGE_ALERT_PLACEHOLDERS_LABELS = {
  7. 'sentry.rules.conditions.event_frequency.EventFrequencyCondition':
  8. 'Number of events in an issue is',
  9. 'sentry.rules.conditions.event_frequency.EventUniqueUserFrequencyCondition':
  10. 'Number of users affected by an issue is',
  11. 'sentry.rules.conditions.event_frequency.EventFrequencyPercentCondition':
  12. 'Percent of sessions affected by an issue is',
  13. };
  14. export const COMPARISON_TYPE_CHOICE_VALUES = {
  15. count: 'more than {value} in {interval}',
  16. percent: '{value}% higher in {interval} compared to {comparisonInterval} ago',
  17. };
  18. export const COMPARISON_TYPE_CHOICES: [string, string][] = [
  19. ['count', COMPARISON_TYPE_CHOICE_VALUES.count],
  20. ['percent', COMPARISON_TYPE_CHOICE_VALUES.percent],
  21. ];
  22. export const COMPARISON_INTERVAL_CHOICES: [string, string][] = [
  23. ['5m', '5 minutes'],
  24. ['15m', '15 minutes'],
  25. ['1h', 'one hour'],
  26. ['1d', 'one day'],
  27. ['1w', 'one week'],
  28. ['30d', '30 days'],
  29. ];