You can use message templates in actions that involve sending notifications (see E–mail notification, Push notification, Executing a Web-query):
{eventNode}—Server name (used if the macro start condition isn't connected to a camera);
{cameraLabel}—just the camera name;
{list}—name of a list of faces or a list of LPs (see Faces, LPs);
{gender}—gender of the recognized person;
You can use the {age} and {gender} templates when the following conditions are met:
|
{appearedTime}—time of object detection in the UTC time zone;
{rectangles}—coordinates and size of the object that generated an event from the detection tool;
statistical templates (used only when a macro is started when a corresponding statistical condition is met (see Starting the Event rules macros based on statistical data):
{cpuUsage}—Server CPU usage;
{netUsage}—Server network usage;
{memoryUsage}—Server memory usage;
{diskUsage}—disk usage;
{archiveUsage}—archive usage.
In addition to curly braces {}, you can also use %% in templates. For example, %cameraId%. The date/time templates (such as dateTime, serverDateTime, appearedTime, serverAppearedTime) offer an extended input option which allows you to specify the date and time in arbitrary format. A format description parameter must be contained within a pair of @ symbols. For example: {dateTime@%Y–%m–%d %H:%M:%S@}. In this case, the actual format is presented as 2020–10–04 18:43:23. Available parameters:
|
For example, this macro sends an email of the following format when the Water Level Detection generates an event:
Subject: Notification: Attention, water level detection is triggered. Server: Server1 Camera: 10.0.11.36 34.Camera Time: 20190812T085517.926430 |