atsEntity.addPrimaryFilter(EntityTypes.TEZ_VERTEX_ID.name(),
event.getTaskAttemptID().getTaskID().getVertexID().toString());
atsEntity.addPrimaryFilter(EntityTypes.TEZ_TASK_ID.name(),
event.getTaskAttemptID().getTaskID().toString());
TimelineEvent finishEvt = new TimelineEvent();
finishEvt.setEventType(HistoryEventType.TASK_ATTEMPT_FINISHED.name());
finishEvt.setTimestamp(event.getFinishTime());
atsEntity.addEvent(finishEvt);
atsEntity.addOtherInfo(ATSConstants.FINISH_TIME, event.getFinishTime());
atsEntity.addOtherInfo(ATSConstants.TIME_TAKEN, (event.getFinishTime() - event.getStartTime()));
atsEntity.addOtherInfo(ATSConstants.STATUS, event.getState().name());