GA Geo containment alerts. Remove Geo containment alert experimental config settings and refs (#90301)

This commit is contained in:
Aaron Caldwell 2021-02-05 10:22:23 -07:00 committed by GitHub
parent 455538f99c
commit 5dee629a6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 22 deletions

View file

@ -2,13 +2,8 @@
[[geo-alert-types]]
== Geo alert types
experimental[] Two additional stack alerts are available:
<<alert-type-tracking-threshold>> and <<alert-type-tracking-containment>>. To enable,
add the following configuration to your `kibana.yml`:
```yml
xpack.stack_alerts.enableGeoAlerting: true
```
Two additional stack alerts are available:
<<alert-type-tracking-threshold>> and <<alert-type-tracking-containment>>.
As with other stack alerts, you need `all` access to the *Stack Alerts* feature
to be able to create and edit either of the geo alerts.

View file

@ -9,7 +9,6 @@ import { schema, TypeOf } from '@kbn/config-schema';
export const configSchema = schema.object({
enabled: schema.boolean({ defaultValue: true }),
enableGeoAlerting: schema.boolean({ defaultValue: false }),
});
export type Config = TypeOf<typeof configSchema>;

View file

@ -19,8 +19,6 @@ project. To edit it, open this file in your editor of choice, add the line descr
the next step to the bottom of the file (or really anywhere) and save. For more details
on different config modifications or on how to make production config modifications,
see [the current docs](https://www.elastic.co/guide/en/kibana/current/settings.html)
- Set the following configuration settings in your `config/kibana.yml`:
`xpack.stack_alerts.enableGeoAlerting: true`
### 2. Run ES/Kibana dev env with ssl enabled
- In two terminals, run the normal commands to launch both elasticsearch and kibana but

View file

@ -18,9 +18,7 @@ export function registerAlertTypes({
alertTypeRegistry: TriggersAndActionsUIPublicPluginSetup['alertTypeRegistry'];
config: Config;
}) {
if (config.enableGeoAlerting) {
alertTypeRegistry.register(getGeoContainmentAlertType());
}
alertTypeRegistry.register(getGeoContainmentAlertType());
alertTypeRegistry.register(getThresholdAlertType());
alertTypeRegistry.register(getEsQueryAlertType());
}

View file

@ -11,16 +11,8 @@ import { configSchema, Config } from '../common/config';
export { ID as INDEX_THRESHOLD_ID } from './alert_types/index_threshold/alert_type';
export const config: PluginConfigDescriptor<Config> = {
exposeToBrowser: {
enableGeoAlerting: true,
},
exposeToBrowser: {},
schema: configSchema,
deprecations: ({ renameFromRoot }) => [
renameFromRoot(
'xpack.triggers_actions_ui.enableGeoTrackingThresholdAlert',
'xpack.stack_alerts.enableGeoAlerting'
),
],
};
export const plugin = (ctx: PluginInitializerContext) => new AlertingBuiltinsPlugin(ctx);