Skip to content

Commit

Permalink
Add geo-containment to kibana feature config (#85221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell authored Dec 9, 2020
1 parent 402641e commit 4a94fa0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x-pack/plugins/stack_alerts/server/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { i18n } from '@kbn/i18n';
import { ID as IndexThreshold } from './alert_types/index_threshold/alert_type';
import { GEO_THRESHOLD_ID as GeoThreshold } from './alert_types/geo_threshold/alert_type';
import { GEO_CONTAINMENT_ID as GeoContainment } from './alert_types/geo_containment/alert_type';
import { STACK_ALERTS_FEATURE_ID } from '../common';
import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/server';

Expand All @@ -20,7 +21,7 @@ export const BUILT_IN_ALERTS_FEATURE = {
management: {
insightsAndAlerting: ['triggersActions'],
},
alerting: [IndexThreshold, GeoThreshold],
alerting: [IndexThreshold, GeoThreshold, GeoContainment],
privileges: {
all: {
app: [],
Expand All @@ -29,7 +30,7 @@ export const BUILT_IN_ALERTS_FEATURE = {
insightsAndAlerting: ['triggersActions'],
},
alerting: {
all: [IndexThreshold, GeoThreshold],
all: [IndexThreshold, GeoThreshold, GeoContainment],
read: [],
},
savedObject: {
Expand All @@ -47,7 +48,7 @@ export const BUILT_IN_ALERTS_FEATURE = {
},
alerting: {
all: [],
read: [IndexThreshold, GeoThreshold],
read: [IndexThreshold, GeoThreshold, GeoContainment],
},
savedObject: {
all: [],
Expand Down

0 comments on commit 4a94fa0

Please sign in to comment.