Crate netpulse

Source
Expand description

Netpulse is a network monitoring tool that performs connectivity checks and stores results for analysis.

§Architecture

The crate is organized into several key modules:

  • store - Handles persistence of check results
  • records - Defines core types for representing checks and their results
  • checks - Implements the actual connectivity checks
  • analyze - Provides analysis of check results
  • errors - Error types
  • analyze - Analysis functionalities for extrapolating the data in the Store

§Example Usage

use netpulse::store::Store;

// Load or create store
let mut store = Store::load_or_create().unwrap();

// Add checks for configured targets
store.make_checks();

// Save results
store.save().unwrap();

Modules§

analyze
Module providing analysis and reporting of network check results.
checks
Implementation of network connectivity checks.
common
Common functionality shared between netpulse binaries.
errors
Error types for the netpulse crate.
records
Core types for representing network connectivity checks and their results.
store
The store module handles persistence and versioning of check results.

Constants§

DAEMON_LOG_ERR
Redirect the stderr of the daemon here
DAEMON_LOG_INF
Redirect the stdout of the daemon here
DAEMON_PID_FILE
Lockfile of the daemon containing it#s pid
DAEMON_USER
username of the user the daemon should drop to after being started
TIMEOUT
How long to wait until considering a connection as timed out
TIMEOUT_MS
How long to wait until considering a connection as timed out, in milliseconds