mprober 0.11.0-beta.12

This program aims to collect Linux system information including hostname, kernel version, uptime, RTC time, load average, CPU, memory, network interfaces, block devices and processes. It can be used not only as a normal CLI tool, but also a web application with a front-end webpage and useful HTTP APIs.
Documentation
#[macro_use]
extern crate rocket;

#[macro_use]
extern crate rocket_include_static_resources;

#[macro_use]
extern crate rocket_include_handlebars;

pub mod benchmark;
pub mod rocket_mounts;

use validators::prelude::*;

pub use mprober_lib::*;

#[derive(Debug, Copy, Clone, PartialOrd, PartialEq, Validator)]
#[validator(number(nan(NotAllow), range(Inside(min = 1))))]
pub struct MonitorInterval(f64);

impl MonitorInterval {
    #[inline]
    pub fn get_number(&self) -> f64 {
        self.0
    }
}

#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Validator)]
#[validator(unsigned_integer(range(Inside(min = 1, max = 15))))]
pub struct WebMonitorInterval(u64);

impl WebMonitorInterval {
    #[inline]
    pub fn get_number(&self) -> u64 {
        self.0
    }
}

const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");