Table of Contents

Struct DatedValues

Namespace
NDepend.Trend
Assembly
NDepend.API.dll

Represent a set of trend metrics values sharing a same date, and eventuelly a label.

public readonly struct DatedValues
Inherited Members
Extension Methods

Remarks

DatedValues objects can be obtained from the method IHistoryData.DatedValuesDescending.
DatedValues objects are useful to store values extracted from an IHistoryData object, through the method ITrendStore.SaveMetricValues(DateTime, IEnumerable<MetricValue>, string).

Properties (2)

Date

Gets the date of the dated values.

public DateTime Date { get; }

Property Value

DateTime

MetricsValues

Gets the sequence of metrics' values.

public IEnumerable<MetricValue> MetricsValues { get; }

Property Value

IEnumerable<MetricValue>

Method (1)

TryGetLabel(out string)

Gets the eventual label persisted for this date.

public bool TryGetLabel(out string label)

Parameters

label string

The string representing the label. It is non-null and non-empty if this method returns true.

Returns

bool

true if a label has been persisted for this date, else returns false.