Kea  2.1.7-git
isc::dhcp::LeaseStatsRow Struct Reference

Contains a single row of lease statistical data. More...

#include <lease_mgr.h>

Public Member Functions

 LeaseStatsRow ()
 Default constructor. More...
 
 LeaseStatsRow (const SubnetID &subnet_id, const uint32_t lease_state, const int64_t state_count)
 Constructor. More...
 
 LeaseStatsRow (const SubnetID &subnet_id, const Lease::Type &lease_type, const uint32_t lease_state, const int64_t state_count)
 Constructor. More...
 
bool operator< (const LeaseStatsRow &rhs) const
 Less-than operator. More...
 

Public Attributes

uint32_t lease_state_
 The lease_state to which the count applies. More...
 
Lease::Type lease_type_
 The lease_type to which the count applies. More...
 
int64_t state_count_
 state_count The count of leases in the lease state More...
 
SubnetID subnet_id_
 The subnet ID to which this data applies. More...
 

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 62 of file lease_mgr.h.

Constructor & Destructor Documentation

◆ LeaseStatsRow() [1/3]

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

Default constructor.

Definition at line 64 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 
)
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

Definition at line 76 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 
)
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

Definition at line 88 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 95 of file lease_mgr.h.

References lease_state_, lease_type_, and subnet_id_.

Member Data Documentation

◆ lease_state_

◆ lease_type_

◆ state_count_

◆ subnet_id_


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