Liking cljdoc? Tell your friends :D

metrics.health.core


checkclj

(check h)

Run a given HealthCheck.

Run a given HealthCheck.
sourceraw docstring

check-allclj

(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.
sourceraw docstring

default-healthcheck-registryclj

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
sourceraw docstring

defhealthcheckcljmacro

(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] ,,,)
sourceraw docstring

healthcheck-fnclj

(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.
sourceraw docstring

healthyclj

(healthy)
(healthy message & args)

Returns a healthy result.

Returns a healthy result.
sourceraw docstring

new-hcclj

(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.
sourceraw docstring

unhealthyclj

(unhealthy message & args)

Returns a unhealthy result.

Returns a unhealthy result.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close