monitoring and alerting program for data streams such as recording files that update regularly
Project description
stream_monitor
This program monitors a specified set of data streams (files) for changes. If a file is not changed in a specified time, an alert is sent using Pushbullet.
setup
pip install stream_monitor
Set up a Pushbullet account, create an access token and store a Pushbullet token in the file ~/.pushbullet. Install Pushbullet on a mobile device.
configuration and usage
The file stream_monitor_configuration.py is imported as a module from the working directory. It contains a dictionary of the following form:
streams = {
"./recording.csv": {"update_time": 30}
}
When the script stream_monitor.py is executed, it imports the configuration and runs in a continuous loop, sending a Pushbullet alert whenever it detects that a stream is not being updated in its expected update time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for stream_monitor-2018.1.11.1609.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee84865afbac6790d612df937bb5a19e710f8d9350f05cd3091dc479abbf0d5e |
|
MD5 | ff8daabf00a2b133dfa75ef78ee82cfc |
|
BLAKE2b-256 | 8c58202f0a39b3629751182abddbf0d5a5dd3a1411fabdee629bc293711e8186 |