public class HawkularAvailDataPayloadBuilder extends Object implements AvailDataPayloadBuilder
| Constructor and Description |
|---|
HawkularAvailDataPayloadBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataPoint(String key,
long timestamp,
Avail value)
Add an availability data point.
|
int |
getNumberDataPoints() |
String |
toPayload() |
public void addDataPoint(String key, long timestamp, Avail value)
AvailDataPayloadBuilderAvailDataPayloadBuilder.toPayload() to get the payload message that can be used to
send to the storage backend via the storage adapter.addDataPoint in interface AvailDataPayloadBuilderkey - identifies the availability data pointtimestamp - the time the availability was checkedvalue - the value of the availabilitypublic int getNumberDataPoints()
getNumberDataPoints in interface AvailDataPayloadBuilderadded to the payloadpublic String toPayload()
toPayload in interface AvailDataPayloadBuilderCopyright © 2015 Red Hat, Inc.. All rights reserved.