Ejemplo n.º 1
0
        public async Task<IInfluxDbApiResponse> Backfill(string dbName, Backfill backfill)
        {
            var downsamplers = BuildDownsamplers(backfill.Downsamplers);
            var filters = BuildFilters(backfill.Filters);
            var timeFrom = backfill.TimeFrom.ToString("yyyy-MM-dd HH:mm:ss");
            var timeTo = backfill.TimeTo.ToString("yyyy-MM-dd HH:mm:ss");
            var tags = BuildTags(backfill.Tags);
            var fillType = BuildFillType(backfill.FillType);

            var query = String.Format(QueryStatements.Backfill, 
                downsamplers, backfill.DsSerieName, backfill.SourceSerieName, filters, timeFrom, timeTo, backfill.Interval, tags, fillType);

            return await this.RequestClient.GetQueryAsync(RequestClientUtility.BuildQueryRequestParams(dbName, query));
        }
Ejemplo n.º 2
0
 public async Task<IInfluxDbApiResponse> BackfillAsync(string dbName, Backfill backfill)
 {
     return await _cqRequestModule.Backfill(dbName, backfill);
 }