Struct LambdaMetric
The Lambda
Namespace: LambdaSharp.Logging.Metrics
Assembly: LambdaSharp.Logging.dll
Syntax
public readonly struct LambdaMetric
Constructors
LambdaMetric(String, Double, LambdaMetricUnit)
Create a new Lambda
Declaration
public LambdaMetric(string name, double value, LambdaMetricUnit unit)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Metric name. |
System. |
value | Metric value. |
Lambda |
unit | Metric unit. |
LambdaMetric(String, Int32, LambdaMetricUnit)
Create a new Lambda
Declaration
public LambdaMetric(string name, int value, LambdaMetricUnit unit)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Metric name. |
System. |
value | Metric value. |
Lambda |
unit | Metric unit. |
Properties
Name
Metric name.
Declaration
public readonly string Name { get; }
Property Value
Type | Description |
---|---|
System. |
Unit
Metric unit.
Declaration
public readonly LambdaMetricUnit Unit { get; }
Property Value
Type | Description |
---|---|
Lambda |
Value
Metric value.
Declaration
public readonly double Value { get; }
Property Value
Type | Description |
---|---|
System. |
Operators
Implicit((String Name, Double Value, LambdaMetricUnit Unit) to LambdaMetric)
Implicitly convert a (string Name, double Value, LambdaMetricUnit Unit)
tuple to a Lambda
Declaration
public static implicit operator LambdaMetric((string Name, double Value, LambdaMetricUnit Unit) metric)
Parameters
Type | Name | Description |
---|---|---|
System. |
metric |
|
Returns
Type | Description |
---|---|
Lambda |
Implicit((String Name, Int32 Value, LambdaMetricUnit Unit) to LambdaMetric)
Implicitly convert a (string Name, int Value, LambdaMetricUnit Unit)
tuple to a Lambda
Declaration
public static implicit operator LambdaMetric((string Name, int Value, LambdaMetricUnit Unit) metric)
Parameters
Type | Name | Description |
---|---|---|
System. |
metric |
|
Returns
Type | Description |
---|---|
Lambda |