Skip to content

Commit

Permalink
Adding ES query rule type to stack alerts feature privilege (elastic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 authored and kibanamachine committed Mar 24, 2021
1 parent 875af04 commit 8a0595c
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 @@ -8,6 +8,7 @@
import { i18n } from '@kbn/i18n';
import { ID as IndexThreshold } from './alert_types/index_threshold/alert_type';
import { GEO_CONTAINMENT_ID as GeoContainment } from './alert_types/geo_containment/alert_type';
import { ES_QUERY_ID as ElasticsearchQuery } from './alert_types/es_query/alert_type';
import { STACK_ALERTS_FEATURE_ID } from '../common';
import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/server';

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

0 comments on commit 8a0595c

Please sign in to comment.