diff --git a/docs/index.html b/docs/index.html index 2da81ba1..52451055 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27,6 +27,7 @@

lua-resty-healthcheck

+

Contents

@@ -286,7 +284,7 @@

Usage:

end end -worker_events.register(event_callback, my_checker.EVENT_SOURCE) +worker_events.register(event_callback, my_checker.EVENT_SOURCE) @@ -458,8 +456,8 @@

Healt
Report a health failure. Reports a health failure which will count against the number of occurrences - required to make a target "fall". The type of healthchecker, - "tcp" or "http" (see new) determines against which counter the occurence goes. + required to make a target “fall”. The type of healthchecker, + “tcp” or “http” (see new) determines against which counter the occurence goes. If unhealthy.tcp_failures (for TCP failures) or unhealthy.http_failures is set to zero in the configuration, this function is a no-op and returns true. @@ -477,7 +475,7 @@

Parameters:

(optional) hostname of the target being checked.
  • check - (optional) the type of check, either "passive" or "active", default "passive". + (optional) the type of check, either “passive” or “active”, default “passive”.
  • @@ -520,7 +518,7 @@

    Parameters:

    the http statuscode, or nil to report an invalid http response.
  • check - (optional) the type of check, either "passive" or "active", default "passive". + (optional) the type of check, either “passive” or “active”, default “passive”.
  • @@ -542,7 +540,7 @@

    Returns:

    Report a health success. Reports a health success which will count against the number of occurrences - required to make a target "rise". + required to make a target “rise”. If healthy.successes is set to zero in the configuration, this function is a no-op and returns true. @@ -559,7 +557,7 @@

    Parameters:

    (optional) hostname of the target being checked.
  • check - (optional) the type of check, either "passive" or "active", default "passive". + (optional) the type of check, either “passive” or “active”, default “passive”.
  • @@ -596,13 +594,13 @@

    Parameters:

  • operation The socket operation that failed: - "connect", "send" or "receive". + “connect”, “send” or “receive”. TODO check what kind of information we get from the OpenResty layer in order to tell these error conditions apart - https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#getlastfailure + https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#get_last_failure
  • check - (optional) the type of check, either "passive" or "active", default "passive". + (optional) the type of check, either “passive” or “active”, default “passive”.
  • @@ -638,7 +636,7 @@

    Parameters:

    (optional) hostname of the target being checked.
  • check - (optional) the type of check, either "passive" or "active", default "passive". + (optional) the type of check, either “passive” or “active”, default “passive”.
  • @@ -771,7 +769,7 @@

    Returns:

    It will be started upon creation.

    NOTE: the returned checker object must be anchored, if not it will be - removed by Lua's garbage collector and the healthchecks will cease to run. + removed by Lua’s garbage collector and the healthchecks will cease to run.

    Parameters:

    @@ -780,33 +778,35 @@

    Parameters:

    table with checker options. Options are:

    +

    If any of the health counters above (e.g. checks.passive.unhealthy.timeouts) is set to zero, the according category of checks is not taken to account. This way active or passive health checks can be disabled selectively. @@ -829,8 +829,8 @@

    Returns:

    -generated by LDoc 1.4.6 -Last updated 2022-11-17 14:30:53 +generated by LDoc 1.5.0 +Last updated 2023-09-06 09:49:32
    diff --git a/docs/topics/readme.md.html b/docs/topics/readme.md.html index 654d21f2..5863ee85 100644 --- a/docs/topics/readme.md.html +++ b/docs/topics/readme.md.html @@ -27,6 +27,7 @@

    lua-resty-healthcheck

    +

    Contents