checkinProcessingError.ts 679 B

123456789101112131415161718192021222324252627282930
  1. import { CheckinProcessingError } from "sentry/views/monitors/types";
  2. export function CheckinProcessingErrorFixture(
  3. params: Partial<CheckinProcessingError> = {}
  4. ): CheckinProcessingError {
  5. return {
  6. id: '',
  7. checkin: {
  8. message: {
  9. message_type: 'check_in',
  10. payload: '',
  11. project_id: 1,
  12. retention_days: 90,
  13. sdk: '',
  14. start_time: 171659668,
  15. type: 'check_in',
  16. },
  17. partition: 0,
  18. payload: {
  19. check_in_id: '',
  20. environment: 'prod',
  21. monitor_slug: '',
  22. status: 'ok',
  23. },
  24. ts: '2024-05-25T00:24:29.739000',
  25. },
  26. errors: [{type: 1}],
  27. ...params,
  28. };
  29. }