File tree Expand file tree Collapse file tree
x-pack/plugins/stack_alerts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { schema, TypeOf } from '@kbn/config-schema';
88
99export const configSchema = schema . object ( {
1010 enabled : schema . boolean ( { defaultValue : true } ) ,
11- enableGeoTrackingThresholdAlert : schema . boolean ( { defaultValue : false } ) ,
11+ enableGeoAlerts : schema . boolean ( { defaultValue : false } ) ,
1212} ) ;
1313
1414export type Config = TypeOf < typeof configSchema > ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function registerAlertTypes({
1717 alertTypeRegistry : TriggersAndActionsUIPublicPluginSetup [ 'alertTypeRegistry' ] ;
1818 config : Config ;
1919} ) {
20- if ( config . enableGeoTrackingThresholdAlert ) {
20+ if ( config . enableGeoAlerts ) {
2121 alertTypeRegistry . register ( getGeoThresholdAlertType ( ) ) ;
2222 alertTypeRegistry . register ( getGeoContainmentAlertType ( ) ) ;
2323 }
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ export { ID as INDEX_THRESHOLD_ID } from './alert_types/index_threshold/alert_ty
1111
1212export const config : PluginConfigDescriptor < Config > = {
1313 exposeToBrowser : {
14- enableGeoTrackingThresholdAlert : true ,
14+ enableGeoAlerts : true ,
1515 } ,
1616 schema : configSchema ,
1717 deprecations : ( { renameFromRoot } ) => [
1818 renameFromRoot (
1919 'xpack.triggers_actions_ui.enableGeoTrackingThresholdAlert' ,
20- 'xpack.stack_alerts.enableGeoTrackingThresholdAlert '
20+ 'xpack.stack_alerts.enableGeoAlerts '
2121 ) ,
2222 ] ,
2323} ;
You can’t perform that action at this time.
0 commit comments