system.kanoa.event.getAssetProductionEventsByShift(paramsDict)
Returns production data by shift filtered by the given parameters
Parameters
paramsDict Dictionary
| - assetId | Integer | |
| - assetPath | String | |
| - endDate | DateTime | |
| - modeId | Integer | Not required. Can be None for all modes |
| - modeName | String | Not required. Can be None for all modes |
| - startDate | DateTime | |
| - workOrderId | Integer | Not required |
Returns
productionData pyDataset
Example
paramsDict = {
'assetPath': 'Kanoa Box Co\Box Plant\Packaging\Box Line 1',
'startDate': system.date.parse("2025-06-04 00:00:00"),
'endDate': system.date.parse("2025-06-12 00:00:00")
}
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.event.getAssetPerformanceEventsByShift(paramsDict))
>>>