C# Class Jellyfish.Commands.Metrics.RollingNumber

Afficher le fichier Open project: Zenasoft/Jellyfish.Commands Class Usage Examples

Méthodes publiques

Méthode Description
GetCumulativeSum ( RollingNumberEvent ev ) : long
GetRollingMaxValue ( RollingNumberEvent ev, long startWindowTime = 0L ) : long
GetRollingSum ( RollingNumberEvent ev, long startWindowTime = 0L ) : long
Increment ( RollingNumberEvent ev ) : void
RollingNumber ( int timeInMs, int numberOfBuckets ) : Jellyfish.Commands.Utils
UpdateRollingMax ( RollingNumberEvent ev, long value ) : void

Private Methods

Méthode Description
GetBuckets ( long startWindowTime ) : IEnumerable

Returns all bucket in reverse order (most recent first)

GetCurrentBucket ( ) : Bucket
GetValueOfLatestBucket ( RollingNumberEvent ev ) : long
GetValues ( RollingNumberEvent ev, long startWindowTime ) : IEnumerable
Reset ( ) : void
RollingNumber ( IClock clock, int timeInMs, int numberOfBuckets ) : Jellyfish.Commands.Utils

Method Details

GetCumulativeSum() public méthode

public GetCumulativeSum ( RollingNumberEvent ev ) : long
ev RollingNumberEvent
Résultat long

GetRollingMaxValue() public méthode

public GetRollingMaxValue ( RollingNumberEvent ev, long startWindowTime = 0L ) : long
ev RollingNumberEvent
startWindowTime long
Résultat long

GetRollingSum() public méthode

public GetRollingSum ( RollingNumberEvent ev, long startWindowTime = 0L ) : long
ev RollingNumberEvent
startWindowTime long
Résultat long

Increment() public méthode

public Increment ( RollingNumberEvent ev ) : void
ev RollingNumberEvent
Résultat void

RollingNumber() public méthode

public RollingNumber ( int timeInMs, int numberOfBuckets ) : Jellyfish.Commands.Utils
timeInMs int
numberOfBuckets int
Résultat Jellyfish.Commands.Utils

UpdateRollingMax() public méthode

public UpdateRollingMax ( RollingNumberEvent ev, long value ) : void
ev RollingNumberEvent
value long
Résultat void