38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
// /**
|
|
// * File: SkyCheckState.cs
|
|
// * Author: haraldwolff
|
|
// *
|
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|
// *
|
|
// *
|
|
// **/
|
|
using System;
|
|
using ln.skyscanner.entities;
|
|
namespace ln.skyscanner.checks
|
|
{
|
|
public enum CheckState { OK, WARN, CRITICAL, FAIL, ERROR }
|
|
|
|
public class SkyCheckState
|
|
{
|
|
public readonly String CheckName;
|
|
public readonly String UniqueNodeIdentifier;
|
|
|
|
public DateTime LastCheckTime { get; set; }
|
|
|
|
public double WarnLower { get; set; } = Double.MinValue;
|
|
public double WarnUpper { get; set; } = Double.MaxValue;
|
|
public double CritLower { get; set; } = Double.MinValue;
|
|
public double CritUpper { get; set; } = Double.MaxValue;
|
|
|
|
protected SkyCheckState()
|
|
{
|
|
}
|
|
public SkyCheckState(SkyCheck skyCheck,Node node)
|
|
{
|
|
CheckName = skyCheck.Name;
|
|
UniqueNodeIdentifier = node.UniqueIdentity;
|
|
}
|
|
}
|
|
}
|