logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Monitoring::Plugin::Range - class for handling Monitoring::Plugin range data.

Author

       This code is maintained by the Monitoring Plugin Development Team: see https://monitoring-plugins.org

Description

       Internal Monitoring::Plugin class for handling common range data. See Monitoring::Plugin for public
       interfaces.

Name

       Monitoring::Plugin::Range - class for handling Monitoring::Plugin range data.

Synopsis

           # NB: This is an internal Monitoring::Plugin class.
           # See Monitoring::Plugin itself for public interfaces.

           # Instantiate an empty range object
           $r = Monitoring::Plugin::Range->new;

           # Instantiate by parsing a standard nagios range string
           $r = Monitoring::Plugin::Range->parse_range_string( $range_str );

           # Returns true if the range is defined/non-empty
           $r->is_set;

           # Returns true if $value matches range, false otherwise
           $r->check_range($value);

See Also