This PR includes the following refactors: 1. Moves the Index Pattern Api from _Stack Alerts_ to the _Server_ plugin of _Trigger Actions UI_. This fixes a potential bug where a user could disable the _Stack Alerts_ plugin and inadvertently break the UI of the _ES Index _ action type. 2. Extracts the UI components for _Index Threshold_ and _Geo Threshold_ from the _Trigger Actions UI_ plugin and moves them into _Stack Alerts_.
30 lines
902 B
TypeScript
30 lines
902 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { PluginConfigDescriptor, PluginInitializerContext } from 'kibana/server';
|
|
import { configSchema, ConfigSchema } from '../config';
|
|
import { TriggersActionsPlugin } from './plugin';
|
|
|
|
export { PluginStartContract } from './plugin';
|
|
export {
|
|
TimeSeriesQuery,
|
|
CoreQueryParams,
|
|
CoreQueryParamsSchemaProperties,
|
|
validateCoreQueryBody,
|
|
MAX_INTERVALS,
|
|
MAX_GROUPS,
|
|
DEFAULT_GROUPS,
|
|
} from './data';
|
|
|
|
export const config: PluginConfigDescriptor<ConfigSchema> = {
|
|
exposeToBrowser: {
|
|
enableGeoTrackingThresholdAlert: true,
|
|
},
|
|
schema: configSchema,
|
|
};
|
|
|
|
export const plugin = (ctx: PluginInitializerContext) => new TriggersActionsPlugin(ctx);
|