[Hawkular-dev] bus rest client
John Mazzitelli
mazz at redhat.com
Mon Apr 20 15:43:26 EDT 2015
Did I mention this yet?
There is a REST client for sending bus messages. Single jar, only two dependencies (jboss logging, apache HTTP client). To send a bus message (in this case, to the alerts topic):
new RestClient(new URL("http://localhost:8080")).postTopicMessage("HawkularAlertData", yourJsonPayload, null);
That "null" can be a map of headers if you need to send headers.
The client is here: https://github.com/hawkular/hawkular-bus/tree/master/hawkular-bus-rest-client and the maven artifact is org.hawkular.bus:hawkular-bus-rest-client - its just a jar.
More information about the hawkular-dev
mailing list