Class: InfluxDB::Rails::Configuration
- Inherits:
-
Object
- Object
- InfluxDB::Rails::Configuration
- Defined in:
- lib/influxdb/rails/configuration.rb
Instance Attribute Summary collapse
-
#application_name ⇒ Object
config option set after_initialize.
-
#application_root ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#async ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#backtrace_filters ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#client ⇒ Object
readonly
configuration passed to InfluxDB::Client.
-
#environment ⇒ Object
config option set after_initialize.
-
#environment_variable_filters ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#ignored_exception_messages ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#ignored_exceptions ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#ignored_user_agents ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#influxdb_database ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#influxdb_hosts ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#influxdb_password ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#influxdb_port ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#influxdb_username ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#max_delay ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#open_timeout ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#read_timeout ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#retry ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_controller_runtimes ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_db_runtimes ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_exceptions ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_instrumentation ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_render_collection ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_render_partial ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_render_template ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_sql ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#series_name_for_view_runtimes ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#time_precision ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
-
#use_ssl ⇒ Object
writeonly
FIXME: Old configuration options, remove this in 1.0.1.
Instance Method Summary collapse
- #debug? ⇒ Boolean
- #ignore_current_environment? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
102 103 104 105 |
# File 'lib/influxdb/rails/configuration.rb', line 102 def initialize @client = ClientConfig.new load_defaults end |
Instance Attribute Details
#application_name ⇒ Object
config option set after_initialize
67 68 69 |
# File 'lib/influxdb/rails/configuration.rb', line 67 def application_name @application_name end |
#application_root=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def application_root=(value) @application_root = value end |
#async=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def async=(value) @async = value end |
#backtrace_filters=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def backtrace_filters=(value) @backtrace_filters = value end |
#client ⇒ Object (readonly)
configuration passed to InfluxDB::Client
70 71 72 |
# File 'lib/influxdb/rails/configuration.rb', line 70 def client @client end |
#environment ⇒ Object
config option set after_initialize
67 68 69 |
# File 'lib/influxdb/rails/configuration.rb', line 67 def environment @environment end |
#environment_variable_filters=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def environment_variable_filters=(value) @environment_variable_filters = value end |
#ignored_exception_messages=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def (value) @ignored_exception_messages = value end |
#ignored_exceptions=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def ignored_exceptions=(value) @ignored_exceptions = value end |
#ignored_user_agents=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def ignored_user_agents=(value) @ignored_user_agents = value end |
#influxdb_database=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def influxdb_database=(value) @influxdb_database = value end |
#influxdb_hosts=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def influxdb_hosts=(value) @influxdb_hosts = value end |
#influxdb_password=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def influxdb_password=(value) @influxdb_password = value end |
#influxdb_port=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def influxdb_port=(value) @influxdb_port = value end |
#influxdb_username=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def influxdb_username=(value) @influxdb_username = value end |
#max_delay=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def max_delay=(value) @max_delay = value end |
#open_timeout=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def open_timeout=(value) @open_timeout = value end |
#read_timeout=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def read_timeout=(value) @read_timeout = value end |
#retry=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def retry=(value) @retry = value end |
#series_name_for_controller_runtimes=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_controller_runtimes=(value) @series_name_for_controller_runtimes = value end |
#series_name_for_db_runtimes=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_db_runtimes=(value) @series_name_for_db_runtimes = value end |
#series_name_for_exceptions=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_exceptions=(value) @series_name_for_exceptions = value end |
#series_name_for_instrumentation=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_instrumentation=(value) @series_name_for_instrumentation = value end |
#series_name_for_render_collection=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_render_collection=(value) @series_name_for_render_collection = value end |
#series_name_for_render_partial=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_render_partial=(value) @series_name_for_render_partial = value end |
#series_name_for_render_template=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_render_template=(value) @series_name_for_render_template = value end |
#series_name_for_sql=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_sql=(value) @series_name_for_sql = value end |
#series_name_for_view_runtimes=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def series_name_for_view_runtimes=(value) @series_name_for_view_runtimes = value end |
#time_precision=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def time_precision=(value) @time_precision = value end |
#use_ssl=(value) ⇒ Object (writeonly)
FIXME: Old configuration options, remove this in 1.0.1
73 74 75 |
# File 'lib/influxdb/rails/configuration.rb', line 73 def use_ssl=(value) @use_ssl = value end |
Instance Method Details
#debug? ⇒ Boolean
107 108 109 |
# File 'lib/influxdb/rails/configuration.rb', line 107 def debug? @debug end |
#ignore_current_environment? ⇒ Boolean
111 112 113 |
# File 'lib/influxdb/rails/configuration.rb', line 111 def ignore_current_environment? ignored_environments.include?(environment) end |