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
idIdThe id.
exceptionEventExceptionEventThe exceptionEvent.
diagnosticDiagnosticThe diagnostic.
monitorPredicateMonitorPredicate?The monitorPredicate.
datadouble?The data.
dateTimeDateTime?The dateTime.
ruleMonitorTypeRuleMonitorType?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
idIdThe id.
exceptionEventExceptionEventThe exceptionEvent.
zoneZoneThe zone.
monitorPredicateMonitorPredicate?The monitorPredicate.
dateTimeDateTime?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
Dataproperty is null.- ArgumentException
Invalid
MonitorPredicatevalue or invalid combination of properties.