Class ExceptionEvent
- Namespace
- Geotab.Checkmate.ObjectModel.Exceptions
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The event of an exception generated by Rule violation.
[ReportClass]
public class ExceptionEvent : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDeviceProvider, IDriverProvider, IDiagnosticProvider, IDateRange, IDeletedDateTimeProvider
- Inheritance
-
ExceptionEvent
- Implements
- Derived
- Inherited Members
Constructors
ExceptionEvent()
Initializes a new instance of the ExceptionEvent class.
public ExceptionEvent()
ExceptionEvent(ExceptionEvent)
Initializes a new instance of the ExceptionEvent class.
protected ExceptionEvent(ExceptionEvent exceptionEvent)
Parameters
exceptionEvent
ExceptionEventThe exception event.
ExceptionEvent(Id?, long?, Rule?, Device?, Driver?, Diagnostic?, DateTime?, DateTime?, float?, ExceptionEventState?, DateTime?, DateTime?)
Initializes a new instance of the ExceptionEvent class.
public ExceptionEvent(Id? id, long? version, Rule? rule, Device? device, Driver? driver, Diagnostic? diagnostic, DateTime? activeFrom, DateTime? activeTo, float? distance, ExceptionEventState? state = null, DateTime? lastModifiedDateTime = null, DateTime? dtDeleted = null)
Parameters
id
IdThe Id.
version
long?The version.
rule
RuleThe Rule.
device
DeviceThe Device.
driver
DriverThe Driver.
diagnostic
DiagnosticThe Diagnostic.
activeFrom
DateTime?Start getActiveFrom of the ExceptionEvent.
activeTo
DateTime?End getActiveTo of theExceptionEvent.
distance
float?The distance traveled during the ExceptionEvent.
state
ExceptionEventStateThe ExceptionEventState of this exceptions.
lastModifiedDateTime
DateTime?The DateTime that this exception event was last updated.
dtDeleted
DateTime?The DateTime that this exception event was deleted.
Properties
ActiveFrom
Gets or sets the start date of the ExceptionEvent; at or after this date.
public DateTime? ActiveFrom { get; set; }
Property Value
ActiveTo
Gets or sets the end date of the ExceptionEvent; at or before this date.
public DateTime? ActiveTo { get; set; }
Property Value
DeletedDateTime
An interface for an entity that can be marked as deleted.
public DateTime? DeletedDateTime { get; set; }
Property Value
Device
Gets or sets the Device specified for the device.
public Device? Device { get; set; }
Property Value
Diagnostic
Gets or sets the Diagnostic
public Diagnostic? Diagnostic { get; set; }
Property Value
Distance
Gets or sets the km distance traveled since the start of the ExceptionEvent.
public float? Distance { get; set; }
Property Value
Driver
Gets or sets the Driver specified for the device.
public Driver? Driver { get; set; }
Property Value
Duration
Gets the duration of the violation.
public TimeSpan? Duration { get; }
Property Value
Exceptions
Gets or sets the ExceptionInstances of the exception.
public List<ExceptionInstance>? Exceptions { get; set; }
Property Value
- List<ExceptionInstance>
List of the ExceptionInstance
From
Gets the first or starting date in the date range.
public DateTime? From { get; }
Property Value
LastModifiedDateTime
Gets or sets the time this exception event was last updated. Default [MinDate].
public DateTime LastModifiedDateTime { get; set; }
Property Value
Rule
Gets or sets the Rule which was violated.
public Rule? Rule { get; set; }
Property Value
State
Gets or sets the ExceptionEventState of the exception.
public ExceptionEventState? State { get; set; }
Property Value
To
Gets the second or ending date in the date range.
public DateTime? To { get; }
Property Value
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.
ToString()
Returns a string that represents this instance.
public override string ToString()