Interface OpenTsdbQueryClient
-
- All Known Implementing Classes:
OpenTsdbHttpQueryClient
public interface OpenTsdbQueryClientA client capable of running queries against an OpenTSDB endpoint over the OpenTSDB HTTP API. ReturnedMetricValues are always sorted in increasing order of time stamp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue>query(java.lang.String queryUrl)Executes a query against an OpenTSDB server.
-
-
-
Method Detail
-
query
java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue> query(java.lang.String queryUrl) throws java.lang.ExceptionExecutes a query against an OpenTSDB server. The returnedMetricValues are sorted in order of increasing time stamp.- Parameters:
queryUrl- A complete OpenTSDB query URL. The query URL must adhere to the OpenTSDB HTTP API.- Returns:
- The list of metric values that the query generated, sorted in order of increasing time.
- Throws:
java.lang.Exception- If the query execution failed.
-
-