mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Renaming folder * Renaming alertType to ruleType. Adding parameters to support group by * Renaming * Updating codeowners
74 lines
2.2 KiB
TypeScript
74 lines
2.2 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { i18n } from '@kbn/i18n';
|
|
import { KibanaFeatureConfig } from '@kbn/features-plugin/common';
|
|
import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server';
|
|
import { TRANSFORM_RULE_TYPE } from '@kbn/transform-plugin/common';
|
|
import { ID as IndexThreshold } from './rule_types/index_threshold/rule_type';
|
|
import { GEO_CONTAINMENT_ID as GeoContainment } from './rule_types/geo_containment/alert_type';
|
|
import { ES_QUERY_ID as ElasticsearchQuery } from './rule_types/es_query/constants';
|
|
import { STACK_ALERTS_FEATURE_ID } from '../common';
|
|
|
|
const TransformHealth = TRANSFORM_RULE_TYPE.TRANSFORM_HEALTH;
|
|
|
|
export const BUILT_IN_ALERTS_FEATURE: KibanaFeatureConfig = {
|
|
id: STACK_ALERTS_FEATURE_ID,
|
|
name: i18n.translate('xpack.stackAlerts.featureRegistry.actionsFeatureName', {
|
|
defaultMessage: 'Stack Rules',
|
|
}),
|
|
app: [],
|
|
category: DEFAULT_APP_CATEGORIES.management,
|
|
management: {
|
|
insightsAndAlerting: ['triggersActions'],
|
|
},
|
|
alerting: [IndexThreshold, GeoContainment, ElasticsearchQuery, TransformHealth],
|
|
privileges: {
|
|
all: {
|
|
app: [],
|
|
catalogue: [],
|
|
management: {
|
|
insightsAndAlerting: ['triggersActions'],
|
|
},
|
|
alerting: {
|
|
rule: {
|
|
all: [IndexThreshold, GeoContainment, ElasticsearchQuery, TransformHealth],
|
|
},
|
|
alert: {
|
|
all: [IndexThreshold, GeoContainment, ElasticsearchQuery, TransformHealth],
|
|
},
|
|
},
|
|
savedObject: {
|
|
all: [],
|
|
read: [],
|
|
},
|
|
api: [],
|
|
ui: [],
|
|
},
|
|
read: {
|
|
app: [],
|
|
catalogue: [],
|
|
management: {
|
|
insightsAndAlerting: ['triggersActions'],
|
|
},
|
|
alerting: {
|
|
rule: {
|
|
read: [IndexThreshold, GeoContainment, ElasticsearchQuery, TransformHealth],
|
|
},
|
|
alert: {
|
|
read: [IndexThreshold, GeoContainment, ElasticsearchQuery, TransformHealth],
|
|
},
|
|
},
|
|
savedObject: {
|
|
all: [],
|
|
read: [],
|
|
},
|
|
api: [],
|
|
ui: [],
|
|
},
|
|
},
|
|
};
|