InfluxCommunity / influxdb-ruby

Ruby client for InfluxDB
MIT License
370 stars 133 forks source link

Add list_series and delete_series methods to Client #183

Closed wrocla closed 7 years ago

wrocla commented 7 years ago

It would be nice to have list_series and delete_series methods on Client, like list_databases or delete_database.

e.g.:

influxdb = InfluxDB::Client.new ENV['INFLUXDB_DATABASE'], ['INFLUXDB_USERNAME'], ['INFLUXDB_PASSWORD']
influxdb.list_series
influxdb.delete_series(series_name)

I made PR in two versions. https://github.com/influxdata/influxdb-ruby/pull/184

https://github.com/influxdata/influxdb-ruby/pull/185

dmke commented 7 years ago

Cool!

I'll have a look later, when I'm back home (was just about to get to work).

dmke commented 7 years ago

I'm in favour of #185 (i.e. I don't like the additional execute_db method).

I have some comments though, which I'm going to add over there.