Liking cljdoc? Tell your friends :D

metrics.core


add-metricclj

(add-metric title metric)
(add-metric reg title metric)

Add a metric with the given title.

Add a metric with the given title.
sourceraw docstring

countersclj

(counters reg)

Returns a map of all the counters in the registry and their names.

Returns a map of all the counters in the registry and their names.
sourceraw docstring

default-registryclj

Default registry used by public API functions when no explicit registry argument is given

Default registry used by public API functions when no explicit registry argument is given
sourceraw docstring

exponentially-decaying-reservoirclj

(exponentially-decaying-reservoir)
(exponentially-decaying-reservoir size alpha)

Create an exponentially decaying reservior, which uses Cormode et al's forward-decaying priority reservoir sampling method to produce a statistically representative sampling reservoir, exponentially biased towards newer entries. Default size: 1028, alpha 0.015

Create an exponentially decaying reservior, which uses Cormode et al's
forward-decaying priority reservoir sampling method to produce a
statistically representative sampling reservoir, exponentially biased
towards newer entries. Default size: 1028, alpha 0.015
sourceraw docstring

gaugesclj

(gauges reg)

Returns a map of all the gauges in the registry and their names.

Returns a map of all the gauges in the registry and their names.
sourceraw docstring

histogramsclj

(histograms reg)

Returns a map of all the histograms in the registry and their names.

Returns a map of all the histograms in the registry and their names.
sourceraw docstring

metersclj

(meters reg)

Returns a map of all the meters in the registry and their names.

Returns a map of all the meters in the registry and their names.
sourceraw docstring

metric-nameclj

(metric-name title)
source

new-registryclj

(new-registry)
source

remove-all-metricsclj

(remove-all-metrics)
(remove-all-metrics reg)

Remove all the metrics in the given registry, or the default registry if no registry given.

Remove all the metrics in the given registry, or the default
registry if no registry given.
sourceraw docstring

remove-metricclj

(remove-metric title)
(remove-metric reg title)

Remove the metric with the given title.

Remove the metric with the given title.
sourceraw docstring

remove-metricsclj

(remove-metrics pred)
(remove-metrics reg pred)

Remove all the metrics matching the given predicate in the given repository, or the default registry if no registry given. The predicate takes one argument, the name of the metric.

Remove all the metrics matching the given predicate in the given
repository, or the default registry if no registry given. The
predicate takes one argument, the name of the metric.
sourceraw docstring

replace-metricclj

(replace-metric title metric)
(replace-metric reg title metric)

Replace a metric with the given title.

Replace a metric with the given title.
sourceraw docstring

sliding-time-window-reservoirclj

(sliding-time-window-reservoir window unit)

Create a reservior backed by a sliding window that stores only the measurements made in the last N seconds

Create a reservior backed by a sliding window that stores only the
measurements made in the last N seconds
sourceraw docstring

sliding-window-reservoirclj

(sliding-window-reservoir size)

Create a reservior backed by a sliding window that stores the last N measurements.

Create a reservior backed by a sliding window that stores the last
N measurements.
sourceraw docstring

timersclj

(timers reg)

Returns a map of all the timers in the registry and their names.

Returns a map of all the timers in the registry and their names.
sourceraw docstring

uniform-reserviorclj

(uniform-reservior)
(uniform-reservior size)

Create a uniform reservior, which uses Vitter's Algorithm R to produce a statistically representative sample. Default size: 1028.

Create a uniform reservior, which uses Vitter's Algorithm R to
produce a statistically representative sample. Default size: 1028.
sourceraw docstring

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

× close