I want to propose that the taskStatus parameter of MesosStatusUpdateEvent be changed to a String instead of an Int and its value to be changed to something more meaningful (i.e. TaskStatus.TaskState.name).
Currently, the taskStatus parameter is an Int with its value from getNumber which comes from the com.google.protobuf.ProtocolMessageEnum interface. This results in JSON events like the following:
This change would make it look like this:
I think this provides a more meaningful set of task states such as TASK_STAGING, TASK_STARTING, TASK_RUNNING, TASK_FINISHED, TASK_FAILED, TASK_KILLED and TASK_LOST.