Skip to main content

system.kanoa.asset.addCounter

Description

Called by tagUDT assetOEE\Configuration\infeedCounterId, etc. to initialize the counterId for storing the count value against (kanoaOPS).

Syntax

addCounter(assetId, counterName, counterTypeName, userId)
  • Parameters
      assetId (int) - ID of the asset.
      counterName (str) - Name of the counter.
      counterTypeName (str) - Name of the counter type.
      userId (int) - User ID.
  • Returns
      counterId (int) - ID of the added counter.
  • Code Examples

    # Example Usage:
    asset_id = 18
    counter_name = 'caps'
    counter_type_name = 'infeed'
    user_id = 123
    counter_id = system.kanoa.asset.addCounter(asset_id, counter_name, counter_type_name, user_id)