# system.kanoa.performanceState.addPerformanceStateClass(performanceStateClassInfo, userId)

Adds a new performance state class. All performanceStateClassInfo keys are required.

---
### Parameters
**performanceStateClassInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - parentId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - performanceStateClassDescription</td><td>String</td><td></td></tr>	
 	<tr><td> - performanceStateClassName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**performanceStateClassId** `Integer`<br />
**msg** `String` None if success<br />

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