Module: Influxer
- Defined in:
- lib/influxer.rb,
lib/influxer/model.rb,
lib/influxer/client.rb,
lib/influxer/config.rb,
lib/influxer/engine.rb,
lib/influxer/version.rb,
lib/influxer/rails/client.rb,
lib/influxer/metrics/metrics.rb,
lib/influxer/metrics/scoping.rb,
lib/influxer/metrics/relation.rb,
lib/influxer/metrics/scoping/named.rb,
lib/influxer/metrics/scoping/default.rb,
lib/influxer/metrics/quoting/timestamp.rb,
lib/influxer/metrics/active_model3/model.rb,
lib/influxer/metrics/relation/time_query.rb,
lib/influxer/metrics/relation/calculations.rb,
lib/influxer/metrics/relation/where_clause.rb,
lib/influxer/metrics/scoping/current_scope.rb,
lib/influxer/metrics/scoping/old_current_scope.rb
Overview
Defined Under Namespace
Modules: ActiveModel3, Calculations, Model, Scoping, TimeQuery, TimestampQuoting, WhereClause
Classes: Client, Config, Engine, Metrics, MetricsError, MetricsInvalid, Relation
Constant Summary
collapse
- VERSION =
"1.1.4"
Class Method Summary
collapse
Class Method Details
.active_model3? ⇒ Boolean
8
9
10
|
# File 'lib/influxer.rb', line 8
def self.active_model3?
ActiveModel::VERSION::MAJOR == 3
end
|
.client ⇒ Object
31
32
33
|
# File 'lib/influxer.rb', line 31
def self.client
@client ||= Client.new
end
|
.config ⇒ Object
23
24
25
|
# File 'lib/influxer.rb', line 23
def self.config
@config ||= Config.new
end
|
27
28
29
|
# File 'lib/influxer.rb', line 27
def self.configure
yield(config) if block_given?
end
|
.reset! ⇒ Object
35
36
37
38
39
|
# File 'lib/influxer.rb', line 35
def self.reset!
@client.stop! unless @client.nil?
@config = nil
@client = nil
end
|