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

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

            report.RunReport(registry, healthStatus);
            return(report.Result);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 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");
 }
コード例 #5
0
 public static string GetAsHumanReadable(MetricsRegistry registry, Func<HealthStatus> healthStatus)
 {
     var report = new StringReporter();
     report.RunReport(registry, healthStatus);
     return report.Result;
 }
コード例 #6
0
ファイル: MetricsModule.cs プロジェクト: pavelm/Metrics.NET
 private static string GetAsHumanReadable()
 {
     var report = new StringReporter();
     report.RunReport(Config.Registry, Config.HealthStatus);
     return report.Result;
 }