public void IMetricsReporterAdvance_Measurement_Test() { IMetricsReporterAdvance _reporter = _reporterFactory.Advance.Measurement("Special") .Advance.Build(); IReadOnlyDictionary <string, string> tags = new Dictionary <string, string> { ["Active"] = "true", ["Sentiment"] = "happy" }; IReadOnlyDictionary <string, object> fields = new Dictionary <string, object> { ["Level"] = 12.54, ["Precision"] = 0.6 }; _reporter.Count(); _reporter.Count(ImportanceLevel.High); _reporter.Count(ImportanceLevel.High, tags); _reporter.Count(ImportanceLevel.High, tags, 10); _reporter.Report(fields: fields, tags: tags); _reporter.Report(fields, tags); _reporter.Report(fields, tags, ImportanceLevel.High); }
public void IMetricsReporterAdvance_Test() { // IMetricsReporterAdvance _reporter = // _reporterAdvanceFactory.ForContext<ApiDesignTestsB>(); IMetricsReporterAdvance _reporter = _reporterFactory.Advance.Build(); IReadOnlyDictionary <string, string> tags = new Dictionary <string, string> { ["Active"] = "true", ["Sentiment"] = "happy" }; IReadOnlyDictionary <string, object> fields = new Dictionary <string, object> { ["Level"] = 12.54, ["Precision"] = 0.6 }; _reporter.Count(); _reporter.Count(ImportanceLevel.High); _reporter.Count(ImportanceLevel.High, tags); _reporter.Count(ImportanceLevel.High, tags, 10); _reporter.Report(fields: fields, tags: tags); _reporter.Report(fields, tags); _reporter.Report(fields, tags, ImportanceLevel.High); }