NAME
App::PerlWatcher::WatcherMemory - Represents watcher memory, which can be persisted (detached) from Watcher
VERSION
version 0.14
ATTRIBUTES
thresholds_map
The map, which represents how to interpret successul or unsuccessful result, i.e. which level of severity it is. It looks like:
my $map = {
fail => {
3 => 'info',
5 => 'alert',
},
ok => { 3 => 'notice' },
};
last_level
Represents last emitted watcher level.
METHODS
interpret_result
Does result interpretation in accordanse with thresholds_map. The result is boolean: true or false (or coerced to them). Returns the resulting level of interpretation.
AUTHOR
Ivan Baidakou <dmol@gmx.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Ivan Baidakou.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.