Method Calculate
Calculate(SnmpDeltaHelper, ulong, string, double)
Calculates the rate using provided newCounter
against previous counters buffered in this SnmpRate64 instance.
public double Calculate(SnmpDeltaHelper deltaHelper, ulong 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
ulongThe 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.