mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
GA Geo containment alerts. Remove Geo containment alert experimental config settings and refs (#90301)
This commit is contained in:
parent
455538f99c
commit
5dee629a6d
5 changed files with 4 additions and 22 deletions
|
@ -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.
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue