event.ts 657 B

1234567891011121314151617181920212223242526272829
  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. contexts: {},
  26. ...params,
  27. };
  28. }