eventAttachment.ts 494 B

123456789101112131415161718
  1. import type {EventAttachment as TEventAttachment} from 'sentry/types';
  2. export function EventAttachment(params = {}): TEventAttachment {
  3. return {
  4. id: '1',
  5. name: 'screenshot.png',
  6. headers: {
  7. 'Content-Type': 'image/png',
  8. },
  9. mimetype: 'image/png',
  10. size: 84235,
  11. sha1: '986043ce8056f3cde048720d30a3959a6692fbef',
  12. dateCreated: '2022-09-12T09:27:30.512445Z',
  13. type: 'event.attachment',
  14. event_id: '12345678901234567890123456789012',
  15. ...params,
  16. };
  17. }