system.kanoa.quality.config.addDataSource(attrInfo, userId)
Adds a new attributeDataSource. All attrInfo keys are required.
Parameters
attrInfo Dictionary
| - assetId | Integer | |
| - attributeId | Integer | |
| - enabled | Boolean | |
| - ignoreZeroValues | Boolean | |
| - scaleFactor | Float | |
| - sourceTagPath | String |
userId Integer: Id of user executing the function
Returns
attributeDataSourceId Integer
msg String None if success
Example
attrInfo = {
'attributeId': 3,
'assetId': 5,
'sourceTagPath': 'some tag path',
'scaleFactor': 1.0,
'ignoreZeroValues': True,
'enabled': True
}
userId = 5
attributeDataSourceId, msg = system.kanoa.quality.config.addDataSource(attrInfo, userId)