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

            report.RunReport(metricsData, healthStatus);
            return(report.Result);
        }
Example #2
0
        public static string GetAsHumanReadable(MetricsRegistry registry, Func <HealthStatus> healthStatus)
        {
            var report = new StringReporter();

            report.RunReport(registry, healthStatus);
            return(report.Result);
        }
 private static async Task GetAsHumanReadable(IOwinResponse owinResponse, MetricsConfig config)
 {
     var report = new StringReporter();
     report.RunReport(config.Registry, config.HealthStatus);
     owinResponse.ContentType = "text/plain";
     await owinResponse.WriteAsync(report.Result);
 }
 private static Task GetAsHumanReadable(IDictionary<string, object> environment, MetricsRegistry registry, Func<HealthStatus> healthStatus)
 {
     var report = new StringReporter();
     report.RunReport(registry, healthStatus);
     return WriteResponse(environment, report.Result, "text/plain");
 }
 public static string GetAsHumanReadable(MetricsRegistry registry, Func<HealthStatus> healthStatus)
 {
     var report = new StringReporter();
     report.RunReport(registry, healthStatus);
     return report.Result;
 }
Example #6
0
 private static string GetAsHumanReadable()
 {
     var report = new StringReporter();
     report.RunReport(Config.Registry, Config.HealthStatus);
     return report.Result;
 }