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