Skip to content

Commit 36d156d

Browse files
author
Aaron Caldwell
committed
GA Geo containment alerts. Remove Geo containment alert experimental config settings and refs (#90301)
1 parent 6582eaa commit 36d156d

File tree

5 files changed

+4
-22
lines changed

5 files changed

+4
-22
lines changed

docs/user/alerting/geo-alert-types.asciidoc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
[[geo-alert-types]]
33
== Geo alert types
44

5-
experimental[] Two additional stack alerts are available:
6-
<<alert-type-tracking-threshold>> and <<alert-type-tracking-containment>>. To enable,
7-
add the following configuration to your `kibana.yml`:
8-
9-
```yml
10-
xpack.stack_alerts.enableGeoAlerting: true
11-
```
5+
Two additional stack alerts are available:
6+
<<alert-type-tracking-threshold>> and <<alert-type-tracking-containment>>.
127

138
As with other stack alerts, you need `all` access to the *Stack Alerts* feature
149
to be able to create and edit either of the geo alerts.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { schema, TypeOf } from '@kbn/config-schema';
99

1010
export const configSchema = schema.object({
1111
enabled: schema.boolean({ defaultValue: true }),
12-
enableGeoAlerting: schema.boolean({ defaultValue: false }),
1312
});
1413

1514
export type Config = TypeOf<typeof configSchema>;

x-pack/plugins/stack_alerts/public/alert_types/geo_containment/readme.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ project. To edit it, open this file in your editor of choice, add the line descr
1919
the next step to the bottom of the file (or really anywhere) and save. For more details
2020
on different config modifications or on how to make production config modifications,
2121
see [the current docs](https://www.elastic.co/guide/en/kibana/current/settings.html)
22-
- Set the following configuration settings in your `config/kibana.yml`:
23-
`xpack.stack_alerts.enableGeoAlerting: true`
2422

2523
### 2. Run ES/Kibana dev env with ssl enabled
2624
- In two terminals, run the normal commands to launch both elasticsearch and kibana but

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ export function registerAlertTypes({
1818
alertTypeRegistry: TriggersAndActionsUIPublicPluginSetup['alertTypeRegistry'];
1919
config: Config;
2020
}) {
21-
if (config.enableGeoAlerting) {
22-
alertTypeRegistry.register(getGeoContainmentAlertType());
23-
}
21+
alertTypeRegistry.register(getGeoContainmentAlertType());
2422
alertTypeRegistry.register(getThresholdAlertType());
2523
alertTypeRegistry.register(getEsQueryAlertType());
2624
}

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,8 @@ import { configSchema, Config } from '../common/config';
1111
export { ID as INDEX_THRESHOLD_ID } from './alert_types/index_threshold/alert_type';
1212

1313
export const config: PluginConfigDescriptor<Config> = {
14-
exposeToBrowser: {
15-
enableGeoAlerting: true,
16-
},
14+
exposeToBrowser: {},
1715
schema: configSchema,
18-
deprecations: ({ renameFromRoot }) => [
19-
renameFromRoot(
20-
'xpack.triggers_actions_ui.enableGeoTrackingThresholdAlert',
21-
'xpack.stack_alerts.enableGeoAlerting'
22-
),
23-
],
2416
};
2517

2618
export const plugin = (ctx: PluginInitializerContext) => new AlertingBuiltinsPlugin(ctx);

0 commit comments

Comments
 (0)