Example,
HawkularClient hawkular = new HawkularClient("http://209.132.178.218:18080/", "", "");
System.out.println(hawkular.metrics().findTenants()); // show all tenants
System.out.println(hawkular.inventory().pinger()); // 'Hello World'
See unit tests for more examples.
You have set your hawkular server url in to HAWKULAR_ENDPOINT environment variable.(example: export HAWKULAR_ENDPOINT=http://<hawkular-host>:8080)
To run mvn test
Run with debug log: mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=debug
This project is under active development. Pull requests are welcome.
Content type
Image
Digest
sha256:847e818d6…
Size
386.3 MB
Last updated
over 10 years ago
docker pull hawkularqe/java-client