Liz::PingSet::Ping - module for Ping objects of the PingSet
use Liz::PingSet; $pingset = new Liz::PingSet;
$ping = $pingset->Ping; $ping = $pingset->Ping( $ID );
$ping->update;
Provide object oriented access to pings in a PingSet. Usually not accessed directly, but rather through the Liz::PingSet object and its Ping method.
Create a new Ping object from a PingSet object.
1 Liz::PingSet object 2 ID to create Ping object with
1 instantiated object
It is not intended to call this method directly, but rather indirectly through the Liz::PingSet module.
$pingset = new Liz::PingSet; $ping = $pingset->Ping; $ping = $pingset->Ping( $ID );
Delete the Liz::PingSet::Ping object from the database.
1 flag: whether action was successful
$ping->delete;
The following methods allow you to inspect and/or change certain fields of the Liz::PingSet::Ping object.
Return the average roundtrip time of the Liz::PingSet::Ping object.
1 average roundtrip time in milliseconds
$avgroundtrip = $ping->AvgRoundTrip;
Return the Created timestamp of the Liz::PingSet::Ping object.
1 current timestamp value of the Created date
$created = $ping->Created;
Return the number of duplicate packets of the Liz::PingSet::Ping object.
1 current number of duplicate packets
$dups = $ping->Dups;
Return the host of the Liz::PingSet::Ping object. Use method IP for the IP-number associated with the host.
1 host name associated with object (IP-number if cannot be resolved)
$host = $ping->Host;
Return the IP-number of the Liz::PingSet::Ping object. Use method Host for the hostname associated with the IP-number.
1 current IP-number of the object
$IP = $ping->IP;
Return the number of packets of lost the Liz::PingSet::Ping object.
1 current number of packets lost
$lost = $ping->Lost;
Return the maximum roundtrip time of the Liz::PingSet::Ping object.
1 maximum roundtrip time in milliseconds
$maxroundtrip = $ping->MaxRoundTrip;
Return the minimum roundtrip time of the Liz::PingSet::Ping object.
1 minimum roundtrip time in milliseconds
$minroundtrip = $ping->MinRoundTrip;
Elizabeth Mattijsen ( lizperl@INC.nl )
(C) 1999 International Network Consultants
Now no longer adds Exporter to ISA: it wasn't necessary.
First version of this true Perl module.