(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
(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.
(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.
(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.
(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.
(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.
(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.
(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
(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.
(time! t & body)
Times the body forms against the given Timer metric
Times the body forms against the given Timer metric
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close