protected override void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)
 {
     telemetryItem.Count             = aggregate.GetAggregateData <int>(MetricAggregateKinds.NaiveDistinctCount.DataKeys.TotalCount, 0);
     telemetryItem.Sum               = (double)aggregate.GetAggregateData <int>(MetricAggregateKinds.NaiveDistinctCount.DataKeys.DistinctCount, 0);
     telemetryItem.Min               = null;
     telemetryItem.Max               = null;
     telemetryItem.StandardDeviation = null;
 }
 protected override void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)
 {
     telemetryItem.Count             = 1;
     telemetryItem.Sum               = aggregate.GetAggregateData <double>(MetricAggregateKinds.Gauge.DataKeys.Last, 0.0);
     telemetryItem.Min               = aggregate.GetAggregateData <double>(MetricAggregateKinds.Gauge.DataKeys.Min, 0.0);
     telemetryItem.Max               = aggregate.GetAggregateData <double>(MetricAggregateKinds.Gauge.DataKeys.Max, 0.0);
     telemetryItem.StandardDeviation = null;
 }
Beispiel #3
0
 protected override void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)
 {
     telemetryItem.Count             = aggregate.GetAggregateData <int>(MetricAggregateKinds.SimpleStatistics.DataKeys.Count, 0);
     telemetryItem.Sum               = aggregate.GetAggregateData <double>(MetricAggregateKinds.SimpleStatistics.DataKeys.Sum, 0.0);
     telemetryItem.Min               = aggregate.GetAggregateData <double>(MetricAggregateKinds.SimpleStatistics.DataKeys.Min, 0.0);
     telemetryItem.Max               = aggregate.GetAggregateData <double>(MetricAggregateKinds.SimpleStatistics.DataKeys.Max, 0.0);
     telemetryItem.StandardDeviation = aggregate.GetAggregateData <double>(MetricAggregateKinds.SimpleStatistics.DataKeys.StdDev, 0.0);
 }