settings.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. import type {Aggregate} from 'sentry/views/starfish/types';
  12. export const MIN_SDK_VERSION_BY_PLATFORM: {[platform: string]: string} = {
  13. 'sentry.python': '1.29.2',
  14. 'sentry.javascript': '7.63.0',
  15. 'sentry.laravel': '3.8.0',
  16. 'sentry.cocoa': '8.11.0',
  17. 'sentry.java': '6.29.0',
  18. 'sentry.ruby': '5.11.0',
  19. 'sentry.dotnet': '3.39.0',
  20. 'sentry.symfony': '4.11.0',
  21. 'sentry.android': '6.30.0',
  22. };
  23. export const DEFAULT_INTERVAL = '10m';
  24. export const DEFAULT_DURATION_AGGREGATE: Aggregate = 'avg';
  25. export const CHART_HEIGHT = 160;
  26. export const COUNTER_GRANULARITIES = new GranularityLadder([
  27. [SIXTY_DAYS, '1d'],
  28. [THIRTY_DAYS, '12h'],
  29. [TWO_WEEKS, '4h'],
  30. [TWENTY_FOUR_HOURS, '30m'],
  31. [SIX_HOURS, '5m'],
  32. [ONE_HOUR, '1m'],
  33. [0, '1m'],
  34. ]);
  35. export const DISTRIBUTION_GRANULARITIES = new GranularityLadder([
  36. [TWO_WEEKS, '1d'],
  37. [FORTY_EIGHT_HOURS, '1h'],
  38. [TWENTY_FOUR_HOURS, '30m'],
  39. [SIX_HOURS, '5m'],
  40. [ONE_HOUR, '1m'],
  41. [0, '1m'],
  42. ]);