public static IHealthBuilder ToSlack( this IHealthReportingBuilder healthReportingBuilder, SlackHealthAlertOptions options) { healthReportingBuilder.Using(new SlackIncomingWebHookHealthAlerter(options)); return(healthReportingBuilder.Builder); }
public static IHealthBuilder ToMetrics( this IHealthReportingBuilder healthReportingBuilder, IMetrics metrics) { healthReportingBuilder.Using(new HealthResultsAsMetricsReporter(metrics)); return(healthReportingBuilder.Builder); }
public static IHealthBuilder ToSlack( this IHealthReportingBuilder healthReportingBuilder, Action <SlackHealthAlertOptions> optionsSetup) { var options = new SlackHealthAlertOptions(); optionsSetup(options); healthReportingBuilder.Using(new SlackIncomingWebHookHealthAlerter(options)); return(healthReportingBuilder.Builder); }