constants.tsx 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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.EventUniqueUserFrequencyConditionWithConditions',
  5. 'sentry.rules.conditions.event_frequency.EventFrequencyPercentCondition',
  6. ];
  7. export const CHANGE_ALERT_PLACEHOLDERS_LABELS = {
  8. 'sentry.rules.conditions.event_frequency.EventFrequencyCondition':
  9. 'Number of events in an issue is',
  10. 'sentry.rules.conditions.event_frequency.EventUniqueUserFrequencyCondition':
  11. 'Number of users affected by an issue is',
  12. 'sentry.rules.conditions.event_frequency.EventUniqueUserFrequencyConditionWithConditions':
  13. 'Number of users affected by an issue (with tag values equal) is',
  14. 'sentry.rules.conditions.event_frequency.EventFrequencyPercentCondition':
  15. 'Percent of sessions affected by an issue is',
  16. };
  17. export const COMPARISON_TYPE_CHOICE_VALUES = {
  18. count: 'more than {value} in {interval}',
  19. percent: '{value}% higher in {interval} compared to {comparisonInterval} ago',
  20. };
  21. export const COMPARISON_TYPE_CHOICES: [string, string][] = [
  22. ['count', COMPARISON_TYPE_CHOICE_VALUES.count],
  23. ['percent', COMPARISON_TYPE_CHOICE_VALUES.percent],
  24. ];
  25. export const COMPARISON_INTERVAL_CHOICES: [string, string][] = [
  26. ['5m', '5 minutes'],
  27. ['15m', '15 minutes'],
  28. ['1h', 'one hour'],
  29. ['1d', 'one day'],
  30. ['1w', 'one week'],
  31. ['30d', '30 days'],
  32. ];