Lidarr/src/NzbDrone.Core/HealthCheck/HealthCheck.cs

33 lines
698 B
C#
Raw Normal View History

2014-02-26 05:40:47 +00:00
using System;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.HealthCheck
{
public class HealthCheck : ModelBase
{
public Type Source { get; set; }
public HealthCheckResult Type { get; set; }
2014-02-26 05:40:47 +00:00
public String Message { get; set; }
public HealthCheck(Type source)
2014-02-26 05:40:47 +00:00
{
Source = source;
Type = HealthCheckResult.Ok;
}
public HealthCheck(Type source, HealthCheckResult type, string message)
{
Source = source;
2014-02-26 05:40:47 +00:00
Type = type;
Message = message;
}
}
public enum HealthCheckResult
2014-02-26 05:40:47 +00:00
{
Ok = 0,
2014-02-26 05:40:47 +00:00
Warning = 1,
Error = 2
}
}