protected override void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)
 {
     telemetryItem.Count             = 1;
     telemetryItem.Sum               = aggregate.GetDataValue <double>(MetricSeriesConfigurationForTestingAccumulatorBehavior.Constants.AggregateKindDataKeys.Sum, 0.0);
     telemetryItem.Min               = aggregate.GetDataValue <double>(MetricSeriesConfigurationForTestingAccumulatorBehavior.Constants.AggregateKindDataKeys.Min, 0.0);
     telemetryItem.Max               = aggregate.GetDataValue <double>(MetricSeriesConfigurationForTestingAccumulatorBehavior.Constants.AggregateKindDataKeys.Max, 0.0);
     telemetryItem.StandardDeviation = null;
 }
 protected override void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)
 {
     telemetryItem.Count             = 1;
     telemetryItem.Sum               = aggregate.GetDataValue <double>(MetricConfigurations.Common.AggregateKinds().Accumulator().DataKeys.Sum, 0.0);
     telemetryItem.Min               = aggregate.GetDataValue <double>(MetricConfigurations.Common.AggregateKinds().Accumulator().DataKeys.Min, 0.0);
     telemetryItem.Max               = aggregate.GetDataValue <double>(MetricConfigurations.Common.AggregateKinds().Accumulator().DataKeys.Max, 0.0);
     telemetryItem.StandardDeviation = null;
 }
Esempio n. 3
0
 protected override void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)
 {
     telemetryItem.Count             = aggregate.GetDataValue <int>(MetricConfigurations.Common.AggregateKinds().NaiveDistinctCount().DataKeys.TotalCount, 0);
     telemetryItem.Sum               = (double)aggregate.GetDataValue <int>(MetricConfigurations.Common.AggregateKinds().NaiveDistinctCount().DataKeys.DistinctCount, 0);
     telemetryItem.Min               = null;
     telemetryItem.Max               = null;
     telemetryItem.StandardDeviation = null;
 }