Example #1
0
        public async Task<IInfluxDbApiResponse> WriteAsync(string dbName, Point[] points, string retenionPolicy = "default", TimeUnit precision = TimeUnit.Milliseconds)
        {
            var request = new WriteRequest(_requestClient.GetFormatter())
            {
                DbName = dbName,
                Points = points,
                RetentionPolicy = retenionPolicy,
                Precision = precision.GetParamValue()
            };

            return await _basicRequestModule.Write(request);
        }
 public Task WriteAsync(InfluxData.Net.InfluxDb.Models.Point pt)
 {
     return(client.Client.WriteAsync(pt, database));
 }
Example #3
0
 public async Task<IInfluxDbApiResponse> WriteAsync(string dbName, Point point, string retenionPolicy = "default", TimeUnit precision = TimeUnit.Milliseconds)
 {
     return await WriteAsync(dbName, new[] { point }, retenionPolicy, precision);
 }