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

            report.RunReport(metricsData, healthStatus, CancellationToken.None);
            return(report.Result);
        }
Beispiel #2
0
 public static string RenderMetrics(MetricsData metricsData, Func<HealthStatus> healthStatus)
 {
     var report = new StringReport();
     report.RunReport(metricsData, healthStatus, CancellationToken.None);
     return report.Result;
 }
Beispiel #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")));
 }