tombstones.ts 833 B

123456789101112131415161718192021222324252627282930
  1. import {EventOrGroupType, GroupTombstone} from 'sentry/types';
  2. export function TombstonesFixture(params = []): GroupTombstone[] {
  3. return [
  4. {
  5. culprit: 'poll(../../sentry/scripts/views.js)',
  6. level: 'error',
  7. actor: {
  8. username: 'billy@sentry.io',
  9. id: '1',
  10. name: 'billy vong',
  11. avatarUrl:
  12. 'https://secure.gravatar.com/avatar/7b544e8eb9d08ed777be5aa82121155a?s=32&d=mm',
  13. avatar: {
  14. avatarUuid: '483ed7478a2248d59211f538c2997e0b',
  15. avatarType: 'letter_avatar',
  16. },
  17. email: 'billy@sentry.io',
  18. ip_address: '0.0.0.0',
  19. },
  20. type: EventOrGroupType.ERROR,
  21. id: '1',
  22. metadata: {
  23. type: 'TypeError',
  24. value: "Object [object Object] has no method 'updateFrom'",
  25. },
  26. },
  27. ...params,
  28. ];
  29. }