I am just trying to understand the timestamp field in Mesos statuses.
The Mesos tasks can be listed using the URL,
http://<HOST_NAME>:5050/tasks
and the tasks are returned as follows.
{
"id":"task_id:",
"name":"name",
"state":"TASK_FAILED",
"statuses":[
{
"state":"TASK_FAILED",
"timestamp":1507589419.3334
}
]
}
Here, the timestamp is "timestamp": 1507589419.3334
is in decimal format.
I just convert this to DateTime using the below code.
double myDouble = Double.parseDouble("1507589419.3334");
long myLong = (long) (myDouble*1000);
System.out.println(new DateTime(myLong));
Is this correct? What is this format?
Also, The job was scheduled thru Chronos and Job has a timestamp. How to understand the timezone from here?
Thanks