HealthConfiguration

Properties

Link copied to clipboard
var cachingCheckTimeout: <Error class: unknown class>
Link copied to clipboard
var cachingRefreshInterval: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
var cachingStalenessThreshold: <Error class: unknown class>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun customCheck(url: String, name: String, check: HealthCheck)

Adds a check function to a custom check living at the specified URL

Link copied to clipboard

Calling this disables the default health check on /healthz

Link copied to clipboard

Calling this disabled the default ready check on /readyz

Link copied to clipboard
fun enableCachingResults(refreshInterval: <Error class: unknown class> = 60.seconds, checkTimeout: <Error class: unknown class> = 30.seconds, stalenessThreshold: <Error class: unknown class>? = null)

Enable caching of health check results with background refresh

Link copied to clipboard
fun healthCheck(name: String, check: HealthCheck)

Add a health check giving it a name

Link copied to clipboard
fun readyCheck(name: String, check: HealthCheck)

Add a ready check giving it a name