system.kanoa.event.getDowntimeData
Description
Returns downtime data filtered by the given parameters.Syntax
getDowntimeData(assetId, startDate, endDate, durationSecs=0, showChanged=None)- assetId - Asset ID.
- startDate - Start date.
- endDate - End date.
- durationSecs (optional) - Filter downtime events for events greater than this value. Default is 0.
- showChanged (optional) - Filter downtime events that have been modified. Default is None.
data (pyDataset).
Code Example
# Example Usage:
assetId = 123
startDate = timestamp_start
endDate = timestamp_end
durationSecs = 60
showChanged = True
data = system.kanoa.event.getDowntimeData(assetId, startDate, endDate, durationSecs, showChanged)