27 references to InstrumentViewModel
Aspire.Dashboard (25)
Components\Controls\Chart\ChartBase.cs (19)
73
InstrumentViewModel
.DataUpdateSubscriptions.Add(OnInstrumentDataUpdate);
79
InstrumentViewModel
.Instrument is null ||
80
InstrumentViewModel
.MatchedDimensions is null ||
93
var dimensionAttributes =
InstrumentViewModel
.MatchedDimensions.Select(d => d.Attributes).ToList();
94
if (_renderedInstrument is null || _renderedInstrument !=
InstrumentViewModel
.Instrument.GetKey() ||
96
_renderedTheme !=
InstrumentViewModel
.Theme ||
97
_renderedShowCount !=
InstrumentViewModel
.ShowCount)
100
_renderedInstrument =
InstrumentViewModel
.Instrument.GetKey();
102
_renderedTheme =
InstrumentViewModel
.Theme;
103
_renderedShowCount =
InstrumentViewModel
.ShowCount;
203
return $"<b>{HttpUtility.HtmlEncode(
InstrumentViewModel
.Instrument?.Name)}</b><br />{HttpUtility.HtmlEncode(name)}: {FormatHelpers.FormatNumberWithOptionalDecimalPlaces(yValue, maxDecimalPlaces: 6, CultureInfo.CurrentCulture)}<br />Time: {FormatHelpers.FormatTime(TimeProvider, TimeProvider.ToLocal(xValue))}";
490
Debug.Assert(
InstrumentViewModel
.MatchedDimensions != null);
491
Debug.Assert(
InstrumentViewModel
.Instrument != null);
493
var unit = !
InstrumentViewModel
.ShowCount
494
? GetDisplayedUnit(
InstrumentViewModel
.Instrument)
500
if (
InstrumentViewModel
.Instrument?.Type != OtlpInstrumentType.Histogram ||
InstrumentViewModel
.ShowCount)
502
(traces, xValues, exemplars) = CalculateChartValues(
InstrumentViewModel
.MatchedDimensions, GraphPointCount, tickUpdate, inProgressDataTime, unit);
509
(traces, xValues, exemplars) = CalculateHistogramValues(
InstrumentViewModel
.MatchedDimensions, GraphPointCount, tickUpdate, inProgressDataTime, unit);
Components\Controls\Chart\MetricTable.razor.cs (5)
52
if (!Equals(_instrument?.Name,
InstrumentViewModel
.Instrument?.Name) || _showCount !=
InstrumentViewModel
.ShowCount)
59
_instrument =
InstrumentViewModel
.Instrument;
60
_showCount =
InstrumentViewModel
.ShowCount;
100
Instrument =
InstrumentViewModel
.Instrument!
Components\Controls\Chart\PlotlyChart.razor.cs (1)
44
if (
InstrumentViewModel
?.Instrument is { } instrument)
Aspire.Dashboard.Components.Tests (2)
Controls\PlotlyChartTests.cs (2)
33
builder.Add(p => p.
InstrumentViewModel
, model);
84
builder.Add(p => p.
InstrumentViewModel
, model);