newBacklogHealthCheck
Creates a HealthCheck that reports unhealthy when the backlog size meets or exceeds the given threshold.
Return
a HealthCheck that monitors backlog size.
Parameters
backlogSize
returns the current backlog size; it is called on every check.
size
the threshold at or above which the check is considered unhealthy.
Deprecated
The size is captured once, so the check never changes. Pass a () -> Int that reads the current size.
Replace with
newBacklogHealthCheck({ backlogSize }, size)Content copied to clipboard
Creates a HealthCheck that reports unhealthy when backlogSize meets or exceeds the given threshold.
Return
a HealthCheck that always evaluates the captured backlogSize.
Parameters
backlogSize
the backlog size, captured once when the check is created.
size
the threshold at or above which the check is considered unhealthy.