Skip to main content

system.kanoa.event.getPreviousStateEvent

This function requires KanoaOPS module

Description

Gets the previous stateEvent entry for the assetId and tStamp passed.

Syntax

getPreviousStateEvent(assetId, tStamp)
  • Parameters
      assetId - Asset ID.
      tStamp (datetime) - Timestamp.
  • Returns
    data (pyDataset).
  • Code Example

    # Example Usage:
    assetId = 123
    tStamp = timestamp
    data = system.kanoa.event.getPreviousStateEvent(assetId, tStamp)