Kea 2.5.9
isc::perfmon::AlarmParser Class Reference

Parses configuration parameters for a single Alarm. More...

#include <perfmon_config.h>

Public Member Functions

 AlarmParser ()
 Constructor.
 
 ~AlarmParser ()=default
 Destructor.
 

Static Public Member Functions

static AlarmPtr parse (data::ConstElementPtr config, uint16_t family)
 

Static Public Attributes

static const data::SimpleKeywords CONFIG_KEYWORDS
 List of valid parameters and expected types.
 

Detailed Description

Parses configuration parameters for a single Alarm.

Definition at line 113 of file perfmon_config.h.

Constructor & Destructor Documentation

◆ AlarmParser()

isc::perfmon::AlarmParser::AlarmParser ( )
explicit

Constructor.

◆ ~AlarmParser()

isc::perfmon::AlarmParser::~AlarmParser ( )
default

Destructor.

Member Function Documentation

◆ parse()

AlarmPtr isc::perfmon::AlarmParser::parse ( data::ConstElementPtr  config,
uint16_t  family 
)
static
Parameters
configelement map containing the alarm parameters.
familyprotocol family AF_INET or AF_INET6.

Definition at line 204 of file perfmon_config.cc.

References isc::data::SimpleParser::checkKeywords(), CONFIG_KEYWORDS, isc_throw, and isc::perfmon::DurationKeyParser::parse().

Referenced by isc::perfmon::PerfMonConfig::parseAlarms().

+ Here is the call graph for this function:

Member Data Documentation

◆ CONFIG_KEYWORDS

const data::SimpleKeywords isc::perfmon::AlarmParser::CONFIG_KEYWORDS
static
Initial value:
=
{
{"duration-key", Element::map},
{"enable-alarm", Element::boolean},
{"high-water-ms", Element::integer},
{"low-water-ms", Element::integer}
}

List of valid parameters and expected types.

Definition at line 116 of file perfmon_config.h.

Referenced by parse().


The documentation for this class was generated from the following files: