service_check

Macro service_check 

Source
macro_rules! service_check {
    ($stat:expr, $service_status:path) => { ... };
    ($stat:expr, $service_status:path, $options: expr) => { ... };
    ($stat:path, $service_status:path) => { ... };
    ($stat:path, $service_status:path, $options: expr) => { ... };
    ($stat:expr, $service_status:path; $( $key:literal => $value:literal ), *) => { ... };
    ($stat:expr, $service_status:path, $options: expr; $( $key:literal => $value:literal ), *) => { ... };
    ($stat:path, $service_status:path; $( $key:literal => $value:literal ), *) => { ... };
    ($stat:path, $service_status:path, $options: expr; $( $key:literal => $value:literal ), *) => { ... };
    ($stat:expr, $service_status:path; $( $key:expr => $value:expr ), *) => { ... };
    ($stat:expr, $service_status:path, $options: expr; $( $key:expr => $value:expr ), *) => { ... };
    ($stat:path, $service_status:path; $( $key:expr => $value:expr ), *) => { ... };
    ($stat:path, $service_status:path, $options: expr; $( $key:expr => $value:expr ), *) => { ... };
}
Expand description

Report the status of a service NOTE: Try to minimise variation in tag values (avoid things like timestamps or ids). See note in lib docs!