![]() |
![]()
| ![]() |
![]()
NAMESyslogScan::Usage -- encapsulates the total volumes of mail broadcast, sent, and received through sendmail by a single user or group. SyslogScan::Volume -- encapsulates a number of messages along with a total number of bytes SYNOPSIS# $summary is a SyslogScan::Summary object use SyslogScan::Usage; my $usage = $$summary{'john_doe@foo.com'}; $usage -> dump(); use SyslogScan::Volume; my $broadcastVolume = $usage -> getBroadcastVolume(); my $sendVolume = $usage -> getSendVolume(); my $receiveVolume = $usage -> getReceiveVolume(); print "John Doe sent $$sendVolume[0] messages with $$sendVolume[1] bytes\n"; DESCRIPTIONBroadcast, Send, and ReceiveVolume of messages received has the obvious meaning. Volume of messages sent and volume of messages broadcast require more explanation. If I send out a message which has three recipients, then for the purposes of the SyslogScan modules, I am broadcasting the message once, but I am sending it three times. Usage methods
Volume methods
Volume internalsA Volume is simply a two-element array of ($messages, $bytes). $$volume[0] is the number of messages $$volume[1] is the number of bytes AUTHOR and COPYRIGHTThe author (Rolf Harold Nelson) can currently be e-mailed as rolf@usa.healthnet.org. This code is Copyright (C) SatelLife, Inc. 1996. All rights reserved. This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself. In no event shall SatelLife be liable to any party for direct, indirect, special, incidental, or consequential damages arising out of the use of this software and its documentation (including, but not limited to, lost profits) even if the authors have been advised of the possibility of such damage. SEE ALSOSyslogScan::Summary
|