Beispiel #1
0
        public async Task Helper()
        {
            //var db = new SharpTsdbClient.Client("localhost").Db("Haus");
            var db = new SharpTsdbClient.Client("localhost").Db("f*x");

            var result =
                await
                db.QueryTableAsync <float>(
                    d =>
                    d.GetTable <float>("(?<g>.*).(?<k>Temperatur).*", "time > now() - 1M")
                    .Transform(s => s.GroupBy("1d", a => a.Mean())));
        }
Beispiel #2
0
        public async Task Helper()
        {
            //var db = new SharpTsdbClient.Client("localhost").Db("Haus");
            var db = new SharpTsdbClient.Client("localhost").Db("f*x");

            var result =
                await
                    db.QueryTableAsync<float>(
                        d =>
                            d.GetTable<float>("(?<g>.*).(?<k>Temperatur).*", "time > now() - 1M")
                                .Transform(s => s.GroupBy("1d", a => a.Mean())));
        }
Beispiel #3
0
 public void Setup()
 {
     _dbClient = new SharpTsdbClient.Client("10.10.1.77").Db("f*x");
 }
Beispiel #4
0
 public void Setup()
 {
     _dbClient = new SharpTsdbClient.Client("10.10.1.77").Db("f*x");
 }