Liking cljdoc? Tell your friends :D

barometer.protocols

Generic clojure protocols which correspond to the interfaces provided by Coda Hale (https://metrics.dropwizard.io/3.2.0/apidocs/com/codahale/metrics/package-summary.html)

Generic clojure protocols which correspond to the interfaces
provided by Coda Hale
(https://metrics.dropwizard.io/3.2.0/apidocs/com/codahale/metrics/package-summary.html)
raw docstring

Countercljprotocol

decrementclj

(decrement counter)
(decrement counter n)

Decrement a counter by 1 or by the amount specified.

Decrement a counter by 1 or by the amount specified.

incrementclj

(increment counter)
(increment counter n)

Increment a counter by 1 or by the amount specified.

Increment a counter by 1 or by the amount specified.
source

Countingcljprotocol

countclj

(count metric)

Returns the count recorded by this metric.

Returns the count recorded by this metric.
source

ICanExplaincljprotocol

explainclj

(explain this)

Prints a string containing the documentation for this thing.

Prints a string containing the documentation for this thing.

explanationclj

(explanation this)

Returns a string containing the documentation for this thing.

Returns a string containing the documentation for this thing.
source

Meteredcljprotocol

fifteen-minute-rateclj

(fifteen-minute-rate metric)

Gives the frequency with which this metric was triggered in the last fifteen minutes.

Gives the frequency with which this metric was triggered in the last fifteen minutes.

five-minute-rateclj

(five-minute-rate metric)

Gives the frequency with which this metric was triggered in the last five minutes.

Gives the frequency with which this metric was triggered in the last five minutes.

mean-rateclj

(mean-rate metric)

Gives the mean frequency with which this metric has been triggered.

Gives the mean frequency with which this metric has been triggered.

one-minute-rateclj

(one-minute-rate metric)

Gives the frequency with which this metric was triggered in the last five minutes.

Gives the frequency with which this metric was triggered in the last five minutes.
source

MetricSetcljprotocol

metricsclj

(metrics ms)

Returns a map name->metric for all metrics contained by this metric set.

Returns a map name->metric for all metrics contained by this metric set.
source

Registrarcljprotocol

histogramsclj

(histograms reg)
(histograms reg filter)

Returns a map name->metric for all histograms registered in this registry.

Returns a map name->metric for all histograms registered in this registry.

namesclj

(names reg)

Returns a set containing all the names registered in this registry.

Returns a set containing all the names registered in this registry.

remove-matchingclj

(remove-matching reg filter)

Removes from this registry any metric that matches the given filter.

Removes from this registry any metric that matches the given filter.

register-allclj

(register-all reg name->metric)
(register-all reg prefix name->metric)

Registers to the given names the corresponding metrics. If a metric is already registered under this name, it is replaced and a warning is logged.

Registers to the given names the corresponding metrics. If a metric is already registered under this name, it is replaced and a warning is logged.

remove-metricclj

(remove-metric reg name)

Removes from this registry any metric registered under the given name.

Removes from this registry any metric registered under the given name.

get-metricclj

(get-metric reg name)

Retrieves the metric registered under this name. Returns nil if none is found.

Retrieves the metric registered under this name. Returns nil if none is found.

gaugesclj

(gauges reg)
(gauges reg filter)

Returns a map name->metric for all gauges registered in this registry.

Returns a map name->metric for all gauges registered in this registry.

countersclj

(counters reg)
(counters reg filter)

Returns a map name->metric for all counters registered in this registry.

Returns a map name->metric for all counters registered in this registry.

metersclj

(meters reg)
(meters reg filter)

Returns a map name->metric for all meters registered in this registry.

Returns a map name->metric for all meters registered in this registry.

timersclj

(timers reg)
(timers reg filter)

Returns a map name->metric for all timers registered in this registry.

Returns a map name->metric for all timers registered in this registry.

registerclj

(register reg name metric)

Registers the given metric to the given name in this registry. If a metric is already registered under this name, it is replaced and a warning is logged.

Registers the given metric to the given name in this registry. If a metric is already registered under this name, it is replaced and a warning is logged.
source

Snappablecljprotocol

snapshotclj

(snapshot metric)

Gives an instantaneous snapshot of the statistical properties of the metric.

Gives an instantaneous snapshot of the statistical properties of the metric.
source

Statisticalcljprotocol

maxclj

(max o)

Gives the maximum value captured by this metric/snapshot.

Gives the maximum value captured by this metric/snapshot.

meanclj

(mean o)

Gives the mean value recorded by this metric/snapshot.

Gives the mean value recorded by this metric/snapshot.

medianclj

(median o)

Gives the median value recorded by this metric/snapshot.

Gives the median value recorded by this metric/snapshot.

minclj

(min o)

Gives the minimum value captured by this metric/snapshot.

Gives the minimum value captured by this metric/snapshot.

quantileclj

(quantile o q)

Gives the value recorded by this metric/snapshot in the specified quantile.

Gives the value recorded by this metric/snapshot in the specified quantile.

sizeclj

(size o)

Gives the number of values recorded by this metric/snapshot.

Gives the number of values recorded by this metric/snapshot.

std-devclj

(std-dev o)

Gives the standard deviation of the value recorded by this metric/snapshot.

Gives the standard deviation of the value recorded by this metric/snapshot.

valuesclj

(values o)

Gives an array of all values captured by this metric/snapshot.

Gives an array of all values captured by this metric/snapshot.
source

Timercljprotocol

timeclj

(time metric fn)

Runs the fn, returns its return value.

Runs the fn, returns its return value.
source

Updateablecljprotocol

updateclj

(update metric)
(update metric value)

Updates with number of occurrences, or latest value, or whatever it makes sense to tick/mark/update this metric with.

Updates with number of occurrences, or latest value, or whatever it makes sense to tick/mark/update this metric with.
source

Valuablecljprotocol

valueclj

(value metric)

For metrics that record a single value, this returns it.

For metrics that record a single value, this returns it.
source

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

× close