Skip to main content

system.kanoa.event.getAssetProductionEventsSummary(paramsDict)

Returns summarized production event data filtered by the given parameters


Parameters

paramsDict Dictionary

- assetIdIntegerId of asset
- endDateDateTimeEnd date
- modeIdIntegeri.e. 2 or None for all modes
- startDateDateTimeStart date
- strictDatesBooleanIf true then counts and times will be limited to the range passed in, otherwise counts and times are for the entire run that started or ended during the range
- workOrderIdIntegerNone for all workorders

Returns

productionData pyDataset


Example

startDate = system.date.parse("2025-11-01 00:00:00")
endDate = system.date.parse("2025-11-05 00:00:00")
productionData = system.kanoa.event.getAssetProductionEventsSummary({'assetId': 510, 'startDate': startDate, 'endDate': endDate, 'strictDates': True})