C# Class Akka.Cluster.Metric

Metrics key/value Equality of metric based on its name
Inheritance: MetricNumericConverter
ファイルを表示 Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
Create ( string name, double value, double decayFactor = null ) : Metric

Creates a new Metric instance if value is valid, otherwise returns null. Invalid numeric values are negative and NaN/Infinite.

CreateEWMA ( double value, double decayFactor = null ) : EWMA
Equals ( object obj ) : bool
GetHashCode ( ) : int
Metric ( string name, double value, EWMA average = null ) : System
operator ( ) : Metric

Private Methods

Method Description
Equals ( Metric other ) : bool

Method Details

Create() public static method

Creates a new Metric instance if value is valid, otherwise returns null. Invalid numeric values are negative and NaN/Infinite.
public static Create ( string name, double value, double decayFactor = null ) : Metric
name string
value double
decayFactor double
return Metric

CreateEWMA() public static method

public static CreateEWMA ( double value, double decayFactor = null ) : EWMA
value double
decayFactor double
return EWMA

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Metric() public method

public Metric ( string name, double value, EWMA average = null ) : System
name string
value double
average EWMA
return System

operator() public static method

public static operator ( ) : Metric
return Metric