autofixRootCauseSuggestedFix.ts 490 B

1234567891011121314151617
  1. import type {AutofixRootCauseSuggestedFix} from 'sentry/components/events/autofix/types';
  2. export function AutofixRootCauseSuggestedFix(
  3. params: Partial<AutofixRootCauseSuggestedFix> = {}
  4. ): AutofixRootCauseSuggestedFix {
  5. return {
  6. id: '200',
  7. title: 'This is the title of a suggested fix.',
  8. description: 'This is the description of a suggested fix.',
  9. elegance: 0.8,
  10. snippet: {
  11. file_path: 'src/file.py',
  12. snippet: 'x = 1 + 1;',
  13. },
  14. ...params,
  15. };
  16. }