Liking cljdoc? Tell your friends :D

cb.cljbeat.statman.core


app-statsclj

source

apply-aggregated-dataclj

(apply-aggregated-data n data)

given metric names and the aggregated data set, apply it to the app-stats bean appropriately.

given metric names and the aggregated data set, apply it to the app-stats bean appropriately.
sourceraw docstring

get-aggregated-dataclj

(get-aggregated-data name)
source

initialize-statsclj

(initialize-stats namespace
                  stat-spec
                  &
                  {:keys [aggregation_period] :or {aggregation_period 60000}})

Initialize stats for this app. stat-spec is an initial map of stats stat-spec should be a vector of stats in the form :name name of stat, i.e. :velocity :init the initial val

The default aggregation period is 1 minute, you can change that with :aggregation_period

Initialize stats for this app. stat-spec is an initial map of stats
stat-spec should be a vector of stats in the form
 :name name of stat, i.e. :velocity
 :init the initial val

 The default aggregation period is 1 minute, you can change that with :aggregation_period
sourceraw docstring

make-statclj

(make-stat args)

Func to create stats from registry Usually you want to call initialize-stats with a complete spec. Example: (make-stat {:type :counter :name :foo :initial_value 3)

Func to create stats from registry
 Usually you want to call initialize-stats with a complete spec.
Example:
(make-stat {:type :counter :name :foo :initial_value 3)
sourceraw docstring

register-stat!clj

(register-stat! stat)

Registers a statistic with statman.

Registers a statistic with statman.
sourceraw docstring

reset-all!clj

(reset-all!)

Clear everything.

Clear everything.
sourceraw docstring

statistic-registryclj

Right now there is only 1 type of statistic, but this is the registry mapping symbol names to constructor functions for the make-stat func.

Right now there is only 1 type of statistic, but this is the registry mapping
symbol names to constructor functions for the make-stat func.
sourceraw docstring

statisticsclj

source

update-stat!clj

(update-stat! name value)

Given a stat :foo call its update-data function with value (update-data :foo 42.0)

Given a stat :foo call its update-data function with value
(update-data :foo 42.0)
sourceraw docstring

with-timing!cljmacro

(with-timing! stat-name body)

Track with timing stat-name is the name of the stat to record result with There are currently no options until we add rate here Example: (with-timing :foo ...)

Track with timing
  stat-name is the name of the stat to record result with
  There are currently no options until we add rate here
Example:
(with-timing :foo
...)
sourceraw docstring

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

× close