Table of Contents

Struct MetricValue

Namespace
NDepend.Trend
Assembly
NDepend.API.dll

Represents a pair of a code metric and a numeric value.

public readonly struct MetricValue
Inherited Members
Extension Methods

Remarks

This structure is used when storing a set of new metric values through the method ITrendStore.SaveMetricValues(DateTime, IEnumerable<MetricValue>, string).

Constructor (1)

MetricValue(Metric, float)

Create a apair of a code metric and a numeric value.

public MetricValue(Metric metric, float value)

Parameters

metric Metric

The code metric.

value float

The numerical value.

Properties (4)

Metric

Gets the code metric.

public Metric Metric { get; }

Property Value

Metric

MetricName

Gets the name of the code metric.

public string MetricName { get; }

Property Value

string

MetricUnit

Gets the unit used to quantify metric values.

public string MetricUnit { get; }

Property Value

string

Value

Gets the metric numerical value.

public float Value { get; }

Property Value

float