예제 #1
0
        public static string RenderMetrics(MetricsData metricsData, Func <HealthStatus> healthStatus)
        {
            var report = new StringReport();

            report.RunReport(metricsData, healthStatus, CancellationToken.None);
            return(report.Result);
        }
예제 #2
0
 public static string RenderMetrics(MetricsData metricsData, Func<HealthStatus> healthStatus)
 {
     var report = new StringReport();
     report.RunReport(metricsData, healthStatus, CancellationToken.None);
     return report.Result;
 }
예제 #3
0
 public static MetricsEndpointReports WithTextReport(this MetricsEndpointReports reports, string endpoint)
 {
     return(reports.WithEndpointReport(endpoint, (d, h, c) => new MetricsEndpointResponse(StringReport.RenderMetrics(d, h), "text/plain")));
 }