]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: Add function to get the result code corresponding to a status
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Feb 2021 12:11:50 +0000 (13:11 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Feb 2021 14:16:33 +0000 (15:16 +0100)
commit7aa327143968ff248792dbc2ceba18101fd7ab4a
treea4e3849d8a8fe1930e2cc034e485d652c0956d61
parentff97edac3ecb0643697ea5eb5f8596402b5a289e
MINOR: checks: Add function to get the result code corresponding to a status

The function get_check_status_result() can now be used to get the result
code (CHK_RES_*) corresponding to a check status (HCHK_STATUS_*). It will be
used by the Prometheus exporter when reporting the check status of a server.
include/haproxy/check.h
src/check.c