event.ts 679 B

123456789101112131415161718192021222324252627282930
  1. import {type Event as TEvent, EventOrGroupType} from 'sentry/types';
  2. export function Event(params = {}): TEvent {
  3. return {
  4. id: '1',
  5. message: 'ApiException',
  6. title: 'ApiException',
  7. metadata: {},
  8. entries: [],
  9. projectID: '1',
  10. groupID: '1',
  11. eventID: '12345678901234567890123456789012',
  12. dateCreated: '2019-05-21T18:01:48.762Z',
  13. dateReceived: '2019-05-21T18:01:48.762Z',
  14. tags: [],
  15. errors: [],
  16. crashFile: null,
  17. size: 0,
  18. dist: null,
  19. fingerprints: [],
  20. culprit: '',
  21. user: null,
  22. location: '',
  23. type: EventOrGroupType.ERROR,
  24. occurrence: null,
  25. resolvedWith: [],
  26. contexts: {},
  27. ...params,
  28. };
  29. }