Commit 40cfce3f authored by neop's avatar neop
Browse files

get more info

parent e0be57d6
......@@ -113,9 +113,9 @@ public class Main {
var tables = influxDBClient.getQueryApi().query("from(bucket:\"openforecast\") |> range(start: -600d1m, stop: -600d) |> mean() |> yield(name: \"_results\")");
for (var fluxTable : tables) {
var records = fluxTable.getRecords();
for (var fluxRecord : records) {
System.out.println(fluxRecord.getTime() + ": " + fluxRecord.getValueByKey("_value"));
System.out.println("table " + fluxTable);
for (var record : fluxTable.getRecords()) {
System.out.println(String.format("%s %s: %s %s", record.getTime(), record.getMeasurement(), record.getField(), record.getValue()));
}
}
System.out.println("finished influx query");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment