code: private Histogram parseDayBucketingHistogram(JsonArray records) {
      log.info("Parse day-based histogram");
  
      Histogram histogram = new Histogram();
  
      Iterator<JsonElement> elements = records.iterator();
      JsonObject element;
  
      while (elements.hasNext()) {
        element = elements.next().getAsJsonObject();
        String time = element.get("time").getAsString() + ZERO_TIME_SUFFIX;
        int count = element.get("cnt").getAsInt();
  
        histogram.add(new HistogramGroup(time, count));
      }
  
      return histogram;
    }
docs: Parse the query results into a {@link Histogram}