water.bindings.pojos.HeartBeatEvent Maven / Gradle / Ivy
package water.bindings.pojos;
import com.google.gson.Gson;
public class HeartBeatEvent extends EventV3 {
/** number of sent heartbeats */
public int sends;
/** number of received heartbeats */
public int recvs;
/* INHERITED: Time when the event was recorded. Format is hh:mm:ss:ms
public String date = "";
*/
/* INHERITED: Time in nanos
public long nanos = -1L;
*/
/* INHERITED: type of recorded event
public ApiTimelineV3EventV3EventType type = ApiTimelineV3EventV3EventType.unknown;
*/
public HeartBeatEvent() {
sends = -1;
recvs = -1;
date = "";
nanos = -1L;
type = ApiTimelineV3EventV3EventType.unknown;
}
/** Return the contents of this object as a JSON String. */
@Override
public String toString() {
return new Gson().toJson(this);
}
}