Liking cljdoc? Tell your friends :D

metrics.gauges


defgaugecljmacro

(defgauge title f)
(defgauge reg title f)

Define a new Gauge metric with the given title and a function. to call to retrieve the value of the Gauge.

The title uses some basic desugaring to let you concisely define metrics:

; Define a gauge titled "default.default.foo" into var foo (defgauge foo ,,,) (defgauge "foo" ,,,)

; Define a gauge titled "a.b.c" into var c (defgauge [a b c] ,,,) (defgauge ["a" "b" "c"] ,,,) (defgauge [a "b" c] ,,,)

Define a new Gauge metric with the given title and a function.
 to call to retrieve the value of the Gauge.

The title uses some basic desugaring to let you concisely define metrics:

  ; Define a gauge titled "default.default.foo" into var foo
  (defgauge foo ,,,)
  (defgauge "foo" ,,,)

  ; Define a gauge titled "a.b.c" into var c
  (defgauge [a b c] ,,,)
  (defgauge ["a" "b" "c"] ,,,)
  (defgauge [a "b" c] ,,,)
raw docstring

gauge-fnclj

(gauge-fn title f)
(gauge-fn reg title f)

Create a new Gauge metric with the given title.

The given function will be called (with no arguments) to retrieve the value of the Gauge when requested.

Create a new Gauge metric with the given title.

The given function will be called (with no arguments) to retrieve the value of
the Gauge when requested.
raw docstring

valueclj

(value g)

Return the value of the given Gauge.

Return the value of the given Gauge.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close