Adding ES query rule type to stack alerts feature privilege (#95225)

This commit is contained in:
ymao1 2021-03-24 10:19:35 -04:00 committed by GitHub
parent 017a2b8413
commit d5883beb25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';
@ -21,7 +22,7 @@ export const BUILT_IN_ALERTS_FEATURE = {
management: {
insightsAndAlerting: ['triggersActions'],
},
alerting: [IndexThreshold, GeoContainment],
alerting: [IndexThreshold, GeoContainment, ElasticsearchQuery],
privileges: {
all: {
app: [],
@ -30,7 +31,7 @@ export const BUILT_IN_ALERTS_FEATURE = {
insightsAndAlerting: ['triggersActions'],
},
alerting: {
all: [IndexThreshold, GeoContainment],
all: [IndexThreshold, GeoContainment, ElasticsearchQuery],
read: [],
},
savedObject: {
@ -48,7 +49,7 @@ export const BUILT_IN_ALERTS_FEATURE = {
},
alerting: {
all: [],
read: [IndexThreshold, GeoContainment],
read: [IndexThreshold, GeoContainment, ElasticsearchQuery],
},
savedObject: {
all: [],