Skip to content

Commit dd727b5

Browse files
author
Aaron Caldwell
committed
Update config to enable geo alerts: enableGeoTrackingThresholdAlert -> enableGeoAlerts
1 parent af967c6 commit dd727b5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

x-pack/plugins/stack_alerts/common/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { schema, TypeOf } from '@kbn/config-schema';
88

99
export const configSchema = schema.object({
1010
enabled: schema.boolean({ defaultValue: true }),
11-
enableGeoTrackingThresholdAlert: schema.boolean({ defaultValue: false }),
11+
enableGeoAlerts: schema.boolean({ defaultValue: false }),
1212
});
1313

1414
export type Config = TypeOf<typeof configSchema>;

x-pack/plugins/stack_alerts/public/alert_types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

x-pack/plugins/stack_alerts/server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export { ID as INDEX_THRESHOLD_ID } from './alert_types/index_threshold/alert_ty
1111

1212
export 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
};

0 commit comments

Comments
 (0)