opsgenieIntegrationProvider.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. import type {IntegrationProvider} from 'sentry/types/integrations';
  2. export function OpsgenieIntegrationProviderFixture(
  3. params: Partial<IntegrationProvider> = {}
  4. ): IntegrationProvider {
  5. return {
  6. key: 'opsgenie',
  7. slug: 'opsgenie',
  8. name: 'Opsgenie (Integration)',
  9. metadata: {
  10. description: 'hi',
  11. features: [
  12. {description: '*markdown* feature description', featureGate: '', featureId: 3},
  13. ],
  14. author: 'The Sentry Team',
  15. noun: 'Installation',
  16. issue_url:
  17. 'https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug.yml&title=Integration%20Problem',
  18. source_url:
  19. 'https://github.com/getsentry/sentry/tree/master/src/sentry/integrations/opsgenie',
  20. aspects: {},
  21. },
  22. canAdd: true,
  23. canDisable: false,
  24. features: ['alert-rule', 'incident-management'],
  25. setupDialog: {
  26. url: '/organizations/sentry/integrations/opsgenie/setup/',
  27. width: 600,
  28. height: 600,
  29. },
  30. ...params,
  31. };
  32. }