Set containment alert recovery action group to 'No longer contained' (#87182)
This commit is contained in:
parent
8b2690723b
commit
284f422642
|
@ -160,6 +160,12 @@ export function getAlertType(logger: Logger): GeoContainmentAlertType {
|
|||
id: GEO_CONTAINMENT_ID,
|
||||
name: alertTypeName,
|
||||
actionGroups: [{ id: ActionGroupId, name: actionGroupName }],
|
||||
recoveryActionGroup: {
|
||||
id: 'notGeoContained',
|
||||
name: i18n.translate('xpack.stackAlerts.geoContainment.notGeoContained', {
|
||||
defaultMessage: 'No longer contained',
|
||||
}),
|
||||
},
|
||||
defaultActionGroupId: ActionGroupId,
|
||||
executor: getGeoContainmentExecutor(logger),
|
||||
producer: STACK_ALERTS_FEATURE_ID,
|
||||
|
|
|
@ -18,6 +18,10 @@ describe('alertType', () => {
|
|||
expect(alertType.actionGroups).toEqual([
|
||||
{ id: 'Tracked entity contained', name: 'Tracking containment met' },
|
||||
]);
|
||||
expect(alertType.recoveryActionGroup).toEqual({
|
||||
id: 'notGeoContained',
|
||||
name: 'No longer contained',
|
||||
});
|
||||
|
||||
expect(alertType.actionVariables).toMatchSnapshot();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue