Class ExceptionEventMetadata
- Namespace
- Geotab.Checkmate.ObjectModel.Exceptions
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The metadata monitored by or generated from the ExceptionEventMetadata processing.
[ReportClass]
public class ExceptionEventMetadata : Entity, IEntity, IComparable, IIdentifiable, IDiagnosticProvider, IZoneProvider, IExceptionEventProvider, IDateTimeProvider
- Inheritance
-
ExceptionEventMetadata
- Implements
- Inherited Members
Constructors
ExceptionEventMetadata()
Initializes a new instance of the ExceptionEventMetadata class.
public ExceptionEventMetadata()
ExceptionEventMetadata(Id?, ExceptionEvent, Diagnostic, MonitorPredicate?, double?, DateTime?, RuleMonitorType?)
Initializes a new instance of the ExceptionEventMetadata class for rule type diagnostic.
public ExceptionEventMetadata(Id? id, ExceptionEvent exceptionEvent, Diagnostic diagnostic, MonitorPredicate? monitorPredicate, double? data, DateTime? dateTime, RuleMonitorType? ruleMonitorType = null)
Parameters
id
IdThe id.
exceptionEvent
ExceptionEventThe exceptionEvent.
diagnostic
DiagnosticThe diagnostic.
monitorPredicate
MonitorPredicate?The monitorPredicate.
data
double?The data.
dateTime
DateTime?The dateTime.
ruleMonitorType
RuleMonitorType?The rule monitor type
ExceptionEventMetadata(Id?, ExceptionEvent, Zone, MonitorPredicate?, DateTime?)
Initializes a new instance of the ExceptionEventMetadata class for rule type zone.
public ExceptionEventMetadata(Id? id, ExceptionEvent exceptionEvent, Zone zone, MonitorPredicate? monitorPredicate, DateTime? dateTime)
Parameters
id
IdThe id.
exceptionEvent
ExceptionEventThe exceptionEvent.
zone
ZoneThe zone.
monitorPredicate
MonitorPredicate?The monitorPredicate.
dateTime
DateTime?The dateTime.
Properties
Data
Gets or sets the recorded value of the data value parameter.
public double? Data { get; set; }
Property Value
- double?
Nullable<T> where T is. double
DateTime
Gets or sets the date and time the log was created.
public DateTime? DateTime { get; set; }
Property Value
Diagnostic
Gets or sets Diagnostic
public Diagnostic Diagnostic { get; set; }
Property Value
ExceptionEvent
Gets or sets ExceptionEvent
public ExceptionEvent ExceptionEvent { get; set; }
Property Value
MonitorPredicate
Gets or sets the recorded value of the monitor predicate parameter.
public MonitorPredicate? MonitorPredicate { get; set; }
Property Value
MonitorType
Gets or sets RuleMonitorType
public RuleMonitorType? MonitorType { get; set; }
Property Value
Zone
Gets or sets Zone.
public Zone Zone { get; set; }
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.
Validate()
Checks if the ExceptionEventMetadata is valid.
public ExceptionEventMetadata Validate()
Returns
- ExceptionEventMetadata
The same ExceptionEventMetadata provided - useful for chaining.
Exceptions
- InvalidEnumArgumentException
Invalid
MonitorType
.- ArgumentNullException
Data
property is null.- ArgumentException
Invalid
MonitorPredicate
value or invalid combination of properties.