query_timeseries(resource_root,
query,
from_time=None,
to_time=None,
desired_rollup=None,
must_use_desired_rollup=None,
by_post=False)
| source code
|
Query for time series data from the CM time series data store.
- Parameters:
query - Query string.
from_time (datetime.datetime Note the that datetime must either be time zone
aware or specified in the server time zone. See the python
datetime documentation for more details about python's time zone
handling.) - Start of the period to query (optional).
to_time (datetime.datetime Note the that datetime must either be time zone
aware or specified in the server time zone. See the python
datetime documentation for more details about python's time zone
handling.) - End of the period to query (default = now). This may be an ISO
format string, or a datetime object.
desired_rollup - The aggregate rollup to get data for. This can be RAW,
TEN_MINUTELY, HOURLY, SIX_HOURLY, DAILY, or WEEKLY. Note that
rollup desired is only a hint unless must_use_desired_rollup is
set to true.
must_use_desired_rollup - Indicates that the monitoring server should return the data at
the rollup desired.
by_post - If true, an HTTP POST request will be made to server. This allows
longer query string to be accepted compared to HTTP GET request.
- Returns:
- List of ApiTimeSeriesResponse
|