Liking cljdoc? Tell your friends :D

puppetlabs.metrics


gaugeclj

(gauge value)

Inputs: [value] Returns: Gauge

Returns a Gauge metric with an initial value

Inputs: [value]
Returns: Gauge

Returns a Gauge metric with an initial value
sourceraw docstring

host-metric-nameclj

(host-metric-name hostname metric-name)

Inputs: [hostname :- schema/Str metric-name :- schema/Str] Returns: schema/Str

Given a hostname and a metric name, build a qualified metric name for use with Metrics.

Inputs: [hostname :- schema/Str metric-name :- schema/Str]
Returns: schema/Str

Given a hostname and a metric name, build a qualified metric name for use with
Metrics.
sourceraw docstring

http-metric-nameclj

(http-metric-name hostname metric-name)

Inputs: [hostname :- schema/Str metric-name :- schema/Str] Returns: schema/Str

Given a hostname and a metric name, build a qualified http metric name for use with Metrics.

Inputs: [hostname :- schema/Str metric-name :- schema/Str]
Returns: schema/Str

Given a hostname and a metric name, build a qualified http metric name for use
with Metrics.
sourceraw docstring

meanclj

(mean sampling)

Inputs: [sampling :- Sampling] Returns: Double

Given a Timer or Histogram object, get the current mean value.

Inputs: [sampling :- Sampling]
Returns: Double

Given a Timer or Histogram object, get the current mean value.
sourceraw docstring

mean-in-unitclj

(mean-in-unit sampling time-unit)

Inputs: [sampling :- Sampling time-unit :- TimeUnit] Returns: Long

Given a Timer or Histogram object, get the mean sample time in the specified time unit.

Inputs: [sampling :- Sampling time-unit :- TimeUnit]
Returns: Long

Given a Timer or Histogram object, get the mean sample time in the specified time unit.
sourceraw docstring

mean-millisclj

(mean-millis sampling)

Inputs: [sampling :- Sampling] Returns: Long

Given a Timer or Histogram object, get the mean sample time in milliseconds.

Inputs: [sampling :- Sampling]
Returns: Long

Given a Timer or Histogram object, get the mean sample time in milliseconds.
sourceraw docstring

metered-ratioclj

(metered-ratio numerator denominator)

Inputs: [numerator :- Metered denominator :- Metered] Returns: RatioGauge

Given two Metered metrics, construct a Ratio metric whose numerator and denominator are computed by calling the getCount method of the Metered metrics.

Inputs: [numerator :- Metered denominator :- Metered]
Returns: RatioGauge

Given two Metered metrics, construct a Ratio metric whose numerator and denominator
are computed by calling the `getCount` method of the Metered metrics.
sourceraw docstring

ratioclj

(ratio numerator-fn denominator-fn)

Inputs: [numerator-fn :- (schema/pred ifn?) denominator-fn :- (schema/pred ifn?)] Returns: RatioGauge

Given two functions, return a Ratio metric whose value will be computed by calling the first function to retrieve the numerator and the second function to retrieve the denominator

Inputs: [numerator-fn :- (schema/pred ifn?) denominator-fn :- (schema/pred ifn?)]
Returns: RatioGauge

Given two functions, return a Ratio metric whose value will be computed
by calling the first function to retrieve the numerator and the second
function to retrieve the denominator
sourceraw docstring

registerclj

(register registry metric-name metric)

Inputs: [registry :- MetricRegistry metric-name :- schema/Str metric :- Metric] Returns: Metric

Register a metric with a metrics registry, using the given metric name.

Inputs: [registry :- MetricRegistry metric-name :- schema/Str metric :- Metric]
Returns: Metric

Register a metric with a metrics registry, using the given metric name.
sourceraw docstring

time!cljmacro

(time! t & body)

Times the body forms against the given Timer metric

Times the body forms against the given Timer metric
sourceraw docstring

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

× close