MockLivestatus_CalculatedStats Class Reference

Calculated stats aggregator, to aggregate columns to calculate average, sum, min max value and so on. More...

Inheritance diagram for MockLivestatus_CalculatedStats:
MockLivestatus_StatsAggregator

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.

Detailed Description

Calculated stats aggregator, to aggregate columns to calculate average, sum, min max value and so on.


Constructor & Destructor Documentation

MockLivestatus_CalculatedStats::__construct ( column,
type 
)

Initialize the caluculated stats aggregator.

Parameters:
$column Name of the column to calculate
$type Type of stats as string (min, max, sum, avg)

Member Function Documentation

MockLivestatus_CalculatedStats::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