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)- assetId - Asset ID.
- field - Column name.
- value - PyObject.
- tStamp (datetime) - Timestamp.
- modeSourceId - Mode source ID.
- userId - User ID.
ModeEvent ID (int).
Code Example
# 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)