settings.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import {
  2. FORTY_EIGHT_HOURS,
  3. GranularityLadder,
  4. ONE_HOUR,
  5. SIX_HOURS,
  6. SIXTY_DAYS,
  7. THIRTY_DAYS,
  8. TWENTY_FOUR_HOURS,
  9. TWO_WEEKS,
  10. } from 'sentry/components/charts/utils';
  11. export const MIN_SDK_VERSION_BY_PLATFORM: {[platform: string]: string} = {
  12. 'sentry.python': '1.29.2',
  13. 'sentry.javascript': '7.63.0',
  14. 'sentry.laravel': '3.8.0',
  15. 'sentry.cocoa': '8.11.0',
  16. 'sentry.java': '6.29.0',
  17. 'sentry.ruby': '5.11.0',
  18. 'sentry.dotnet': '3.39.0',
  19. 'sentry.symfony': '4.11.0',
  20. 'sentry.android': '6.30.0',
  21. };
  22. export const DEFAULT_INTERVAL = '10m';
  23. export const DEFAULT_DURATION_AGGREGATE = 'avg';
  24. export const CHART_HEIGHT = 160;
  25. export const COUNTER_GRANULARITIES = new GranularityLadder([
  26. [SIXTY_DAYS, '1d'],
  27. [THIRTY_DAYS, '12h'],
  28. [TWO_WEEKS, '4h'],
  29. [TWENTY_FOUR_HOURS, '30m'],
  30. [SIX_HOURS, '5m'],
  31. [ONE_HOUR, '1m'],
  32. [0, '1m'],
  33. ]);
  34. export const DISTRIBUTION_GRANULARITIES = new GranularityLadder([
  35. [TWO_WEEKS, '1d'],
  36. [FORTY_EIGHT_HOURS, '1h'],
  37. [TWENTY_FOUR_HOURS, '30m'],
  38. [SIX_HOURS, '5m'],
  39. [ONE_HOUR, '1m'],
  40. [0, '1m'],
  41. ]);