docIntegration.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. import {type DocIntegration as TDocIntegration} from 'sentry/types';
  2. export function DocIntegration(params = {}): TDocIntegration {
  3. return {
  4. name: 'Sample Doc',
  5. slug: 'sample-doc',
  6. author: 'The Sentry Team',
  7. url: 'https://example.com/sentry',
  8. popularity: 10,
  9. description: 'A helpful tutorial on how to setup this integration with Sentry',
  10. isDraft: false,
  11. features: [
  12. {
  13. featureId: 5,
  14. featureGate: 'incident-management',
  15. description:
  16. 'Manage incidents and outages by sending Sentry notifications to Sample Doc.',
  17. },
  18. {
  19. featureId: 7,
  20. featureGate: 'alert-rule',
  21. description:
  22. 'Configure Sentry rules to trigger notifications based on conditions you set through the Sentry webhook integration.',
  23. },
  24. ],
  25. resources: [
  26. {title: 'Documentation', url: 'https://example.com/sentry/docs'},
  27. {title: 'Support', url: 'https://example.com/sentry/support'},
  28. {title: 'Demo', url: 'https://example.com/sentry/demo'},
  29. ],
  30. ...params,
  31. };
  32. }