Kea 2.7.5
|
Contains a single row of lease statistical data. More...
#include <lease_mgr.h>
Public Member Functions | |
LeaseStatsRow () | |
Default constructor. | |
LeaseStatsRow (const SubnetID &subnet_id, const Lease::Type &lease_type, const uint32_t lease_state, const int64_t state_count, uint32_t pool_id=0) | |
Constructor. | |
LeaseStatsRow (const SubnetID &subnet_id, const uint32_t lease_state, const int64_t state_count, uint32_t pool_id=0) | |
Constructor. | |
bool | operator< (const LeaseStatsRow &rhs) const |
Less-than operator. | |
Public Attributes | |
uint32_t | lease_state_ |
The lease_state to which the count applies. | |
Lease::Type | lease_type_ |
The lease_type to which the count applies. | |
uint32_t | pool_id_ |
The pool ID to which this data applies. | |
int64_t | state_count_ |
state_count The count of leases in the lease state | |
SubnetID | subnet_id_ |
The subnet ID to which this data applies. | |
Contains a single row of lease statistical data.
The contents of the row consist of a subnet ID, a lease type, a lease state, and the number of leases in that state for that type for that subnet ID.
Definition at line 64 of file lease_mgr.h.
|
inline |
Default constructor.
Definition at line 66 of file lease_mgr.h.
|
inline |
Constructor.
Constructor which defaults the type to TYPE_NA.
subnet_id | The subnet id to which this data applies |
lease_state | The lease state counted |
state_count | The count of leases in the lease state |
pool_id | The pool id to which this data applies or 0 if it is not used |
Definition at line 80 of file lease_mgr.h.
|
inline |
Constructor.
subnet_id | The subnet id to which this data applies |
lease_type | The lease type for this state count |
lease_state | The lease state counted |
state_count | The count of leases in the lease state |
pool_id | The pool id to which this data applies or 0 if it is not used |
Definition at line 94 of file lease_mgr.h.
|
inline |
Less-than operator.
Definition at line 102 of file lease_mgr.h.
References lease_state_, lease_type_, pool_id_, and subnet_id_.
uint32_t isc::dhcp::LeaseStatsRow::lease_state_ |
The lease_state to which the count applies.
Definition at line 138 of file lease_mgr.h.
Referenced by operator<().
Lease::Type isc::dhcp::LeaseStatsRow::lease_type_ |
The lease_type to which the count applies.
Definition at line 135 of file lease_mgr.h.
Referenced by operator<().
uint32_t isc::dhcp::LeaseStatsRow::pool_id_ |
The pool ID to which this data applies.
Definition at line 132 of file lease_mgr.h.
Referenced by operator<().
int64_t isc::dhcp::LeaseStatsRow::state_count_ |
state_count The count of leases in the lease state
Definition at line 141 of file lease_mgr.h.
SubnetID isc::dhcp::LeaseStatsRow::subnet_id_ |
The subnet ID to which this data applies.
Definition at line 129 of file lease_mgr.h.
Referenced by operator<().