serviceIncident.ts 887 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {SentryServiceIncident} from 'sentry/types';
  2. export function ServiceIncidentFixture(
  3. params: Partial<SentryServiceIncident> = {}
  4. ): SentryServiceIncident {
  5. return {
  6. id: '1',
  7. status: '',
  8. name: 'Test Incident',
  9. createdAt: '2022-05-23T13:33:38.737-07:00',
  10. updates: [
  11. {
  12. status: '',
  13. updatedAt: '2022-05-23T13:33:38.737-07:00',
  14. body: 'Things look bad',
  15. },
  16. {
  17. status: '',
  18. updatedAt: '2022-05-23T13:45:38.737-07:00',
  19. body: 'Investigating',
  20. },
  21. ],
  22. affectedComponents: [
  23. {
  24. name: '',
  25. status: 'major_outage',
  26. updatedAt: '2022-05-23T13:33:38.737-07:00',
  27. },
  28. {
  29. name: 'Second Update',
  30. status: 'operational',
  31. updatedAt: '2022-05-23T13:45:38.737-07:00',
  32. },
  33. ],
  34. url: 'https://status.sentry.io',
  35. ...params,
  36. };
  37. }