1Swatchdog::Threshold(3)User Contributed Perl DocumentatioSnwatchdog::Threshold(3)
2
3
4
6 Swatchdog::Threshold - Perl extension for thresholding in swatchdog(1)
7
9 use Swatchdog::Threshold;
10
11 &Swatchdog::threshold( SWID => <int>,
12 TYPE => <limit|threshold|both>,
13 TRACK_BY => <key>, # like an IP addr
14 COUNT => <int>,
15 SECONDS => <int>
16 );
17
19 threshold track_by=<key>,
20 type=<limit|threshold|both>,
21 count=<int>,
22 seconds=<int>
23
25 SWID is swatchdog's internal ID number for the watchfor block
26
27 TYPE can be limit, threshold, or both
28
29 Limit - Alert on the 1st COUNT events during the time interval,
30 then ignore events for the rest of the time interval.
31
32 Threshold - Alert every COUNT times we see this event during the
33 time interval.
34
35 Both
36 Alert once per time interval after seeing COUNT occurrences of the
37 event, then ignore any additional events during the time interval.
38
39 SECONDS is the time interval
40
42 E. Todd Atkins, todd.atkins@stanfordalumni.org
43
45 perl(1), swatchdog(1).
46
47
48
49perl v5.38.0 2023-08-04 Swatchdog::Threshold(3)