autofixRootCauseData.ts 541 B

1234567891011121314151617
  1. import {AutofixRootCauseSuggestedFix} from 'sentry-fixture/autofixRootCauseSuggestedFix';
  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. suggested_fixes: [AutofixRootCauseSuggestedFix()],
  13. ...params,
  14. };
  15. }