for (TaskStatusEvent event : events) {
String host = checkNotNull(event.getHost());
long timestamp = checkNotNull(event.getTimestamp());
TaskStatus status = checkNotNull(event.getStatus());
State state = checkNotNull(status.getState());
String containerId = status.getContainerId();
containerId = containerId == null ? "<none>" : containerId;
table.row(host, format.print(timestamp), state, status.getThrottled(), containerId);
}