system.kanoa.operators.getOperators(paramsDict)
Returns operator session rows (mes.vwOperatorAssetSession), filtered by whichever keys are present in paramsDict - every key is optional
Parameters
paramsDict Object:
- assetId
Integer: filter to sessions on this exact asset (takes priority over assetPath) - assetPath
String: filter to sessions on this asset or any of its descendants (ignored if assetId is also given) - startDate
DateTime: paired with endDate - filter to sessions overlapping the range (an open session is treated as ongoing until now). Ignored if active is True. - endDate
DateTime: paired with startDate. Ignored if active is True. - active
Boolean: return only sessions that are currently open (isOpen = 1), ignoring startDate/endDate entirely - the "who's logged in right now" shortcut - userId
Integer: filter to this user
Returns
operatorAssetSessionData Dataset
Example
paramsDict = {
'assetId': 4,
'active': True
}
data = system.kanoa.operators.getOperators(paramsDict)