This PR introduces a new concept of an _Action Subgroup_ (naming is open for discussion) which can be used by an Alert Type when scheduling actions. An Action Subgroup can be dynamically specified, unlike Action Groups which have to be specified on the AlertType definition. When scheduling actions, and AlertType can specify an _Action Subgroup_ along side the scheduled _Action Group_, which denotes that the alert instance falls into some kind of narrower grouping in the action group.
39 lines
1.3 KiB
TypeScript
39 lines
1.3 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;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
import type { PublicMethodsOf } from '@kbn/utility-types';
|
|
import { AlertsClient as AlertsClientClass } from './alerts_client';
|
|
import { PluginConfigDescriptor, PluginInitializerContext } from '../../../../src/core/server';
|
|
import { AlertingPlugin } from './plugin';
|
|
import { configSchema } from './config';
|
|
import { AlertsConfigType } from './types';
|
|
|
|
export type AlertsClient = PublicMethodsOf<AlertsClientClass>;
|
|
|
|
export {
|
|
ActionVariable,
|
|
AlertType,
|
|
ActionGroup,
|
|
AlertingPlugin,
|
|
AlertExecutorOptions,
|
|
AlertActionParams,
|
|
AlertServices,
|
|
AlertTypeState,
|
|
AlertTypeParams,
|
|
PartialAlert,
|
|
AlertInstanceState,
|
|
AlertInstanceContext,
|
|
} from './types';
|
|
export { PluginSetupContract, PluginStartContract } from './plugin';
|
|
export { FindResult } from './alerts_client';
|
|
export { PublicAlertInstance as AlertInstance } from './alert_instance';
|
|
export { parseDuration } from './lib';
|
|
|
|
export const plugin = (initContext: PluginInitializerContext) => new AlertingPlugin(initContext);
|
|
|
|
export const config: PluginConfigDescriptor<AlertsConfigType> = {
|
|
schema: configSchema,
|
|
};
|