Constructor
new SampleResultModel(siteId)
SampleResultModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Sample Result
Source
Members
aboveTargetAverageTemperaturenumber
The Average Temperature seen Above the Temperature Target for the Sample
Type
-
number
Source
aboveTargetDurationnumber
The Above Temperature Target Duration (in seconds) of the Sample
Type
-
number
Source
aboveTargetMaximumTemperaturenumber
The Maximum Temperature seen Above the Temperature Target for the Sample
Type
-
number
Source
belowTargetAverageTemperaturenumber
The Average Temperature seen Below the Temperature Target for the Sample
Type
-
number
Source
belowTargetDurationnumber
The Below Temperature Target Duration (in seconds) of the Sample
Type
-
number
Source
belowTargetMinimumTemperaturenumber
The Minimum Temperature seen Below the Temperature Target for the Sample
Type
-
number
Source
createdTimestampDate
When this Sample Result was Created
Type
-
Date
Source
deletedboolean
Whether the Sample Result has been deleted
Type
-
boolean
Source
finishCriteriaMetTimestampDate
Timestamp of when the Finish Criteria was Met for the Sample - null
if not Met
Type
-
Date
Source
idstring
The Sample Result ID
Type
-
string
Source
labIdstring
The Lab ID this Sample Result is associated with
Type
-
string
Source
latestUnloadTimestampDate
Latest Possible Timestamp of when the Sample should have been Unloaded to remain Compliant
Type
-
Date
Source
sampleIdstring
The Sample ID this Sample Result is associated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Sample Result
Type
-
number
Source
totalAverageTemperaturenumber
The Average Temperature for the Total Duration of the Sample
Type
-
number
Source
totalDurationnumber
The Total Duration (in seconds) of the Sample
Type
-
number
Source
updateTimestampDate
When the Sample Result was last updated
Type
-
Date
Source
warmUpCompletedTimestampDate
Timestamp of when the Warm Up process was Completed - null
if not Completed
Type
-
Date
Source
warmUpDurationnumber
The Warm Up Duration (in seconds) of the Sample
Type
-
number
Source
warmUpRateOfChangeTemperaturenumber
The Average Temperature Rate-of-Change seen during the Warm Up process for the Sample
Type
-
number
Source
withinTargetAverageTemperaturenumber
The Average Temperature seen Within the Temperature Target for the Sample
Type
-
number
Source
withinTargetDurationnumber
The Within Temperature Target Duration (in seconds) of the Sample
Type
-
number
Source
withinTargetMaximumTemperaturenumber
The Maximum Temperature seen Within the Temperature Target for the Sample
Type
-
number
Source
withinTargetMinimumTemperaturenumber
The Minimum Temperature seen Within the Temperature Target for the Sample
Type
-
number
Source
Methods
fromJSON(json, siteId) → {SampleResultModel}
Create a new SampleResultModel 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 Sample Result
Returns
-
SampleResultModel