Пример #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));
        }
Пример #2
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);
        }
Пример #3
0
        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);
        }