Table of Contents

Class RuleMonitor

Namespace
Geotab.Checkmate.ObjectModel.Exceptions
Assembly
Geotab.Checkmate.ObjectModel.dll

false The event of an exception generated by RuleMonitor violation.

public class RuleMonitor : Entity, IEntity, IComparable, IIdentifiable, IDiagnosticProvider
Inheritance
RuleMonitor
Implements
Inherited Members

Constructors

RuleMonitor()

Initializes a new instance of the RuleMonitor class.

public RuleMonitor()

RuleMonitor(Id?, Rule, MonitorPredicate?, RuleMonitorType?, Diagnostic)

Initializes a new instance of the RuleMonitor class.

public RuleMonitor(Id? id, Rule rule, MonitorPredicate? monitorPredicate, RuleMonitorType? monitorType, Diagnostic diagnostic)

Parameters

id Id

The id.

rule Rule

The rule.

monitorPredicate MonitorPredicate?

The monitorPredicate.

monitorType RuleMonitorType?

The monitorType.

diagnostic Diagnostic

The diagnostic.

Properties

Diagnostic

Gets or sets Diagnostic

public Diagnostic Diagnostic { get; set; }

Property Value

Diagnostic

Diagnostic

EquivalencyComparer

Gets an equality comparer based on Diagnostic, MonitorPredicate, and MonitorType.

public static IEqualityComparer<RuleMonitor> EquivalencyComparer { get; }

Property Value

IEqualityComparer<RuleMonitor>

IEqualityComparer<T>

MonitorPredicate

Gets or sets MonitorPredicate

public MonitorPredicate? MonitorPredicate { get; set; }

Property Value

MonitorPredicate?

MonitorPredicate

MonitorType

Gets or sets RuleMonitorType

public RuleMonitorType? MonitorType { get; set; }

Property Value

RuleMonitorType?

RuleMonitorType

Rule

Gets or sets Rule

public Rule Rule { get; set; }

Property Value

Rule

Rule

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.

IsInRangeMonitorPredicate(MonitorPredicate)

Checks whether or not the MonitorPredicate value is defined enum value

public static bool IsInRangeMonitorPredicate(MonitorPredicate value)

Parameters

value MonitorPredicate

The value.

Returns

bool

true if value is within the enum range; otherwise, false