system.kanoa.event.getDowntimeDataByInterval
Description
Returns downtime data by interval filtered by the given parameters.Syntax
getDowntimeDataByInterval(assetId, startDate, endDate, interval, offsetMins=0)- assetId - Asset ID.
- startDate - Start date.
- endDate - End date.
- interval - Interval (i.e., 'Hour', 'Day', 'Week', None - If None, the interval will be auto-calculated).
- offsetMins (optional) - Offset in minutes. Default is 0.
data (pyDataset).
Code Example
# Example Usage:
assetId = 123
startDate = timestamp_start
endDate = timestamp_end
interval = 'Hour'
offsetMins = 30
data = system.kanoa.event.getDowntimeDataByInterval(assetId, startDate, endDate, interval, offsetMins)