@Override
public void visit(CliContext context, JobLog o, OutputSink sink) throws IOException {
LinkedHashMap<String, Object> values = Maps.newLinkedHashMap();
JobExecutionData execution = o.getExecution();
if (execution != null) {
values.put("jobId", execution.getJobKey().getItemIdString());
values.put("executionId", execution.getExecutionId());
values.put("start", o.getExecution().getStartedAt());
values.put("end", o.getExecution().getEndedAt());
values.put("state", execution.getState());
}
List<JobLogLine> lines = o.getLines();
values.put("lines", lines.size());