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
| Key | Type | Notes |
|---|---|---|
| - bucket | String | Required. UNPLANNED, MINOR_STOP, SPEED_LOSS or QUALITY_LOSS |
| - eventAssetPath | String | Only this asset's events |
| - maxEvents | Integer | At 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'})