There is now a constructor, AdlerPlanetoid.construct_from_JSON(), which allows you to construct the AdlerPlanetoid object from a JSON file. This is so we can create the object from a Kafka alert.
Note that it assumes there is only a single value for each JSON key, i.e. that none of them will be lists.
Also note that this has not been unit tested.
Describe your changes.
Review Checklist for Source Code Changes
[x] Does pip install still work?
[ ] Have you written a unit test for any new functions?
[x] Do all the units tests run successfully?
[x] Does adler run successfully on a test set of input files/databases?
[x] Have you used black on the files you have updated to confirm python programming style guide enforcement?
Fixes #143.
AdlerPlanetoid.construct_from_JSON()
, which allows you to construct the AdlerPlanetoid object from a JSON file. This is so we can create the object from a Kafka alert.Describe your changes.
Review Checklist for Source Code Changes