nagios-range

Crates.ionagios-range
lib.rsnagios-range
version0.2.5
sourcesrc
created_at2022-01-07 15:00:28.763594
updated_at2022-02-26 14:05:59.12904
descriptionProvides types to parse and operate on Nagios ranges
homepage
repositoryhttps://github.com/puetzp/nagios-range
max_upload_size
id509558
size19,189
(puetzp)

documentation

https://docs.rs/nagios-range

README

nagios-range

This is a very small Rust library that simply parses a Nagios range as defined in the Nagios development guidelines.

Example

use nagios_range::{NagiosRange, Error};

fn main() -> Result<(), Error>{
    let range = NagiosRange::from("@~:10");
    assert!(range.is_ok());
    assert!(range?.checks_inside());
    assert!(range?.start_is_infinite());
    assert!(range?.check(5.0));
}
Commit count: 19

cargo fmt