Sha256: 2d18cf2076839beb733b69c2cfc997c2486140e3b783f35ebb36ded170e5a4ac
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 KB
Contents
# frozen_string_literal: true require 'trifle/stats/designator/custom' require 'trifle/stats/designator/geometric' require 'trifle/stats/designator/linear' require 'trifle/stats/driver/mongo' require 'trifle/stats/driver/postgres' require 'trifle/stats/driver/process' require 'trifle/stats/driver/redis' require 'trifle/stats/driver/sqlite' require 'trifle/stats/mixins/packer' require 'trifle/stats/nocturnal' require 'trifle/stats/configuration' require 'trifle/stats/operations/timeseries/classify' require 'trifle/stats/operations/timeseries/increment' require 'trifle/stats/operations/timeseries/set' require 'trifle/stats/operations/timeseries/values' require 'trifle/stats/version' module Trifle module Stats class Error < StandardError; end class DriverNotFound < Error; end def self.default @default ||= Configuration.new end def self.configure yield(default) default end def self.track(key:, at:, values:, config: nil) Trifle::Stats::Operations::Timeseries::Increment.new( key: key, at: at, values: values, config: config ).perform end def self.assert(key:, at:, values:, config: nil) Trifle::Stats::Operations::Timeseries::Set.new( key: key, at: at, values: values, config: config ).perform end def self.assort(key:, at:, values:, config: nil) Trifle::Stats::Operations::Timeseries::Classify.new( key: key, at: at, values: values, config: config ).perform end 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trifle-stats-1.3.1 | lib/trifle/stats.rb |
trifle-stats-1.3.0 | lib/trifle/stats.rb |