Skip to main content

system.kanoa.event.getDowntimeDataByInterval

This function requires KanoaOPS module

Description

Returns downtime data by interval filtered by the given parameters.

Syntax

getDowntimeDataByInterval(assetId, startDate, endDate, interval, offsetMins=0)
  • Parameters
      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.
  • Returns
    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)