MockLivestatus_FilterCountStats Class Reference

A stats aggregator, which counts matches to a stats search. More...

Inheritance diagram for MockLivestatus_FilterCountStats:
MockLivestatus_StatsAggregator

Public Member Functions

 __construct ($filterfunc)
 Initialize the filter count stats aggregator with a filter function.
 register ($obj)
 Register an object to the aggregator, represented by an associative array.
 calculate ()
 Get the result of the aggregator.

Detailed Description

A stats aggregator, which counts matches to a stats search.


Constructor & Destructor Documentation

MockLivestatus_FilterCountStats::__construct ( filterfunc  ) 

Initialize the filter count stats aggregator with a filter function.

Parameters:
$filterfunc The filter function, should be callable and take an object as argument and return a boolean

Member Function Documentation

MockLivestatus_FilterCountStats::register ( obj  ) 

Register an object to the aggregator, represented by an associative array.

Parameters:
$obj object

Implements MockLivestatus_StatsAggregator.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1