Skip to main content

system.kanoa.event.getReliabilityEvents(paramsDict)

The events behind one Loss Analysis loss, the most minutes first: the downtime events of a downtime loss, or for speed and quality loss a row per production run and reason. It takes the same assets, range and short stop as getReliabilityData.


Parameters​

paramsDict Dictionary: getReliabilityData's keys, and

KeyTypeNotes
- bucketStringRequired. UNPLANNED, MINOR_STOP, SPEED_LOSS or QUALITY_LOSS
- eventAssetPathStringOnly this asset's events
- maxEventsIntegerAt most this many; 500 if omitted

Returns​

events pyDataset, or None if it failed: assetId, assetPath, asset, reason (the state for downtime; for speed and quality loss the performance or scrap reason, else Unassigned), item (the run's, for speed and quality loss), startDate, endDate, lostMinutes, runMinutes (for a run) and note


Example​

events = system.kanoa.event.getReliabilityEvents({
'assetPath': 'Enterprise\\Site 1',
'startDate': system.date.addDays(system.date.now(), -7),
'endDate': system.date.now(),
'shortStopSecs': 300,
'bucket': 'SPEED_LOSS'})