threefoldtecharchive / jumpscale9_lib

Apache License 2.0
0 stars 0 forks source link

add api that exposes uptime info #298

Open andhartl opened 5 years ago

andhartl commented 5 years ago

please add an api which allows farmers to get the uptime for their node

grafik
zaibon commented 5 years ago

Please define uptime. What exactly is the information you want to see ? Uptime as the number of second the node is up since it booted ? Or uptime as the percentage the node has been up over the last month ?

andhartl commented 5 years ago

definition: minimum one ping a day means the node is online for that day in our current model would be good to give access to all pings we get from a node via the api. then the farmer can build her/his own representation of uptime

zaibon commented 5 years ago

give access to all pings we get from a node via the api

I don't see how we would provide that...a list of timestamp ? This list would grow forever, this is not something we can either store nor return in an API.

andhartl commented 5 years ago

maybe just give them the ping/timestamp when it happens? so we do not store but give them access to the same data we get