groupStats.ts 484 B

1234567891011121314151617181920212223
  1. import {GroupStats} from 'sentry/types';
  2. export function GroupStatsFixture(params: Partial<GroupStats> = {}): GroupStats {
  3. return {
  4. count: '327482',
  5. firstSeen: '2019-04-05T19:44:05.963Z',
  6. id: '1',
  7. lastSeen: '2019-04-11T01:08:59Z',
  8. stats: {
  9. '24h': [
  10. [1517281200, 2],
  11. [1517310000, 1],
  12. ],
  13. '30d': [
  14. [1514764800, 1],
  15. [1515024000, 122],
  16. ],
  17. },
  18. userCount: 35097,
  19. filtered: null,
  20. ...params,
  21. };
  22. }