settings.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 {t} from 'sentry/locale';
  12. import type {Aggregate} from 'sentry/views/starfish/types';
  13. export const MODULE_TITLE = t('Queries');
  14. export const BASE_URL = 'database';
  15. export const MIN_SDK_VERSION_BY_PLATFORM: {[platform: string]: string} = {
  16. 'sentry.python': '1.29.2',
  17. 'sentry.javascript': '7.63.0',
  18. 'sentry.laravel': '3.8.0',
  19. 'sentry.cocoa': '8.11.0',
  20. 'sentry.java': '6.29.0',
  21. 'sentry.ruby': '5.11.0',
  22. 'sentry.dotnet': '3.39.0',
  23. 'sentry.symfony': '4.11.0',
  24. 'sentry.android': '6.30.0',
  25. };
  26. export const DEFAULT_INTERVAL = '10m';
  27. export const DEFAULT_DURATION_AGGREGATE: Aggregate = 'avg';
  28. export const CHART_HEIGHT = 160;
  29. export const COUNTER_GRANULARITIES = new GranularityLadder([
  30. [SIXTY_DAYS, '1d'],
  31. [THIRTY_DAYS, '12h'],
  32. [TWO_WEEKS, '4h'],
  33. [TWENTY_FOUR_HOURS, '30m'],
  34. [SIX_HOURS, '5m'],
  35. [ONE_HOUR, '1m'],
  36. [0, '1m'],
  37. ]);
  38. export const DISTRIBUTION_GRANULARITIES = new GranularityLadder([
  39. [TWO_WEEKS, '1d'],
  40. [FORTY_EIGHT_HOURS, '1h'],
  41. [TWENTY_FOUR_HOURS, '30m'],
  42. [SIX_HOURS, '5m'],
  43. [ONE_HOUR, '1m'],
  44. [0, '1m'],
  45. ]);
  46. export const MODULE_DESCRIPTION = t(
  47. 'Investigate the performance of database queries and get the information necessary to improve them.'
  48. );
  49. export const MODULE_DOC_LINK = 'https://docs.sentry.io/product/performance/queries/';