mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 02:53:21 +02:00
MINOR: hlua/event_hdl: expose SERVER_CHECK event
Exposing SERVER_CHECK event through the lua API. New lua class named ServerEventCheck was added to provide additional data for SERVER_CHECK event. Lua documentation was updated accordingly.
This commit is contained in:
committed by
Christopher Faulet
parent
dcbc2d2cac
commit
0bd53b2152
@@ -948,6 +948,9 @@ Core class
|
||||
* **SERVER_UP**: when a server state goes from DOWN to UP
|
||||
* **SERVER_STATE**: when a server state changes
|
||||
* **SERVER_ADMIN**: when a server administrative state changes
|
||||
* **SERVER_CHECK**: when a server's check status change is reported.
|
||||
Be careful when subscribing to this type since many events might be
|
||||
generated.
|
||||
|
||||
.. Note::
|
||||
Use **SERVER** in **event_types** to subscribe to all server events types
|
||||
@@ -1541,6 +1544,13 @@ See :js:func:`core.event_sub()` for more info.
|
||||
.. Note::
|
||||
Only available for SERVER_ADMIN event
|
||||
|
||||
.. js:attribute:: ServerEvent.check
|
||||
|
||||
A :ref:`server_event_checkres_class`
|
||||
|
||||
.. Note::
|
||||
Only available for SERVER_CHECK event
|
||||
|
||||
.. _server_event_checkres_class:
|
||||
|
||||
ServerEventCheckRes class
|
||||
|
||||
Reference in New Issue
Block a user