Module: Legion::Extensions::Influxdb::Runners::RetentionPolicy
- Extended by:
- Helpers::Client
- Includes:
- Helpers::Lex
- Defined in:
- lib/legion/extensions/influxdb/runners/retention_policy.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create(database:, host: 'localhost', port: 8086, **payload) ⇒ Object
- #list(database:, host: 'localhost', port: 8086, **payload) ⇒ Object
Methods included from Helpers::Client
Class Method Details
.alter(payload) ⇒ Object
17 |
# File 'lib/legion/extensions/influxdb/runners/retention_policy.rb', line 17 def self.alter(payload); end |
.delete(payload) ⇒ Object
15 |
# File 'lib/legion/extensions/influxdb/runners/retention_policy.rb', line 15 def self.delete(payload); end |
Instance Method Details
#create(database:, host: 'localhost', port: 8086, **payload) ⇒ Object
7 8 9 |
# File 'lib/legion/extensions/influxdb/runners/retention_policy.rb', line 7 def create(database:, host: 'localhost', port: 8086, **payload) InfluxDB::Client.new(host: payload[:host]).list_retention_policies(database) end |
#list(database:, host: 'localhost', port: 8086, **payload) ⇒ Object
11 12 13 |
# File 'lib/legion/extensions/influxdb/runners/retention_policy.rb', line 11 def list(database:, host: 'localhost', port: 8086, **payload) InfluxDB::Client.new(host: payload[:host]).list_retention_policies(database) end |