Skip to main content

system.kanoa.event.getDowntimeData

This function requires KanoaOPS module

Description

Returns downtime data filtered by the given parameters.

Syntax

getDowntimeData(assetId, startDate, endDate, durationSecs=0, showChanged=None)
  • Parameters
      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.
  • Returns
    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)