NAME

Juno::Role::Check - Check role for Juno

VERSION

version 0.005

DESCRIPTION

This role provides Juno checks with basic functionality they all share.

ATTRIBUTES

hosts

Custom per-check hosts list.

interval

Custom per-check interval.

after

Custom pre-check delay seconds

on_before

A callback for before an action occurs.

on_success

A callback for when an action succeeded.

on_fail

A callback for when an action failed.

on_result

A callback to catch any result.

This is useful if you have your own logic and don't count on the check to decide if something is successful or not.

Suppose you run the HTTP check and you have a special setup where 403 Forbidden is actually a correct result.

AUTHORS

  • Sawyer X <xsawyerx@cpan.org>

  • Adam Balali <adamba@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Sawyer X.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.