Files
sentinel/fixtures/js-stubs/opsgenieIntegration.tsx
2024-02-15 17:01:50 +00:00

31 lines
763 B
TypeScript

import {OrganizationIntegration} from 'sentry/types';
export function OpsgenieIntegrationFixture(
params: Partial<OrganizationIntegration> = {}
): OrganizationIntegration {
return {
id: '1',
name: 'hello-world',
icon: null,
domainName: 'hello-world.app.opsgenie.com',
accountType: null,
status: 'active',
provider: {
key: 'opsgenie',
slug: 'opsgenie',
name: 'Opsgenie',
canAdd: true,
canDisable: false,
features: ['enterprise-alert-rule', 'enterprise-incident-management'],
aspects: {},
},
configOrganization: [],
configData: {},
externalId: 'hello-world',
organizationId: '',
organizationIntegrationStatus: 'active',
gracePeriodEnd: '',
...params,
};
}