public async Task <List <CosmosSensorData> > GetAllItems(FilterValues filter)
        {
            var query  = new CosmosQuery <CosmosSensorData>(CC.SensorLearnContainer);
            var result = await query.GetAllItems(filter);

            return(result);
        }
        public async Task <FilterValues> GetFilter()
        {
            string sql = "SELECT min(c.EventEnqueuedUtcTime) as MinDateTime, " +
                         "max(c.EventEnqueuedUtcTime) as MaxDateTime " +
                         "FROM c";

            var query  = new CosmosQuery <FilterValues>(CC.SensorLearnContainer);
            var result = await query.GetSingleResult(sql);

            return(result);
        }