NAME
Swatch::Threshold - Perl extension for thresholding in swatch(1)
SYNOPSIS
use Swatch::Threshold;&Swatch::threshold( SWID => <int>,TYPE => <limit|threshold|both>,TRACK_BY => <key>, # like an IP addrCOUNT => <int>,SECONDS => <int>);
SWATCH SYNTAX
threshold track_by=<key>,type=<limit|threshold|both>,count=<int>,seconds=<int>
DESCRIPTION
SWID is swatch's internal ID number for the watchfor blockTYPE can be limit, threshold, or bothLimit - Alert on the 1st COUNT events during the time interval,then ignore events for the rest of the time interval.Threshold - Alert every COUNT times we see this event during thetime interval.BothAlert once per time interval after seeing COUNT occurrences of theevent, then ignore any additional events during the time interval.SECONDS is the time interval
AUTHOR
E. Todd Atkins, [email protected]
SEE ALSO
perl(1), swatch(1).