public DiagnosticMetricMappingAttribute(DiagnosticMetricType metric) { Metric = metric; }
public string GetMetricValue(DiagnosticMetricType metric) { var returnValue = Metrics.SingleOrDefault(x => x.Metric == metric); return returnValue == null ? null : returnValue.Value; }
public DiagnosticMetric(DiagnosticMetricType metric, string value) { Metric = metric; Value = value; }
public void AddMetricValue(DiagnosticMetricType metric, string value) { Metrics.Add(new DiagnosticMetric(metric, value)); }