Nagios::Plugin::OverHTTP::Parser - Moose role for output parsers


Nagios-Plugin-OverHTTP documentation Contained in the Nagios-Plugin-OverHTTP distribution.

Index


Code Index:

NAME

Top

Nagios::Plugin::OverHTTP::Parser - Moose role for output parsers

VERSION

Top

This documentation refers to Nagios::Plugin::OverHTTP::Parser version 0.14

SYNOPSIS

Top

  package My::Custom::Parser;

  use Moose;

  with 'Nagios::Plugin::OverHTTP::Parser'; # use the role (required)

  # Implement the parser and define
  # any required methods

  no Moose; # unimport Moose

  1;

DESCRIPTION

Top

This module is a Moose role that defines the required API for parsers.

REQUIRED METHODS

Top

parse

This must return a new instance of Nagios::Plugin::OverHTTP::Response. The only argument accepted is a HTTP::Response object.

  my $parsed = $parser->parse($http_response);

METHODS

Top

This module has no methods.

DEPENDENCIES

Top

This module is dependent on the following modules:

* Moose::Role 0.74
* namespace::clean 0.04

AUTHOR

Top

Douglas Christopher Wilson, <doug at somethingdoug.com>

BUGS AND LIMITATIONS

Top

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.

LICENSE AND COPYRIGHT

Top


Nagios-Plugin-OverHTTP documentation Contained in the Nagios-Plugin-OverHTTP distribution.

package Nagios::Plugin::OverHTTP::Parser;

use 5.008001;
use strict;
use warnings 'all';

###########################################################################
# METADATA
our $AUTHORITY = 'cpan:DOUGDUDE';
our $VERSION   = '0.14';

###########################################################################
# MOOSE ROLE
use Moose::Role 0.74;

###########################################################################
# ALL IMPORTS BEFORE THIS WILL BE ERASED
use namespace::clean 0.04 -except => [qw(meta)];

###########################################################################
# REQUIRED METHODS
requires qw(
	parse
);

1;

__END__