Improving alert support

This commit is contained in:
2018-06-05 17:05:51 +02:00
parent b95d0894d9
commit 5ab3f20789
2 changed files with 11 additions and 3 deletions

View File

@ -51,7 +51,7 @@ route:
- match_re:
%%{route.alRouteMatchRegExpSource}: %%{route.alRouteMatchRegExp}
receiver: %%route.alRouteMatchRegxpRecv
%if not is_empty('alSubRoute')
%if not %%is_empty('alSubRoute')
routes:
%for sroute in %%getVar('alSubRoute',[])
# The service has a sub-route for critical alerts, any alerts
@ -70,7 +70,7 @@ route:
%%{rt.alRouteMatchSource}: %%{rt.alRouteMatchValue}
receiver: %%rt.alRouteMatchReceiver
%if not is_empty('alSubRoute')
%if not %%is_empty('alSubRoute')
routes:
%for sroute in %%getVar('alSubRoute',[])
%if %%sroute == %%rt