Robot with API

Hi,
I have a robot that is associated with an API and fetches information from a process so that I can see which robots are working, and the last logs. From what I understand, the error is in the first part; the robot is not fetching the last logs of other robots but rather the date and time it retrieves this information from the robots. Then, when subtracting whit the actual date, it always results in a time difference in seconds, waht i want to know is when was the actual last log of a robot and when is > to 10 minutes. Can you help me?

image