Skip to main content

system.kanoa.performanceState.addPerformanceStateClass

This function requires KanoaOPS module

Description

Adds a new performance state class

Syntax

addPerformanceStateClass(performanceStateClassInfo, userId)
  • Parameters
      performanceStateClassInfo (dict)
      - performanceStateClassName (string)
      - parentId (int)
      - performanceStateClassDescription (string)
      - enabled (bool)
  • Returns
    performanceStateClassId: int, msg (string): None if success
  • Code Example

    # Example Usage:
    userId = 18
    performanceStateClassInfo = {
    'performanceStateClassName': 'Operations',
    'parentId': 5,
    'performanceStateClassDescription': 'MES Operations state class',
    'enabled': True
    }
    addPerformanceStateClass(performanceStateClassInfo, userId)
    >
    4, None
    >>>