threefoldtech / tfgrid-sdk-ts

Apache License 2.0
4 stars 8 forks source link

Farm's uptime percentage overview #2988

Open mahendravarmayadala93 opened 5 months ago

mahendravarmayadala93 commented 5 months ago

Which package/s are you suggesting this feature for?

Dashboard

Is your feature request related to a problem? Please describe

According to the latest GEP, DIYs must maintain 95% uptime, while certified Nodes need to achieve 98% uptime. Many farmers have numerous Nodes, making it impractical to monitor each one individually due to time constraints. Implementing a feature to check the overall farm's Node uptime in percentage format would be highly beneficial.

Describe the solution you'd like

To my knowledge, we are unable to calculate the total uptime in a month until it reaches the month's end. It would be beneficial to display the uptime percentage based on the achieved uptime divided by the days completed in the month.

amiraabouhadid commented 3 months ago

Updated uptime calculation

amiraabouhadid commented 2 months ago

investigating uptime miscalculation, writing docstrings to explain calculation

amiraabouhadid commented 2 months ago

tested new calculation, found an error in edge cases, will go over calculation again tomorrow

amiraabouhadid commented 2 months ago

Fixed edge cases handling

xmonader commented 3 weeks ago

@amiraabouhadid is that linked to a specific PR? should I move it to 3.16?

amiraabouhadid commented 3 weeks ago

Not linked to a pr, can be moved to 3.16