* Return status as integer
During the first start the if statement on line 237 does not get evaluated correctly and will not "return"
Therefore by any restart the first evaluation triggers a update even if the original status is same.
* Prevent unecessery push
By a case where allowed_fails > 0 and one failure is received the url monitor pushes a unnecessary update as the component state was not changed, resulting in a notification of "component is operational", but in fact the component was still operation before the update.
This creates another api call (get) towards the cachet, but it is a better trade-off to prevent unnecessary notifications for end-users.
During the first start the if statement on line 237 does not get evaluated correctly and will not "return"
Therefore by any restart the first evaluation triggers a update even if the original status is same.
* Add header option
* Add header option
* Add unit test for headers
* Add client header
* Remove environ for HEADER
environ does not support dictionaries, so HEADER can't be passed.
* Migrating to python 3.7.2, but docker image is not working properly.
Need to continue investigating why it's not properly running.
* Trying to fix the build and fixing logging in the scheduler initialization.
* Trying to fix the build
* Collecting test results
* Fixing the dockerfile
* Updating the development dependencies
In current version of code status file was being imported as cachet_url_monitor.status while configuration.py and status.py being kept in same folder.
Hence replaced imported statement as import status as st.