Kea 2.5.8
isc::dhcp::LeaseStatsRow Struct Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LeaseStatsRow() [1/3]

isc::dhcp::LeaseStatsRow::LeaseStatsRow ( )
inline

Default constructor.

Definition at line 66 of file lease_mgr.h.

◆ LeaseStatsRow() [2/3]

isc::dhcp::LeaseStatsRow::LeaseStatsRow ( const SubnetID subnet_id,
const uint32_t  lease_state,
const int64_t  state_count,
uint32_t  pool_id = 0 
)
inline

Constructor.

Constructor which defaults the type to TYPE_NA.

Parameters
subnet_idThe subnet id to which this data applies
lease_stateThe lease state counted
state_countThe count of leases in the lease state
pool_idThe pool id to which this data applies or 0 if it is not used

Definition at line 80 of file lease_mgr.h.

◆ LeaseStatsRow() [3/3]

isc::dhcp::LeaseStatsRow::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 
)
inline

Constructor.

Parameters
subnet_idThe subnet id to which this data applies
lease_typeThe lease type for this state count
lease_stateThe lease state counted
state_countThe count of leases in the lease state
pool_idThe pool id to which this data applies or 0 if it is not used

Definition at line 94 of file lease_mgr.h.

Member Function Documentation

◆ operator<()

bool isc::dhcp::LeaseStatsRow::operator< ( const LeaseStatsRow rhs) const
inline

Less-than operator.

Definition at line 102 of file lease_mgr.h.

References lease_state_, lease_type_, pool_id_, and subnet_id_.

Member Data Documentation

◆ lease_state_

◆ lease_type_

◆ pool_id_

uint32_t isc::dhcp::LeaseStatsRow::pool_id_

◆ state_count_

◆ subnet_id_


The documentation for this struct was generated from the following file: