opsgenieIntegration.tsx 763 B

123456789101112131415161718192021222324252627282930
  1. import {OrganizationIntegration} from 'sentry/types';
  2. export function OpsgenieIntegrationFixture(
  3. params: Partial<OrganizationIntegration> = {}
  4. ): OrganizationIntegration {
  5. return {
  6. id: '1',
  7. name: 'hello-world',
  8. icon: null,
  9. domainName: 'hello-world.app.opsgenie.com',
  10. accountType: null,
  11. status: 'active',
  12. provider: {
  13. key: 'opsgenie',
  14. slug: 'opsgenie',
  15. name: 'Opsgenie',
  16. canAdd: true,
  17. canDisable: false,
  18. features: ['enterprise-alert-rule', 'enterprise-incident-management'],
  19. aspects: {},
  20. },
  21. configOrganization: [],
  22. configData: {},
  23. externalId: 'hello-world',
  24. organizationId: '',
  25. organizationIntegrationStatus: 'active',
  26. gracePeriodEnd: '',
  27. ...params,
  28. };
  29. }