Overview
The Application Trigger feature in ANSVIS allows users to send trigger events to an external application via a network connection. This is useful for integrating with external systems, custom-built software, or other applications that need to process event data.
Steps to Configure an Application Trigger:
1. Access the Event Action Configuration
- Navigate to the Event Action Configuration panel in the ANSVIS Client.
- From the Event Action Type dropdown, select Application. This will open the application trigger configuration panel.
2. Configure Application Connection
- Server: Enter the IP address or hostname of the external application server that will receive the event data.
- Port: Specify the network port that the external application is listening on. The default port is set to
0
, which should be changed based on your external application's requirements.
3. Filter the Data
- Only Results from Last Rule: Check this option if you want to send event data only from the most recent rule that triggered.
- Include Images: Check this option to include related images (if any) in the data sent to the external application.
4. Set the Data Format
- Format: Choose the format in which the event data will be sent:
- Binary: Sends the data in binary format, which is typically more compact and may be required by some applications.
- Text (JSON): Sends the data in JSON (JavaScript Object Notation) format, which is a readable, structured data format commonly used for APIs and web services.
5. Configure Ping Interval (Optional)
- Ping Every: Specify a time interval (in seconds) if you want the system to send a "ping" message to the application to check if the connection is still active. If no ping is required, leave it set to
0
.
6. Save the Configuration
- After configuring all the required fields, click Save to store the application trigger settings.
- The system will now send event data to the external application whenever the configured trigger occurs.
Example Scenario:
If you want ANSVIS to send event data to a custom-built monitoring application running on 192.168.1.50
at port 8080
:
- Enter
192.168.1.50
in the Server field. - Set the Port to
8080
. - Check Only Results from Last Rule to filter out older events.
- Choose Text (JSON) as the format to send structured data to the application.
- Click Save to apply the configuration.