New: Option to send notification when a Health Check warning occurs

This commit is contained in:
Devin Buhl
2019-11-04 15:44:33 -05:00
committed by Qstick
parent e0b6bde525
commit 4e07e3bd68
26 changed files with 253 additions and 5 deletions

View File

@@ -80,6 +80,11 @@ namespace NzbDrone.Core.HealthCheck
else
{
if (_healthCheckResults.Find(result.Source.Name) == null)
{
_eventAggregator.PublishEvent(new HealthCheckFailedEvent(result));
}
_healthCheckResults.Set(result.Source.Name, result);
}
}