| Nagios-Plugin-OverHTTP documentation | view source | Contained in the Nagios-Plugin-OverHTTP distribution. |
Nagios::Plugin::OverHTTP::Library - Types library for Nagios::Plugin::OverHTTP
This documentation refers to Nagios::Plugin::OverHTTP::Library version 0.14
use Nagios::Plugin::OverHTTP::Library qw(URL); # This will import URL type into your namespace as well as some helpers # like to_URL and is_URL. See MooseX::Types for more information.
This module provides types for Nagios::Plugin::OverHTTP
No methods.
This specifies a hostname. This is validated using the
Data::Validate::Domain library with the is_hostname function.
Added in version 0.12; be sure to require this version for this feature.
This specifies a HTTP verb. THis must be in all capital letters and all verbs are valid.
This specifies a valid URL path. Currently this is just a string that must begin with a forward slash. A coercion exists that will add a forward slash to the beginning of the string if there is not one.
This specifies a valid Nagios service status code. The status code must be a valid number. This type also provides a coercion from a string. The string is not case-sensitive and may be one of the following values:
This specifies a valid timeout value. A timeout value is an integer that is greater than zero.
This specifies a URL. This is a string and is validated using the
Data::Validate::URI library with the is_uri function.
$STATUS_OKRepresents a status of OK.
$STATUS_WARNINGRepresents a status of warning.
$STATUS_CRITICALRepresents a status of critical.
$STATUS_UNKNOWNRepresents a status of unknown.
This module is dependent on the following modules:
Douglas Christopher Wilson, <doug at somethingdoug.com>
Please report any bugs or feature requests to
bug-nagios-plugin-overhttp at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Nagios-Plugin-OverHTTP. I
will be notified, and then you'll automatically be notified of progress on your
bug as I make changes.
Copyright 2009 Douglas Christopher Wilson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either:
| Nagios-Plugin-OverHTTP documentation | view source | Contained in the Nagios-Plugin-OverHTTP distribution. |