import { Logger } from 'kibana/server' ; import { AlertingPlugin } from '../../../../alerting/server' ; import { registerAnomalyDetectionAlertType } from './register_anomaly_detection_alert_type' ; import { SharedServices } from '../../shared_services' ; import { registerJobsMonitoringRuleType } from './register_jobs_monitoring_rule_type' ; import { MlServicesProviders } from '../../shared_services/shared_services' ; export interface RegisterAlertParams { alerting : AlertingPlugin [ 'setup' ] ; logger : Logger ; mlSharedServices : SharedServices ; mlServicesProviders : MlServicesProviders ; } export function registerMlAlerts ( params ) { registerAnomalyDetectionAlertType ( params ) ; registerJobsMonitoringRuleType ( params ) ; }