Constructor
new DowntimeEventModel(siteId)
DowntimeEventModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Downtime Event
Source
Members
avoidableRatingnumber
An Optional Rating between 1 and 10 on how likely this Downtime Event could have been Avoided
Type
-
number
Source
createdTimestampDate
When this Downtime Event was Created
Type
-
Date
Source
deletedboolean
Whether the Downtime Event has been deleted
Type
-
boolean
Source
endTimestampDate
When this Downtime Event Ended
Type
-
Date
Source
idstring
The Downtime Event ID
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Downtime Event is associated with
Type
-
string
Source
reasonCategorystring
The Reason Category for this Downtime Event
Type
-
string
Source
reasonTagstring
The Reason Tag for this Downtime Event
Type
-
string
Source
remedyActionstring
An Optional Summary of the Action taken to Remedy this Downtime Event
Type
-
string
Source
shiftIdstring
The Shift ID this Downtime Event is asssociated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Downtime Event
Type
-
number
Source
sourcestring
The Source which Created this Downtime Event
Type
-
string
Source
startTimestampDate
When this Downtime Event Started
Type
-
Date
Source
statusstring
The Status of this Downtime Event
Type
-
string
Source
updateTimestampDate
When the Downtime Event was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {DowntimeEventModel}
Create a new DowntimeEventModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>
|string
A JSON Object or JSON String
-
siteId
number
The Site ID associated with this Downtime Event
Returns
-
DowntimeEventModel