Statistics structures¶
Like most of staticDHCPd, the statistics interface is well-documented in the scripting guide.
But it wouldn’t really make sense to clutter that with data-types, so those are collected here.
Named tuples¶
-
statistics.Statistics¶ Statistics associated with a DHCP event.
-
statistics.source_address An
libpydhcpserver.dhcp.Addresscontaining the IP and port of the client.
-
statistics.mac A
libpydhcpserver.dhcp_types.mac.MACcontaining the MAC of the client; None if the event was not due to a DHCP packet.
-
statistics.ip An
libpydhcpserver.dhcp_types.ipv4.IPv4containing the address assigned to the client, if any.
-
statistics.subnet The database-subnet associated with this event.
-
statistics.serial The database-serial associated with this event.
-
statistics.method The DHCP method of the received packet.
-
statistics.processing_time The number of seconds required to finish processing the event.
-
statistics.processed Whether the packet was fully processed (
Falseif non-DHCP or blacklisted).
-
statistics.port The port on which the request was received.
-