Method Calculate
Calculate(SnmpDeltaHelper, uint, string, double)
Calculates the rate using provided newCounter
against previous counters buffered in this SnmpRate32 instance.
public double Calculate(SnmpDeltaHelper deltaHelper, uint newCounter, string rowKey = null, double faultyReturn = -1)
Parameters
deltaHelper
SnmpDeltaHelperAn instance of the SnmpDeltaHelper class which will take care of fetching the delta from DataMiner.
newCounter
uintThe latest known counter value.
rowKey
stringThe primary key of the table row for which a rate should be calculated.
faultyReturn
doubleThe value to be returned in case a correct rate could not be calculated.
Returns
- double
The calculated rate or the value specified in
faultyReturn
in case the rate can not be calculated.