123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import {
- FORTY_EIGHT_HOURS,
- GranularityLadder,
- ONE_HOUR,
- SIX_HOURS,
- SIXTY_DAYS,
- THIRTY_DAYS,
- TWENTY_FOUR_HOURS,
- TWO_WEEKS,
- } from 'sentry/components/charts/utils';
- import type {Aggregate} from 'sentry/views/starfish/types';
- export const MIN_SDK_VERSION_BY_PLATFORM: {[platform: string]: string} = {
- 'sentry.python': '1.29.2',
- 'sentry.javascript': '7.63.0',
- 'sentry.laravel': '3.8.0',
- 'sentry.cocoa': '8.11.0',
- 'sentry.java': '6.29.0',
- 'sentry.ruby': '5.11.0',
- 'sentry.dotnet': '3.39.0',
- 'sentry.symfony': '4.11.0',
- 'sentry.android': '6.30.0',
- };
- export const DEFAULT_INTERVAL = '10m';
- export const DEFAULT_DURATION_AGGREGATE: Aggregate = 'avg';
- export const CHART_HEIGHT = 160;
- export const COUNTER_GRANULARITIES = new GranularityLadder([
- [SIXTY_DAYS, '1d'],
- [THIRTY_DAYS, '12h'],
- [TWO_WEEKS, '4h'],
- [TWENTY_FOUR_HOURS, '30m'],
- [SIX_HOURS, '5m'],
- [ONE_HOUR, '1m'],
- [0, '1m'],
- ]);
- export const DISTRIBUTION_GRANULARITIES = new GranularityLadder([
- [TWO_WEEKS, '1d'],
- [FORTY_EIGHT_HOURS, '1h'],
- [TWENTY_FOUR_HOURS, '30m'],
- [SIX_HOURS, '5m'],
- [ONE_HOUR, '1m'],
- [0, '1m'],
- ]);
|