Commit Graph

6 Commits

Author SHA1 Message Date
Luna Mendes 227087284b blueprints.api: use downtime in milliseconds, not seconds
This was giving way too optimistic availability rates.
2018-09-05 21:41:33 -03:00
Luna Mendes 5428dcee3c change uptimes to daily, weekly and monthly
- /api/current_status renamed to /api/quick
 - add week_uptime and month_uptime to responses
2018-09-05 21:17:26 -03:00
Luna Mendes d36d3d7449 blueprints.api: quickfix 2018-08-08 17:37:36 -03:00
Luna Mendes 86c99c8fee blueprints.api: add calc_uptime, uptime field on api 2018-08-08 17:30:51 -03:00
Luna Mendes 83b2d88311
change adapter response type to dict
this simplifies a lot of code since tuples are immutable.

 - adapters: add Adapter._construct
 - worker: set status state to False on worker crash
2018-07-14 22:27:06 -03:00
Luna Mendes 3fa27f5de6
move blueprints inside elstat folder
- add OP.DATA
 - manager: add _websockets map
 - manager: add basic publish logic
 - worker: add timestamps to published messages
2018-07-11 17:00:39 -03:00
Renamed from blueprints/api.py (Browse further)