jamesoff / simplemonitor

A Python-based network and host monitor
https://simplemonitor.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
407 stars 166 forks source link

New logger to dump a JSON file with all attributes of a Monitor & ISO dates #1404

Open wsw70 opened 6 months ago

wsw70 commented 6 months ago

This PR is for a logger that creates a JSON file with all the attributes of a Monitor. It also uses ISO 8601 for dates to make parsing easier (reference: https://xkcd.com/1179/).

In addition to the fact that the world needs another JSON file, I intend to use it in a dashboard that will allow for selective display of data.

IMPORTANT NOTE: this Logger requires jsonpickle but I do not know how to hint this in the code (I need to learn Poetry). If you do not intend to pull in extra dependencies please reject this PR as it won't work without.