autofixRootCauseData.ts 539 B

1234567891011121314151617
  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. actionability: 0.8,
  11. likelihood: 0.9,
  12. code_context: [AutofixRootCauseCodeContext()],
  13. ...params,
  14. };
  15. }