system.kanoa.event.getModeEvents(paramsDict)
Returns mode events. paramsDict keys are optional
Parameters
paramsDict Dictionary
| - assetId | Integer | |
| - endDate | DateTime | If both startDate and endDate are passed, returns all modeEvents during this date range |
| - modeEventId | Integer | |
| - startDate | DateTime | Returns the modeEvent that started at this time if only startDate is passed for dates |
| - tStamp | DateTime | Returns the modeEvent active at this time |
| - workOrderId | Integer |
Returns
modeEventData pyDataset
Example
paramsDict = {
'assetId': 18,
'startDate': system.date.parse("2025-11-03 00:00:00"),
'endDate': system.date.parse("2025-11-05 00:00:00")
}
mode_events_data = system.kanoa.event.getModeEvents(paramsDict)