Class: InfluxDB::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb/rails/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_nameObject

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

#clientObject (readonly)

configuration passed to InfluxDB::Client



70
71
72
# File 'lib/influxdb/rails/configuration.rb', line 70

def client
  @client
end

#environmentObject

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 ignored_exception_messages=(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

Returns:

  • (Boolean)


107
108
109
# File 'lib/influxdb/rails/configuration.rb', line 107

def debug?
  @debug
end

#ignore_current_environment?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/influxdb/rails/configuration.rb', line 111

def ignore_current_environment?
  ignored_environments.include?(environment)
end