public async Task<IInfluxDbApiResponse> CreateContinuousQuery(ContinuousQuery continuousQuery) { var downsamplers = BuildDownsamplers(continuousQuery.Downsamplers); var tags = BuildTags(continuousQuery.Tags); var fillType = BuildFillType(continuousQuery.FillType); var subQuery = String.Format(QueryStatements.CreateContinuousQuerySubQuery, downsamplers, continuousQuery.DsSerieName, continuousQuery.SourceSerieName, continuousQuery.Interval, tags, fillType); var query = String.Format(QueryStatements.CreateContinuousQuery, continuousQuery.CqName, continuousQuery.DbName, subQuery); return await this.RequestClient.GetQueryAsync(RequestClientUtility.BuildQueryRequestParams(continuousQuery.DbName, query)); }
public async Task<IInfluxDbApiResponse> CreateContinuousQueryAsync(ContinuousQuery continuousQuery) { return await _cqRequestModule.CreateContinuousQuery(continuousQuery); }