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 scalar.
setup
pip install stream_monitor
Set up scalar, as described here.
configuration and usage
A JSON configuration file (by default stream_monitor_configuration.json) guides the program on the streams to monitor and their required update times. Its contents are of the following form:
{
"streams": {
"./recording.csv": {"update_time"}: 30
}
}
In this example configuration, recording.csv is a filepath to monitor for changes and 30 is the time in seconds within which the filepath should change.
When the program stream_monitor is executed, it imports the configuration and runs in a continuous loop, sending an alert whenever it detects that a stream is not being updated in its expected update time. The script has options for the configuration filepath, alarms, checking interval and verbosity (see stream_monitor --help).
Metadata
Release files for stream_monitor 2018.8.26.1543
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stream_monitor-2018.8.26.1543.tar.gz | 3.6 kB | Without provenance | Details for stream_monitor-2018.8.26.1543.tar.gz |
Release files / stream_monitor-2018.8.26.1543.tar.gz
| Download URL | stream_monitor-2018.8.26.1543.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10150ae3a168c049dede9941d01cf21b2c7f3f77e4a59b8c4f62f551f46a7530
|
|
BLAKE2b-256 checksum How to use checksums |
ad91ee453fad460a59735f0b18621100252208f66d3a93ba8152ae21745c25b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for stream_monitor 2018.8.26.1543
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.