Module: Legion::Extensions::Influxdb::Helpers::Client
- Included in:
- Runners::RetentionPolicy
- Defined in:
- lib/legion/extensions/influxdb/helpers/client.rb
Instance Method Summary collapse
Instance Method Details
#client(**_opts) ⇒ Object
4 5 6 7 |
# File 'lib/legion/extensions/influxdb/helpers/client.rb', line 4 def client(**_opts) # @client ||= InfluxBD::Client.new @client ||= InfluxBD::Client.new('esphome', { host: 'influx.home.whonodes.org', async: false }) end |
#host ⇒ Object
9 10 11 |
# File 'lib/legion/extensions/influxdb/helpers/client.rb', line 9 def host 'localhost' end |
#port ⇒ Object
13 14 15 |
# File 'lib/legion/extensions/influxdb/helpers/client.rb', line 13 def port 8086 end |