Show / Hide Table of Contents

Struct LambdaMetric

The LambdaMetric struct describes a logged metric entry.

Namespace: LambdaSharp.Logging.Metrics
Assembly: LambdaSharp.Logging.dll
Syntax
public readonly struct LambdaMetric

Constructors

LambdaMetric(String, Double, LambdaMetricUnit)

Create a new LambdaMetric instance.

Declaration
public LambdaMetric(string name, double value, LambdaMetricUnit unit)
Parameters
Type Name Description
System.String name

Metric name.

System.Double value

Metric value.

LambdaMetricUnit unit

Metric unit.

LambdaMetric(String, Int32, LambdaMetricUnit)

Create a new LambdaMetric instance.

Declaration
public LambdaMetric(string name, int value, LambdaMetricUnit unit)
Parameters
Type Name Description
System.String name

Metric name.

System.Int32 value

Metric value.

LambdaMetricUnit unit

Metric unit.

Properties

Name

Metric name.

Declaration
public readonly string Name { get; }
Property Value
Type Description
System.String

Unit

Metric unit.

Declaration
public readonly LambdaMetricUnit Unit { get; }
Property Value
Type Description
LambdaMetricUnit

Value

Metric value.

Declaration
public readonly double Value { get; }
Property Value
Type Description
System.Double

Operators

Implicit((String Name, Double Value, LambdaMetricUnit Unit) to LambdaMetric)

Implicitly convert a (string Name, double Value, LambdaMetricUnit Unit) tuple to a LambdaMetric instance.

Declaration
public static implicit operator LambdaMetric((string Name, double Value, LambdaMetricUnit Unit) metric)
Parameters
Type Name Description
System.ValueTuple<System.String, System.Double, LambdaMetricUnit> metric

(string Name, double Value, LambdaMetricUnit Unit) metric tuple.

Returns
Type Description
LambdaMetric

Implicit((String Name, Int32 Value, LambdaMetricUnit Unit) to LambdaMetric)

Implicitly convert a (string Name, int Value, LambdaMetricUnit Unit) tuple to a LambdaMetric instance.

Declaration
public static implicit operator LambdaMetric((string Name, int Value, LambdaMetricUnit Unit) metric)
Parameters
Type Name Description
System.ValueTuple<System.String, System.Int32, LambdaMetricUnit> metric

(string Name, int Value, LambdaMetricUnit Unit) metric tuple.

Returns
Type Description
LambdaMetric
In This Article
Back to top Generated by DocFX