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.Address containing the IP and port of the client.

statistics.mac

A libpydhcpserver.dhcp_types.mac.MAC containing the MAC of the client; None if the event was not due to a DHCP packet.

statistics.ip

An libpydhcpserver.dhcp_types.ipv4.IPv4 containing 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 (False if non-DHCP or blacklisted).

statistics.port

The port on which the request was received.