Table of Contents

Method Calculate

Namespace
Skyline.DataMiner.Utils.Rates.Protocol
Assembly
Skyline.DataMiner.Utils.Rates.Protocol.dll

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 SnmpDeltaHelper

An instance of the SnmpDeltaHelper class which will take care of fetching the delta from DataMiner.

newCounter uint

The latest known counter value.

rowKey string

The primary key of the table row for which a rate should be calculated.

faultyReturn double

The 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.