コード例 #1
0
        public void AddResult(AggregationOperationResult value)
        {
            switch (value.AggregationType)
            {
            case AggregationType.Max:
                Max = value.Value[0].Value;
                break;

            case AggregationType.Min:
                Min = value.Value[0].Value;
                break;

            case AggregationType.Avg:
                Avg = value.Value[0].Value;
                break;

            case AggregationType.Count:
                Count = (int)value.Value[0].Value;
                break;

            case AggregationType.Percentile:
                Percentiles = value.Value.ToDictionary(e => e.Key, e => e.Value);
                break;

            case AggregationType.ValueDistributionGroups:
                DistributionGroups = value.Value.ToDictionary(e => e.Key, e => e.Value);
                break;
            }
        }
コード例 #2
0
 public AggregatedValue(CounterGroup counterGroup, AggregationOperationResult value)
 {
     CounterGroup = counterGroup;
     Value        = value;
 }