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 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 virtual async Task <IInfluxDataApiResponse> WriteAsync(string dbName, IEnumerable <Point> points, string retenionPolicy = "default", TimeUnit precision = TimeUnit.Milliseconds) { var request = new WriteRequest(base.RequestClient.GetPointFormatter()) { DbName = dbName, Points = points, RetentionPolicy = retenionPolicy, Precision = precision.GetParamValue() }; var response = await base.RequestClient.PostAsync(request).ConfigureAwait(false); return(response); }