Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hawkular/hawkular-client-java
Java client for Hawkular
https://github.com/hawkular/hawkular-client-java
hawkular java
Last synced: about 1 month ago
JSON representation
Java client for Hawkular
- Host: GitHub
- URL: https://github.com/hawkular/hawkular-client-java
- Owner: hawkular
- License: apache-2.0
- Created: 2015-03-17T16:35:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T17:04:36.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T09:32:18.905Z (9 months ago)
- Topics: hawkular, java
- Language: Java
- Size: 390 KB
- Stars: 11
- Watchers: 30
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/hawkular/hawkular-client-java.svg?branch=master)](https://travis-ci.org/hawkular/hawkular-client-java)
[![Release Version](https://img.shields.io/maven-central/v/org.hawkular.client/hawkular-java-client.svg?maxAge=2592000)](https://mvnrepository.com/artifact/org.hawkular.client/hawkular-java-client)
[![License](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)]()# Java client for [Hawkular](https://github.com/hawkular)
Example,
```java
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](src/test/java/org/hawkular/client/test) 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://:8080`)To run `mvn test`
Run with debug log: `mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=debug -Dorg.slf4j.simpleLogger.logFile=target/test.log`
- http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html# Help Wanted
This project is under active development. Pull requests are welcome.