Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 1.41 KB

Build Status Release Version License

Java client for Hawkular

Example,

HawkularClient client = HawkularClient.builder("my-tenant")
    .uri("http://localhost:8080")
    .basicAuthentication("jdoe", "password")
    .build();

System.out.println(client.metrics().tenant().getTenants()); // show all tenants
System.out.println(client.alerts().plugins().findActionPlugins()) // show all plugins
System.out.println(client.inventory().tenant.getTenant()); // get current tenant

See unit tests for more examples.

How to run unit tests?

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 -Dorg.slf4j.simpleLogger.logFile=target/test.log

Help Wanted

This project is under active development. Pull requests are welcome.

You can’t perform that action at this time.