public static ApdexValueSource FromSerializableMetric(this ApdexMetric source)
        {
            var counterValue = new ApdexValue(source.Score, source.Satisfied, source.Tolerating, source.Frustrating, source.SampleSize);

            return(new ApdexValueSource(source.Name, ConstantValue.Provider(counterValue), source.Tags.FromDictionary()));
        }
示例#2
0
        public static ApdexValueSource ToMetricValueSource(this ApdexMetric source)
        {
            var counterValue = new ApdexValue(source.Score, source.Satisfied, source.Tolerating, source.Frustrating, source.SampleSize);

            return(new ApdexValueSource(source.Name, ConstantValue.Provider(counterValue), source.Tags));
        }