Kea  1.9.9-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 61 of file lease_mgr.h.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 63 of file lease_mgr.h.

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

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

Member Function Documentation

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

Less-than operator.

Definition at line 94 of file lease_mgr.h.

References lease_state_, lease_type_, and subnet_id_.

Member Data Documentation


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