autofixRootCauseData.ts 602 B

123456789101112131415161718
  1. import { AutofixRootCauseCodeContext } from 'sentry-fixture/autofixRootCauseCodeContext';
  2. import type { AutofixRootCauseData } from 'sentry/components/events/autofix/types';
  3. export function AutofixRootCauseData(
  4. params: Partial<AutofixRootCauseData> = {}
  5. ): AutofixRootCauseData {
  6. return {
  7. id: '100',
  8. title: 'This is the title of a root cause.',
  9. description: 'This is the description of a root cause.',
  10. reproduction: 'This is the reproduction of a root cause.',
  11. actionability: 0.8,
  12. likelihood: 0.9,
  13. code_context: [AutofixRootCauseCodeContext()],
  14. ...params,
  15. };
  16. }