eventIdQueryResult.ts 410 B

12345678910111213141516171819
  1. import type {EventIdResponse} from 'sentry/types';
  2. export function EventIdQueryResult(params = {}): EventIdResponse {
  3. const event = TestStubs.Event({
  4. metadata: {
  5. type: 'event type',
  6. value: 'event description',
  7. },
  8. });
  9. return {
  10. organizationSlug: 'org-slug',
  11. projectSlug: 'project-slug',
  12. groupId: event.groupID,
  13. eventId: event.eventID,
  14. event,
  15. ...params,
  16. };
  17. }