예제 #1
0
        public static async Task Main(string[] args)
        {
            InfluxLibrary influx = new InfluxLibrary("http://134.209.204.150:8086", "SimulatorUser", "2k6qzXbefhvtVsYEojztgkQ7UZqVk2UbmQmTgM2CauGfqDtTCcQLFKrcxYk3s36L");

            await influx.WriteTimeSeriesIntAsync(GetTimeSeriesInt());

            await influx.WriteTimeSeriesDoubleAsync(GetTimeSeriesDouble());
        }
예제 #2
0
        public async Task InfluxDB_Write_With_All_Format()
        {
            int expected = 6;

            InfluxLibrary influx = new InfluxLibrary("http://134.209.204.150:8086", "SimulatorUser", "2k6qzXbefhvtVsYEojztgkQ7UZqVk2UbmQmTgM2CauGfqDtTCcQLFKrcxYk3s36L");

            await influx.WriteTimeSeriesIntAsync(GetTimeSeriesInt());

            await influx.WriteTimeSeriesDoubleAsync(GetTimeSeriesDouble());

            var actual = await influx.GetDatabaseStructure("Test");

            Assert.AreEqual(expected, actual["autogen"].Count);
        }