Module: Trifle::Stats
- Defined in:
- lib/trifle/stats.rb,
lib/trifle/stats/version.rb,
lib/trifle/stats/nocturnal.rb,
lib/trifle/stats/driver/mongo.rb,
lib/trifle/stats/driver/redis.rb,
lib/trifle/stats/configuration.rb,
lib/trifle/stats/driver/sqlite.rb,
lib/trifle/stats/mixins/packer.rb,
lib/trifle/stats/driver/process.rb,
lib/trifle/stats/driver/postgres.rb,
lib/trifle/stats/designator/custom.rb,
lib/trifle/stats/designator/linear.rb,
lib/trifle/stats/designator/geometric.rb,
lib/trifle/stats/operations/timeseries/set.rb,
lib/trifle/stats/operations/timeseries/values.rb,
lib/trifle/stats/operations/timeseries/classify.rb,
lib/trifle/stats/operations/timeseries/increment.rb
Defined Under Namespace
Modules: Driver, Mixins, Operations
Classes: Configuration, Designator, DriverNotFound, Error, Nocturnal
Constant Summary
collapse
- VERSION =
'1.3.1'
Class Method Summary
collapse
-
.assert(key:, at:, values:, config: nil) ⇒ Object
-
.assort(key:, at:, values:, config: nil) ⇒ Object
-
.configure {|default| ... } ⇒ Object
-
.default ⇒ Object
-
.track(key:, at:, values:, config: nil) ⇒ Object
-
.values(key:, from:, to:, range:, config: nil) ⇒ Object
Class Method Details
.assert(key:, at:, values:, config: nil) ⇒ Object
44
45
46
47
48
49
50
51
|
# File 'lib/trifle/stats.rb', line 44
def self.assert(key:, at:, values:, config: nil)
Trifle::Stats::Operations::Timeseries::Set.new(
key: key,
at: at,
values: values,
config: config
).perform
end
|
.assort(key:, at:, values:, config: nil) ⇒ Object
29
30
31
32
33
|
# File 'lib/trifle/stats.rb', line 29
def self.configure
yield(default)
default
end
|
.default ⇒ Object
25
26
27
|
# File 'lib/trifle/stats.rb', line 25
def self.default
@default ||= Configuration.new
end
|
.track(key:, at:, values:, config: nil) ⇒ Object
.values(key:, from:, to:, range:, config: nil) ⇒ Object
62
63
64
65
66
67
68
69
70
|
# File 'lib/trifle/stats.rb', line 62
def self.values(key:, from:, to:, range:, config: nil)
Trifle::Stats::Operations::Timeseries::Values.new(
key: key,
from: from,
to: to,
range: range,
config: config
).perform
end
|