Skip to main content

system.kanoa.event.getDowntimeDataForReliability(assetId, startDate, endDate, durationSecs, showChanged)

Returns downtime data for the reliability report filtered by the given parameters


Parameters

assetId Integer: Id of asset
startDate DateTime: Start date
endDate DateTime: End date
durationSecs Integer: Filter downtime events for event greater than this value
showChanged Boolean: Filter downtime events that have been modified


Returns

downtimeData pyDataset


Example

assetId = 901
startDate = system.date.parse("2025-11-01 00:00:00")
endDate = system.date.parse("2025-11-05 00:00:00")
durationSecs = 60
data = system.kanoa.event.getDowntimeDataForReliability(assetId, startDate, endDate, durationSecs)