Here are the examples of the csharp api class Microsoft.ApplicationInsights.Metrics.Extensibility.MetricSeriesAggregatorBase.ConvertMetricValue(double) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: ApplicationInsights-SDK-Labs
Source File: MetricSeriesAggregatorBase.cs
Source File: MetricSeriesAggregatorBase.cs
public void TrackValue(double metricValue) { if (Double.IsNaN(metricValue)) { return; } try // Respect the filter. Note: Filter may be user code. If user code is broken, assume we accept the value. { if (false == _valueFilter?.WillConsume(_dataSeries, metricValue)) { return; } } catch { } // Prepare the metric value. If it is invalid, ConvertMetricValue may throw. This wil be propagated to the user. TBufferedValue value = ConvertMetricValue(metricValue); TrackFilteredConvertedValue(value); }