Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public Task WriteAsync(InfluxData.Net.InfluxDb.Models.Point pt)
 {
     return(client.Client.WriteAsync(pt, database));
 }
Exemplo n.º 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);
 }