settings.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. import {t} from 'sentry/locale';
  2. import {MODULE_TITLE as RESOURCES_MODULE_TITLE} from 'sentry/views/insights/browser/resources/settings';
  3. import {MODULE_TITLE as VITALS_MODULE_TITLE} from 'sentry/views/insights/browser/webVitals/settings';
  4. import {MODULE_TITLE as CACHE_MODULE_TITLE} from 'sentry/views/insights/cache/settings';
  5. import {MODULE_TITLE as DB_MODULE_TITLE} from 'sentry/views/insights/database/settings';
  6. import {MODULE_TITLE as HTTP_MODULE_TITLE} from 'sentry/views/insights/http/settings';
  7. import {MODULE_TITLE as AI_MODULE_TITLE} from 'sentry/views/insights/llmMonitoring/settings';
  8. import {MODULE_TITLE as APP_STARTS_MODULE_TITLE} from 'sentry/views/insights/mobile/appStarts/settings';
  9. import {MODULE_TITLE as SCREEN_LOADS_MODULE_TITLE} from 'sentry/views/insights/mobile/screenload/settings';
  10. import {MODULE_TITLE as MOBILE_UI_MODULE_TITLE} from 'sentry/views/insights/mobile/ui/settings';
  11. import {MODULE_TITLE as QUEUE_MODULE_TITLE} from 'sentry/views/insights/queues/settings';
  12. import {ModuleName} from 'sentry/views/insights/types';
  13. export const INSIGHTS_TITLE = t('Insights');
  14. export const INSIGHTS_BASE_URL = 'insights';
  15. export const DEFAULT_INTERVAL = '10m';
  16. export const MODULE_TITLES: Record<ModuleName, string> = {
  17. [ModuleName.DB]: DB_MODULE_TITLE,
  18. [ModuleName.HTTP]: HTTP_MODULE_TITLE,
  19. [ModuleName.CACHE]: CACHE_MODULE_TITLE,
  20. [ModuleName.QUEUE]: QUEUE_MODULE_TITLE,
  21. [ModuleName.SCREEN_LOAD]: SCREEN_LOADS_MODULE_TITLE,
  22. [ModuleName.APP_START]: APP_STARTS_MODULE_TITLE,
  23. [ModuleName.VITAL]: VITALS_MODULE_TITLE,
  24. [ModuleName.RESOURCE]: RESOURCES_MODULE_TITLE,
  25. [ModuleName.AI]: AI_MODULE_TITLE,
  26. [ModuleName.MOBILE_UI]: MOBILE_UI_MODULE_TITLE,
  27. [ModuleName.OTHER]: '',
  28. [ModuleName.ALL]: '',
  29. };