Pre-defined Calculation Strategies

<< Click to Display Table of Contents >>

Navigation:  General Functions > Counters >

Pre-defined Calculation Strategies

The current value of a counter may be populated using a pre-defined calculation strategy.  Such strategies tend to be too complex to be handled by a condition or SQL statement, and are therefore performed by routines in the MIE.  The code is executed at the time the counter is evaluated.  The following pre-defined calculation strategies are available:

Strategy

Definition

MIE Up Time - most recent month

Returns the percentage of time the MIE has been up, based on its up/down monitor, for the most recent full month.  For example, if the current date is 7/7, the calculation will be based on the most recent month of June.  The answer is a percentage, returned as a number between 0 and 100.  The algorithm steps through the entries logged by the site monitor and sums the number of seconds the site was down during the month.  It then subtracts that number from the total number of seconds in the month, divides by the total number of seconds in the month, and multiplies by 100.