tombstones.ts 879 B

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