import { CoreSetup } from 'src/core/server' ; import { FixtureStartDeps , FixtureSetupDeps } from './plugin' ; import { RuleType } from '../../../../../../../plugins/alerting/server' ; export function defineAlertTypes ( core , { alerting } ) { const noopRestrictedAlertType = { id : 'test.restricted-noop' , name : 'Test: Restricted Noop' , actionGroups : [ { id : 'default' , name : 'Default' } ] , producer : 'alertsRestrictedFixture' , defaultActionGroupId : 'default' , minimumLicenseRequired : 'basic' , isExportable : true , recoveryActionGroup : { id : 'restrictedRecovered' , name : 'Restricted Recovery' } , async executor ( ) { } , } ; const noopUnrestrictedAlertType = { id : 'test.unrestricted-noop' , name : 'Test: Unrestricted Noop' , actionGroups : [ { id : 'default' , name : 'Default' } ] , producer : 'alertsRestrictedFixture' , defaultActionGroupId : 'default' , minimumLicenseRequired : 'basic' , isExportable : true , async executor ( ) { } , } ; alerting . registerType ( noopRestrictedAlertType ) ; alerting . registerType ( noopUnrestrictedAlertType ) ; }