# system.kanoa.event.getReliabilityEvents(paramsDict)

The events behind one [Loss Analysis](../../kanoa-ops-analysis/reliabilityKPI.md) 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](getReliabilityData.md).

---
### Parameters
**paramsDict** `Dictionary`: getReliabilityData's keys, and<br />
<table>
	<tr><th>Key</th><th>Type</th><th>Notes</th></tr>
	<tr><td> - bucket</td><td>String</td><td>Required. UNPLANNED, MINOR_STOP, SPEED_LOSS or QUALITY_LOSS</td></tr>
	<tr><td> - eventAssetPath</td><td>String</td><td>Only this asset's events</td></tr>
	<tr><td> - maxEvents</td><td>Integer</td><td>At most this many; 500 if omitted</td></tr>
</table>

---
### 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
```python
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'})
```
