A stats aggregator, which counts matches to a stats search. More...
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. |
A stats aggregator, which counts matches to a stats search.
MockLivestatus_FilterCountStats::__construct | ( | $ | filterfunc | ) |
Initialize the filter count stats aggregator with a filter function.
$filterfunc | The filter function, should be callable and take an object as argument and return a boolean |
MockLivestatus_FilterCountStats::register | ( | $ | obj | ) |
Register an object to the aggregator, represented by an associative array.
$obj | object |
Implements MockLivestatus_StatsAggregator.