Class MaintenanceIssue
- Namespace
- Geotab.Checkmate.ObjectModel.Maintenance
- Assembly
- Geotab.Checkmate.ObjectModel.dll
A Maintenance Issue for a particular device. This is a record of a maintenance issue that has been detected on a device.
public class MaintenanceIssue : Entity, IEntity, IComparable, IIdentifiable, IDeviceProvider, IDateTimeProvider
- Inheritance
-
MaintenanceIssue
- Implements
- Inherited Members
Constructors
MaintenanceIssue()
public MaintenanceIssue()
MaintenanceIssue(Id?, Device?, int?, EventType?, in DateTime?, string?, string?, DateTime?, long?, TimeSpan?, decimal?, string?, TimeSpan?, long?, DateTime?, DateTime?, MaintenanceSchedule?, Dictionary<string, string>?)
Initializes a new instance of the MaintenanceIssue class.Constructor.
public MaintenanceIssue(Id? id, Device? device, int? severity, EventType? maintenanceType, in DateTime? expirationDate, string? description = null, string? recommendation = null, DateTime? dueOnDate = null, long? dueOnOdometer = null, TimeSpan? dueOnEngineHours = null, decimal? estimateCost = null, string? costCurrency = null, TimeSpan? initialEngineHours = null, long? initialOdometer = null, DateTime? dateTime = null, DateTime? triggeredDateTime = null, MaintenanceSchedule? maintenanceSchedule = null, Dictionary<string, string>? metadata = null)
Parameters
id
IdThe id. NOT USED
device
DeviceThe device from where the issue is coming from
severity
int?The severity of the issue.
maintenanceType
EventTypeThe maintenance type related to the issue.
expirationDate
DateTime?The expiration date of the issue.
description
stringThe description of the issue
recommendation
stringThe recommendation for the issue
dueOnDate
DateTime?The due date for the service required on the asset related to the issue
dueOnOdometer
long?Odometer value at which the asset's service is due.
dueOnEngineHours
TimeSpan?Engine hours value at which the asset's service is due.
estimateCost
decimal?The estimate cost of solving the issue
costCurrency
stringThe cost currency
initialEngineHours
TimeSpan?The engine hours reading when the issue was detected
initialOdometer
long?The odometer reading when the issue was detected
dateTime
DateTime?The datetime of the issue
triggeredDateTime
DateTime?The datetime of when the issue was detected
maintenanceSchedule
MaintenanceScheduleThe predictive schedule related to the issue
metadata
Dictionary<string, string>The metadata related to the issue
Properties
CostCurrency
Gets or sets the cost currency for the MaintenanceIssue.
public string? CostCurrency { get; set; }
Property Value
DateTime
Gets or sets the date when MaintenanceIssue was reported.
public DateTime? DateTime { get; set; }
Property Value
Description
Gets or sets the description of the MaintenanceIssue.
public string? Description { get; set; }
Property Value
Device
Gets or sets the Device related to the MaintenanceIssue.
public Device? Device { get; set; }
Property Value
DueOnDate
Gets or sets the date by which the asset's service is due.
public DateTime? DueOnDate { get; set; }
Property Value
DueOnEngineHours
Gets or sets the engine hours value at which the asset's service is due.
public TimeSpan? DueOnEngineHours { get; set; }
Property Value
DueOnOdometer
Gets or sets the odometer value at which the asset's service is due.
public long? DueOnOdometer { get; set; }
Property Value
EstimateCost
Gets or sets the estimate cost of the MaintenanceIssue.
public decimal? EstimateCost { get; set; }
Property Value
ExpirationDate
Gets or sets date when the MaintenanceIssue will expire and be removed.
public DateTime? ExpirationDate { get; set; }
Property Value
InitialEngineHours
Gets or sets the engine hours at the onset of the issue.
public TimeSpan? InitialEngineHours { get; set; }
Property Value
InitialOdometer
Gets or sets the odometer reading at the onset of the issue.
public long? InitialOdometer { get; set; }
Property Value
MaintenanceType
Gets or sets the EventType related to the MaintenanceIssue.
public EventType? MaintenanceType { get; set; }
Property Value
Metadata
Gets or sets the metadata of the MaintenanceIssue.
public Dictionary<string, string>? Metadata { get; set; }
Property Value
- Dictionary<string, string>
The metadata of the MaintenanceIssue.
Recommendation
Gets or sets the recommendation of the MaintenanceIssue.
public string? Recommendation { get; set; }
Property Value
Schedule
Gets or sets the MaintenanceSchedule related to the MaintenanceIssue.
public MaintenanceSchedule? Schedule { get; set; }
Property Value
Severity
Gets or sets the severity of the MaintenanceIssue.
public int? Severity { get; set; }
Property Value
TriggeredDateTime
Gets or sets the triggered date when MaintenanceIssue was detected.
public DateTime? TriggeredDateTime { 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.