Calculated stats aggregator, to aggregate columns to calculate average, sum, min max value and so on. More...
Public Member Functions | |
__construct ($column, $type) | |
Initialize the caluculated stats aggregator. | |
register ($obj) | |
Register an object to the aggregator, represented by an associative array. | |
calculate () | |
Get the result of the aggregator. |
Calculated stats aggregator, to aggregate columns to calculate average, sum, min max value and so on.
MockLivestatus_CalculatedStats::__construct | ( | $ | column, | |
$ | type | |||
) |
Initialize the caluculated stats aggregator.
$column | Name of the column to calculate | |
$type | Type of stats as string (min, max, sum, avg) |
MockLivestatus_CalculatedStats::register | ( | $ | obj | ) |
Register an object to the aggregator, represented by an associative array.
$obj | object |
Implements MockLivestatus_StatsAggregator.