Class MaintenanceSchedule
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The rule describing an event.
[ReportClass]
public class MaintenanceSchedule : NameEntityWithMaintenanceSource, IEntity, IComparable, IIdentifiable, IMaintenanceSource, IDateTimeProvider, IGroupLinked
- Inheritance
-
MaintenanceSchedule
- Implements
- Inherited Members
Constructors
MaintenanceSchedule()
Initializes a new instance of the MaintenanceSchedule class.
public MaintenanceSchedule()
MaintenanceSchedule(Id)
Initializes a new instance of the MaintenanceSchedule class.Constructor.
public MaintenanceSchedule(Id id)
Parameters
MaintenanceSchedule(Id?, EventType?, string?, int?, int?, DateTime?, TimeSpan?, string?, int?, NotificationBinaryFile?, IList<Group>?, int?, int?, int?, string?, bool?, IList<string>?)
Initializes a new instance of the MaintenanceSchedule class.
public MaintenanceSchedule(Id? id, EventType? eventType, string? name, int? kilometers, int? months, DateTime? eventDate, TimeSpan? engineHours, string? comment, int? days, NotificationBinaryFile? notificationTemplate = null, IList<Group>? nodes = null, int? dayOfMonth = null, int? weeks = null, int? dayOfWeek = null, string? source = "manual", bool? active = true, IList<string>? labels = null)
Parameters
idIdThe Id.
eventTypeEventTypeType of the event.
namestringThe name.
kilometersint?The kilometers.
monthsint?The months.
eventDateDateTime?The event date.
engineHoursTimeSpan?The EngineHours.
commentstringThe comment.
daysint?The days
notificationTemplateNotificationBinaryFileThe notification template NotificationBinaryFile
nodesIList<Group>Group collection this EventRule belongs to.
dayOfMonthint?The day of month.
weeksint?The weeks.
dayOfWeekint?The day of week.
sourcestringThe source of the reminder.
activebool?The active of the reminder.
labelsIList<string>The labels.
Fields
DataInsightSource
Identifier indicating the source is Data Insight
public const string DataInsightSource = "Data Insight"
Field Value
ManualSource
Identifier indicating the source is manual
public const string ManualSource = "manual"
Field Value
UnplannedMaintenance
Identifier indicating the magic event rule ID of an unplanned maintenance record.
public const string UnplannedMaintenance = "UnplannedMaintenance"
Field Value
Properties
Active
Gets or sets a value indicating whether the event rule is active or not.
public bool? Active { get; set; }
Property Value
- bool?
Whether the event rule is active or not.
AssetCount
Gets or sets the number of assets associated with this event rule.
public int? AssetCount { get; set; }
Property Value
- int?
The asset count.
Comment
Gets or sets free text field where any user information can be stored and referenced for this entity.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleComment })]
public string? Comment { get; set; }
Property Value
- string
The comment.
DateTime
Gets or sets the DateTime of the event.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleDateTime })]
public DateTime? DateTime { get; set; }
Property Value
DayOfMonth
Gets or sets the day of month.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleDayOfMonthSelect })]
public int? DayOfMonth { get; set; }
Property Value
- int?
The day of month.
DayOfWeek
Gets or sets the day of week.
public int? DayOfWeek { get; set; }
Property Value
- int?
The day of week.
DayOfWeekName
Gets or sets the day of week name.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleDayOfWeekSelect }, IsDayOfWeekName = true)]
public string? DayOfWeekName { get; set; }
Property Value
- string
The day of week name.
Days
Gets or sets the days.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleDays })]
public int? Days { get; set; }
Property Value
- int?
The days.
EngineHours
Gets or sets the engine hours.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleEngineHours })]
public TimeSpan? EngineHours { get; set; }
Property Value
- TimeSpan?
The engine hours.
EventDate
Gets or sets the event date.
public DateTime? EventDate { get; set; }
Property Value
- DateTime?
The event date.
EventType
Gets or sets the type of the event.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventOccurrenceEventType }, IsEventTypeName = true)]
public EventType? EventType { get; set; }
Property Value
- EventType
The type of the event.
Groups
Gets or sets a list of Group(s) assigned to the event rule.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleGroups }, IsList = true)]
public IList<Group>? Groups { get; set; }
Property Value
Id
Gets or sets Gets or sets the unique identifier for this entity. See Id.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleId })]
public override Id? Id { get; set; }
Property Value
Kilometers
Gets or sets the kilometers.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleKilometers }, IsSpeedOrDistance = true)]
public int? Kilometers { get; set; }
Property Value
- int?
The kilometers.
Months
Gets or sets the months.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleMonths })]
public int? Months { get; set; }
Property Value
- int?
The months.
Name
Gets or sets the name of this entity which identifies it and is used when displaying this entity.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleName })]
public override string? Name { get; set; }
Property Value
- string
The name.
NotificationTemplate
Gets or sets the notification template NotificationBinaryFile for the event.
public NotificationBinaryFile? NotificationTemplate { get; set; }
Property Value
- NotificationBinaryFile
The NotificationBinaryFile template for the event
Weeks
Gets or sets the weeks.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.EventRuleWeeks })]
public int? Weeks { get; set; }
Property Value
- int?
The weeks.
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.