1Swatch::Threshold(3) User Contributed Perl Documentation Swatch::Threshold(3)
2
3
4
6 Swatch::Threshold - Perl extension for thresholding in swatch(1)
7
9 use Swatch::Threshold;
10
11 &Swatch::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 swatch'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), swatch(1).
46
47
48
49perl v5.34.0 2021-07-23 Swatch::Threshold(3)