Updated on 2024-03-05 GMT+08:00

Agent Event Push Mode

When the callback address is pushed in HTTPS mode, certificate authentication is used by default.

Configure the trust certificate directory in the agentgateway/WEB-INF/config/basic.properties file as follows:
eventpush.ssl.trustAll=false  //Whether to trust all certificates. The default value is false, indicating that certificate authentication is used.
eventpush.ssl.cert.file=  //Trust certificate directory in event push mode. It can only be a relative path of the user home directory.
eventpush.ssl.cert.type= //Certificate type.

If eventpush.ssl.trustAll is set to true, all certificates are trusted, which may cause security risks. Exercise caution when using this value. The default value false is recommended.

Push callback URLs are controlled by a trustlist. Configure them in the agentgateway/WEB-INF/config/basic.properties file as follows:
EVENT_PUST_WHILTELIST_CALLBACKURI =  //Callback URLs. Use semicolons (;) to separate multiple URLs.

Configure the push failure interval and total failure time in the agentgateway/WEB-INF/config/basic.properties file as follows:

EVENT_PUSH_FAIL_INTERVALTIME = 10000   //Interval at which an event fails to be pushed.
EVENT_PUSH_FAIL_TOTALTIME = 120000   //Total time of event push failures.

If the event fails to be pushed, the system pushes the event again when the interval expires. If the event fails to be pushed all the time, the system accumulates the failure duration and forces the agent to sign out when the failure duration exceeds the total time. If the push is successful, the failure duration is cleared and accumulated again upon the next failure.