Skip to main content

system.kanoa.event.addModeEvent

Description

Adds a new modeEvent record with a single value to the specified mode event table column.

Syntax

addModeEvent(assetId, field, value, tStamp, modeSourceId, userId)

Parameters:
  • assetId: Asset ID.
  • field: Column name.
  • value (PyObject)
  • tStamp (datetime): Timestamp.
  • modeSourceId: Mode source ID.
  • userId: User ID.

  • Returns:
  • ModeEvent ID (int)
  • Code Examples

    # Example Usage:
    assetId = 123
    field = 'modeColumn'
    value = 'ModeValue'
    tStamp = timestamp
    modeSourceId = 456
    userId = 999
    modeEventId = system.kanoa.event.addModeEvent(assetId, field, value, tStamp, modeSourceId, userId)