Class OpenTsdbHttpQueryClient

    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenTsdbHttpQueryClient

        public OpenTsdbHttpQueryClient()
        Constructs a OpenTsdbHttpQueryClient that uses a default Logger instance.
      • OpenTsdbHttpQueryClient

        public OpenTsdbHttpQueryClient​(org.slf4j.Logger logger)
        Constructs a OpenTsdbHttpQueryClient with a specified Logger instance.
        Parameters:
        logger - A Logger that log output will be written to.
    • Method Detail

      • query

        public java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue> query​(java.lang.String queryUrl)
                                                                                  throws java.lang.Exception
        Description copied from interface: OpenTsdbQueryClient
        Executes a query against an OpenTSDB server.

        The returned MetricValues are sorted in order of increasing time stamp.

        Specified by:
        query in interface OpenTsdbQueryClient
        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.