Methods
create(siteId, createData) → {Promise.<LabModel>}
Create a Lab [POST /lab/sites/{siteId}/labs]
Parameters
-
siteId
numberThe Site ID
-
createData
LabController.CreateDataThe Lab Create Data
Returns
-
Promise.<LabModel>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Lab [DELETE /lab/sites/{siteId}/labs/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Lab ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<LabModel>>}
List all Labs [GET /lab/sites/{siteId}/labs]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
LabController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<LabModel>>
Source
getOne(siteId, id) → {Promise.<LabModel>}
Retrieve a Lab [GET /lab/sites/{siteId}/labs/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Lab ID
Returns
-
Promise.<LabModel>
Source
update(siteId, id, updateData) → {Promise.<LabModel>}
Update a Lab [PATCH /lab/sites/{siteId}/labs/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Lab ID
-
updateData
LabController.UpdateDataThe Lab Update Data
Returns
-
Promise.<LabModel>
Source
Type Definitions
CreateData
The Create Data for a Lab
Type
-
Object
Properties
-
rtuId
number<optional>
<nullable>
The RTU this Lab belongs to
-
name
stringThe Lab Name
-
shortName
string<optional>
A Short Name for the Lab Name. Typically used in Reports and Tables showing multiple Labs
-
points
ObjectThe Points used by this Lab
-
racks
Array.<LabController.RackReference><optional>
The Rack Objects that belong to this Lab
-
alarmGroups
Array.<string><optional>
The Alarm Groups that are used by this Lab
-
inspectIntegration
LabController.InspectIntegration<optional>
<nullable>
The Inspect Integration Configuration for this Lab
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
rtuId
number<optional>
<nullable>
The RTU this Lab belongs to
-
name
string<optional>
The Lab Name
Source
InspectIntegration
A InspectIntegration Type
Type
-
Object
Properties
-
points
ObjectThe Points used for this Inspect Integration
-
enabled
booleanWhether the Inspect Integration is Enabled on this Lab
-
labName
stringName of the Lab referenced by Inspect
-
sqlServerHost
stringHost of the Inspect SQL Server
-
sqlServerUsername
stringUsername for Authentication with the Inspect SQL Server
-
sqlServerPassword
stringPassword for Authentication with the Inspect SQL Server
Source
RackReference
A RackReference Type
Type
-
Object
Properties
-
id
stringID of a Rack Object
-
displayOrder
numberDisplay Order of the Rack
Source
UpdateData
The Update Data for a Lab
Type
-
Object
Properties
-
name
string<optional>
The Lab Name
-
shortName
string<optional>
A Short Name for the Lab Name. Typically used in Reports and Tables showing multiple Labs
-
points
Object<optional>
The Points used by this Lab
-
racks
Array.<LabController.RackReference><optional>
The Rack Objects that belong to this Lab
-
alarmGroups
Array.<string><optional>
The Alarm Groups that are used by this Lab
-
inspectIntegration
LabController.InspectIntegration<optional>
<nullable>
The Inspect Integration Configuration for this Lab