Skip to content

Commit

Permalink
Set containment alert recovery action group to 'No longer contained' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell authored Jan 4, 2021
1 parent 8b26907 commit 284f422
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 284f422

Please sign in to comment.