Table of Contents

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()

Initializes a new instance of the Entity class. Initializes a new instance of the Entity class.

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 Id

The id. NOT USED

device Device

The device from where the issue is coming from

severity int?

The severity of the issue.

maintenanceType EventType

The maintenance type related to the issue.

expirationDate DateTime?

The expiration date of the issue.

description string

The description of the issue

recommendation string

The 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 string

The 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 MaintenanceSchedule

The 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

string

string

DateTime

Gets or sets the date when MaintenanceIssue was reported.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

DateTime

Description

Gets or sets the description of the MaintenanceIssue.

public string? Description { get; set; }

Property Value

string

string

Device

Gets or sets the Device related to the MaintenanceIssue.

public Device? Device { get; set; }

Property Value

Device

Device

DueOnDate

Gets or sets the date by which the asset's service is due.

public DateTime? DueOnDate { get; set; }

Property Value

DateTime?

DateTime

DueOnEngineHours

Gets or sets the engine hours value at which the asset's service is due.

public TimeSpan? DueOnEngineHours { get; set; }

Property Value

TimeSpan?

TimeSpan

DueOnOdometer

Gets or sets the odometer value at which the asset's service is due.

public long? DueOnOdometer { get; set; }

Property Value

long?

long

EstimateCost

Gets or sets the estimate cost of the MaintenanceIssue.

public decimal? EstimateCost { get; set; }

Property Value

decimal?

long

ExpirationDate

Gets or sets date when the MaintenanceIssue will expire and be removed.

public DateTime? ExpirationDate { get; set; }

Property Value

DateTime?

DateTime

InitialEngineHours

Gets or sets the engine hours at the onset of the issue.

public TimeSpan? InitialEngineHours { get; set; }

Property Value

TimeSpan?

TimeSpan

InitialOdometer

Gets or sets the odometer reading at the onset of the issue.

public long? InitialOdometer { get; set; }

Property Value

long?

TimeSpan

MaintenanceType

Gets or sets the EventType related to the MaintenanceIssue.

public EventType? MaintenanceType { get; set; }

Property Value

EventType

EventType

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

string

string

Schedule

Gets or sets the MaintenanceSchedule related to the MaintenanceIssue.

public MaintenanceSchedule? Schedule { get; set; }

Property Value

MaintenanceSchedule

MaintenanceSchedule

Severity

Gets or sets the severity of the MaintenanceIssue.

public int? Severity { get; set; }

Property Value

int?

int

TriggeredDateTime

Gets or sets the triggered date when MaintenanceIssue was detected.

public DateTime? TriggeredDateTime { get; set; }

Property Value

DateTime?

DateTime

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.