1 write to Instrument
Aspire.Dashboard (1)
Model\InstrumentViewModel.cs (1)
42
Instrument
= instrument;
24 references to Instrument
Aspire.Dashboard (19)
Components\Controls\Chart\ChartBase.cs (15)
93
InstrumentViewModel.
Instrument
is null ||
116
if (_renderedInstrument is null || _renderedInstrument != InstrumentViewModel.
Instrument
.GetKey() ||
117
_renderedInstrumentUnit != InstrumentViewModel.
Instrument
.Unit ||
118
_renderedInstrumentType != InstrumentViewModel.
Instrument
.Type ||
119
_renderedInstrumentIsMonotonic != InstrumentViewModel.
Instrument
.IsMonotonic ||
126
_renderedInstrument = InstrumentViewModel.
Instrument
.GetKey();
127
_renderedInstrumentUnit = InstrumentViewModel.
Instrument
.Unit;
128
_renderedInstrumentType = InstrumentViewModel.
Instrument
.Type;
129
_renderedInstrumentIsMonotonic = InstrumentViewModel.
Instrument
.IsMonotonic;
186
return $"<b>{HttpUtility.HtmlEncode(InstrumentViewModel.
Instrument
?.Name)}</b><br />{HttpUtility.HtmlEncode(name)}: {FormatHelpers.FormatNumberWithOptionalDecimalPlaces(yValue, maxDecimalPlaces: 6, CultureInfo.CurrentCulture)}<br />Time: {FormatHelpers.FormatTime(TimeProvider, xValue)}";
196
Debug.Assert(InstrumentViewModel.
Instrument
!= null);
199
? GetDisplayedUnit(InstrumentViewModel.
Instrument
)
202
var showChangePerInterval = ChartDataCalculator.IsMonotonicCounter(InstrumentViewModel.
Instrument
) && !InstrumentViewModel.ShowRunningTotal;
212
if (InstrumentViewModel.
Instrument
?.Type != OtlpInstrumentType.Histogram || InstrumentViewModel.ShowCount)
224
var increases = calculator.CalculateCounterIncreaseValues(InstrumentViewModel.MatchedDimensions, _currentDataStartTime, InstrumentViewModel.
Instrument
!.AggregationTemporality);
Components\Controls\Chart\MetricTable.razor.cs (3)
50
if (!Equals(_instrument?.Name, InstrumentViewModel.
Instrument
?.Name) || _showCount != InstrumentViewModel.ShowCount)
57
_instrument = InstrumentViewModel.
Instrument
;
105
Instrument = InstrumentViewModel.
Instrument
!
Components\Controls\Chart\PlotlyChart.razor.cs (1)
47
if (InstrumentViewModel?.
Instrument
is { } instrument)
Aspire.Dashboard.Components.Tests (5)
Pages\MetricsTests.cs (5)
177
var instrument = instrumentViewModel.
Instrument
;
269
Assert.NotNull(instrumentViewModel.
Instrument
);
276
await instrumentViewModel.UpdateDataAsync(instrumentViewModel.
Instrument
!, instrumentViewModel.MatchedDimensions!, hasOverflow: false);
316
Assert.Same(instrumentViewModel.
Instrument
, dialog.Instrument);
744
Assert.Equal("instrument-2", updatedTable.Instance.InstrumentViewModel.
Instrument
?.Name);