File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
x-pack/plugins/stack_alerts/server/alert_types/geo_containment Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments