hawkular / hawkular-client-java

Java client for Hawkular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Java client for Hawkular

License:Apache License 2.0


Languages

Language:Java 99.1%Language:Shell 0.6%Language:Ruby 0.2%