Search code examples
javamonitoringhyperic

Hyperic java api sample code


Has anybody used the HQAPI to fetch the metrics of a resource programmatically? I want a sample code which uses the HQAPI to fetch the metrics of a resource.


Solution

  • They seem to have plenty of examples on Github e.g.

    https://github.com/hyperic/hqapi/blob/7b19d6b0ebfb8cfb2903d4a495ab0368ba3e6aeb/src/org/hyperic/hq/hqapi1/test/Metric_test.java

    Also there is an example in their docs:

    http://support.hyperic.com/display/DOC/HQApi+Java+API