Create new Macro - range time

Hello good morning, I need to create a macro to be able to limit the hours in which the alerts are sent but I cannot.
Can you tell me how to make the macro appear in the new rule?
Where do I have to load the code to generate the macro?
For example, to be able to create macros_after_hour and put a code to it
$config[‘alert’][‘macros’][‘rule’][‘after_hours’] = ‘(HOUR(now()) <= 6 OR HOUR(now()) >= 18) OR WEEKDAY(now()) >= 5’;

image

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.