org.zodiac.monitor.LogEvent Maven / Gradle / Ivy
package org.zodiac.monitor;
import java.io.Serializable;
import org.zodiac.commons.util.serialize.JsonUtil;
final class LogEvent implements Serializable {
private static final long serialVersionUID = -1305123525153297522L;
private final String type;
private final Object param;
public LogEvent(String type, Object param) {
super();
this.type = type;
this.param = param;
}
public String getParam() {
return JsonUtil.toJsonString(this.param);
}
public String getType() {
return type;
}
@Override
public String toString() {
return JsonUtil.toJsonString(this);
}
}