Skip to content
Java client for Hawkular
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
docker
src
.gitignore
.travis.force.build
.travis.install.maven.sh
.travis.maven.settings.xml
.travis.yml
LICENSE
README.md
docker-compose.yml
pom.xml

README.md

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.