Query response object: ResultSet¶
InfluxDBClient.query() function will return a
A ResultSet can be browsed in several ways. Its
get_points method can be used to retrieve points generators that filter either by measurement, tags, or both.
Getting all points¶
rs.get_points() will return a generator for all the points in the ResultSet.
Filtering by measurement¶
rs.get_points('cpu') will return a generator for all the points that are in a series with measurement name
cpu, no matter the tags.
rs = cli.query("SELECT * from cpu") cpu_points = list(rs.get_points(measurement='cpu'))