serviceIncident.js 766 B

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