Module: Trifle::Ruby
- Defined in:
- lib/trifle/ruby.rb,
lib/trifle/ruby/version.rb,
lib/trifle/ruby/nocturnal.rb,
lib/trifle/ruby/driver/redis.rb,
lib/trifle/ruby/configuration.rb,
lib/trifle/ruby/mixins/packer.rb,
lib/trifle/ruby/operations/timeseries/values.rb,
lib/trifle/ruby/operations/timeseries/increment.rb
Defined Under Namespace
Modules: Driver, Mixins, Operations
Classes: Configuration, DriverNotFound, Error, Nocturnal
Constant Summary
collapse
- VERSION =
'3.0.4'
Class Method Summary
collapse
Class Method Details
20
21
22
23
24
|
# File 'lib/trifle/ruby.rb', line 20
def self.configure
yield(default)
default
end
|
.default ⇒ Object
16
17
18
|
# File 'lib/trifle/ruby.rb', line 16
def self.default
@default ||= Configuration.new
end
|
.track(key:, at:, values:, config: nil) ⇒ Object
.values(key:, from:, to:, range:, config: nil) ⇒ Object
35
36
37
38
39
40
41
42
43
|
# File 'lib/trifle/ruby.rb', line 35
def self.values(key:, from:, to:, range:, config: nil)
Trifle::Ruby::Operations::Timeseries::Values.new(
key: key,
from: from,
to: to,
range: range,
config: config
).perform
end
|