Table of Contents

Class RateHelper<T, U>

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

Class RateHelper<T, U> helps calculating rates of all sorts (bit rates, counter rates, etc) based on counters.

This class is meant to be used as base class for more specific RateHelpers depending on
- The range of counters (uint, ulong, etc)
- The type of timing info (DateTime, TimeSpan).
public class RateHelper<T, U> where U : RateCounter<T>

Type Parameters

T
U
Inheritance
RateHelper<T, U>
Derived
Extension Methods

Fields

maxDelta

Maximum TimeSpan allowed between 2 counters when calculating a rate.

minDelta

Minimum TimeSpan necessary between 2 counters when calculating a rate.

Properties

RateBase

Determines whether the rate should be calculated per second, minute, hour or day.

Methods

Reset()

Resets the currently buffered data of this RateHelper<T, U> instance.

ToJsonString()

Serializes the currently buffered data of this RateHelper<T, U> instance.