mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Adding ES query rule type to stack alerts feature privilege (#95225)
This commit is contained in:
parent
017a2b8413
commit
d5883beb25
1 changed files with 4 additions and 3 deletions
|
@ -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: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue