public class MetricPublisher extends Object
| Constructor and Description |
|---|
MetricPublisher() |
| Modifier and Type | Method and Description |
|---|---|
void |
publishToTopic(PingStatus status)
Serializes the given
PingStatus and then submits it on the Metrics topic of the bus. |
void |
sendToMetricsViaRest(PingStatus status)
Serializes the given
PingStatus and then submits it to Hawkular-metrics service via REST |
public void sendToMetricsViaRest(PingStatus status)
PingStatus and then submits it to Hawkular-metrics service via RESTstatus - the PingStatus to publishpublic void publishToTopic(PingStatus status)
PingStatus and then submits it on the Metrics topic of the bus.status - the PingStatus to publishCopyright © 2015 Red Hat. All rights reserved.