code: def query_timeseries(self, query, from_time=None, to_time=None, by_post=False):
      
      return timeseries.query_timeseries(self, query, from_time, to_time, by_post=by_post)
docs: Query time series.
      @param query: Query string.
      @param from_time: Start of the period to query (optional).
      @param to_time: End of the period to query (default = now).
      @return: A list of ApiTimeSeriesResponse.