public async Task TestQueryAsync() { try { var client = new InfluxDBClient(influxUrl, dbUName, dbpwd); var r = await client.QueryDBAsync("stress", "select * from performance limit 10"); DateTime d; Assert.IsTrue(r != null && DateTime.TryParse(r[0].time, out d), "QueryDBAsync retunred null or invalid data"); } catch (Exception e) { Assert.Fail("Unexpected exception of type {0} caught: {1}", e.GetType(), e.Message); return; } }
public async Task TestQueryAsync_MultiSeries() { var client = new InfluxDBClient(influxUrl, dbUName, dbpwd); var r = await client.QueryDBAsync("_internal", "Show Series"); }