system.kanoa.performanceState.addPerformanceStateClass
Description
Adds a new performance state classSyntax
addPerformanceStateClass(performanceStateClassInfo, userId)- performanceStateClassInfo (dict)
- - performanceStateClassName (string)
- - parentId (int)
- - performanceStateClassDescription (string)
- - enabled (bool)
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
>>>