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())); }
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)); }