예제 #1
0
 def query_timeseries(self, query, from_time=None, to_time=None):
     """
 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.
 """
     return timeseries.query_timeseries(self, query, from_time, to_time)
예제 #2
0
파일: api_client.py 프로젝트: Jimvin/cm_api
 def query_timeseries(self, query, from_time=None, to_time=None):
   """
   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.
   """
   return timeseries.query_timeseries(self, query, from_time, to_time)
예제 #3
0
 def query_rollup(self,
                  query,
                  from_time,
                  to_time,
                  desired_rollup=None,
                  must_use_desired_rollup=None):
     return timeseries.query_timeseries(self._api, query, from_time,
                                        to_time, desired_rollup,
                                        must_use_desired_rollup)