Event::SlidingWindow - Count events that occur within a fixed sliding window of time


Event-SlidingWindow documentation  | view source Contained in the Event-SlidingWindow distribution.

Index


SYNOPSIS

Top

  use Event::SlidingWindow ;

  my $esw = new Event::SlidingWindow(30) ;
  $esw->record_event() ;
  my $cnt = $esw->count_events() ;

DESCRIPTION

Top

Event::SlidingWindow allows you to create a time window of a fixed length and keeps track of how many events have occured within that window as it advances in time. It was created for use in daemons in order to detect denial of service attacks.

AUTHOR

Top

Patrick LeBoutillier, <patl@cpan.org>

COPYRIGHT AND LICENSE

Top


Event-SlidingWindow documentation  | view source Contained in the Event-SlidingWindow distribution.