(check-all)
(check-all reg)
Returns a map with the keys :healthy & :unhealthy, each containing the associated checks. Note that the items of each vector are of type java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry, but key & val work on it.
Returns a map with the keys :healthy & :unhealthy, each containing the associated checks. Note that the items of each vector are of type java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry, but key & val work on it.
Default health check registry used by public API functions when no explicit registry argument is given
Default health check registry used by public API functions when no explicit registry argument is given
(defhealthcheck title f)
(defhealthcheck reg title f)
Define a new Healthcheck metric with the given title and a function. to call to retrieve the value of the Healthcheck.
The title uses some basic desugaring to let you concisely define metrics:
; Define a healthcheck titled "default.default.foo" into var foo (defhealthcheck foo ,,,) (defhealthcheck "foo" ,,,)
; Define a healthcheck titled "a.b.c" into var c (defhealthcheck [a b c] ,,,) (defhealthcheck ["a" "b" "c"] ,,,) (defhealthcheck [a "b" c] ,,,)
Define a new Healthcheck metric with the given title and a function. to call to retrieve the value of the Healthcheck. The title uses some basic desugaring to let you concisely define metrics: ; Define a healthcheck titled "default.default.foo" into var foo (defhealthcheck foo ,,,) (defhealthcheck "foo" ,,,) ; Define a healthcheck titled "a.b.c" into var c (defhealthcheck [a b c] ,,,) (defhealthcheck ["a" "b" "c"] ,,,) (defhealthcheck [a "b" c] ,,,)
(healthcheck-fn title hc-fn)
(healthcheck-fn reg title hc-fn)
Create and register a new healthcheck. hc-fn must return healthy/unhealthy; any other result, (including an exception), will be considered unhealthy.
Create and register a new healthcheck. hc-fn must return healthy/unhealthy; any other result, (including an exception), will be considered unhealthy.
(healthy)
(healthy message & args)
Returns a healthy result.
Returns a healthy result.
(new-hc hc-fn)
Wrap a fn to ensure it returns healthy/unhealthy. Any exception or non-healthy result is considered unhealthy and returned as such.
Wrap a fn to ensure it returns healthy/unhealthy. Any exception or non-healthy result is considered unhealthy and returned as such.
(unhealthy message & args)
Returns a unhealthy result.
Returns a unhealthy result.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close