Skip to content

Commit 284f422

Browse files
author
Aaron Caldwell
authored
Set containment alert recovery action group to 'No longer contained' (#87182)
1 parent 8b26907 commit 284f422

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

x-pack/plugins/stack_alerts/server/alert_types/geo_containment/alert_type.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ export function getAlertType(logger: Logger): GeoContainmentAlertType {
160160
id: GEO_CONTAINMENT_ID,
161161
name: alertTypeName,
162162
actionGroups: [{ id: ActionGroupId, name: actionGroupName }],
163+
recoveryActionGroup: {
164+
id: 'notGeoContained',
165+
name: i18n.translate('xpack.stackAlerts.geoContainment.notGeoContained', {
166+
defaultMessage: 'No longer contained',
167+
}),
168+
},
163169
defaultActionGroupId: ActionGroupId,
164170
executor: getGeoContainmentExecutor(logger),
165171
producer: STACK_ALERTS_FEATURE_ID,

x-pack/plugins/stack_alerts/server/alert_types/geo_containment/tests/alert_type.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ describe('alertType', () => {
1818
expect(alertType.actionGroups).toEqual([
1919
{ id: 'Tracked entity contained', name: 'Tracking containment met' },
2020
]);
21+
expect(alertType.recoveryActionGroup).toEqual({
22+
id: 'notGeoContained',
23+
name: 'No longer contained',
24+
});
2125

2226
expect(alertType.actionVariables).toMatchSnapshot();
2327
});

0 commit comments

Comments
 (0)