29 references to InstrumentViewModel
Aspire.Dashboard (27)
Components\Controls\Chart\ChartBase.cs (19)
71
InstrumentViewModel
.DataUpdateSubscriptions.Add(OnInstrumentDataUpdate);
77
InstrumentViewModel
.Instrument is null ||
78
InstrumentViewModel
.MatchedDimensions is null ||
91
var dimensionAttributes =
InstrumentViewModel
.MatchedDimensions.Select(d => d.Attributes).ToList();
92
if (_renderedInstrument is null || _renderedInstrument !=
InstrumentViewModel
.Instrument.GetKey() ||
94
_renderedTheme !=
InstrumentViewModel
.Theme ||
95
_renderedShowCount !=
InstrumentViewModel
.ShowCount)
98
_renderedInstrument =
InstrumentViewModel
.Instrument.GetKey();
100
_renderedTheme =
InstrumentViewModel
.Theme;
101
_renderedShowCount =
InstrumentViewModel
.ShowCount;
201
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))}";
488
Debug.Assert(
InstrumentViewModel
.MatchedDimensions != null);
489
Debug.Assert(
InstrumentViewModel
.Instrument != null);
491
var unit = !
InstrumentViewModel
.ShowCount
492
? GetDisplayedUnit(
InstrumentViewModel
.Instrument)
498
if (
InstrumentViewModel
.Instrument?.Type != OtlpInstrumentType.Histogram ||
InstrumentViewModel
.ShowCount)
500
(traces, xValues, exemplars) = CalculateChartValues(
InstrumentViewModel
.MatchedDimensions, GraphPointCount, tickUpdate, inProgressDataTime, unit);
507
(traces, xValues, exemplars) = CalculateHistogramValues(
InstrumentViewModel
.MatchedDimensions, GraphPointCount, tickUpdate, inProgressDataTime, unit);
Components\Controls\Chart\MetricTable.razor.cs (5)
53
if (!Equals(_instrument?.Name,
InstrumentViewModel
.Instrument?.Name) || _showCount !=
InstrumentViewModel
.ShowCount)
60
_instrument =
InstrumentViewModel
.Instrument;
61
_showCount =
InstrumentViewModel
.ShowCount;
101
Instrument =
InstrumentViewModel
.Instrument!
Components\Controls\Chart\PlotlyChart.razor.cs (1)
44
if (
InstrumentViewModel
?.Instrument is { } instrument)
Components_Controls_Chart_ChartContainer_razor.g.cs (2)
493
InstrumentViewModel
670
InstrumentViewModel
Aspire.Dashboard.Components.Tests (2)
Controls\PlotlyChartTests.cs (2)
34
builder.Add(p => p.
InstrumentViewModel
, model);
86
builder.Add(p => p.
InstrumentViewModel
, model);