system.kanoa.asset.getAssets(paramsDict)
Returns assets filtered by the provided parameters. Parameter keys are optional.
Parameters
paramsDict Dictionary
| - assetGroupIdList | List of Integers | |
| - assetGroupName | String | |
| - assetId | Integer | |
| - assetIdList | List of Integers | |
| - assetName | String | |
| - assetPath | String | |
| - assetPathList | List of Strings | |
| - assetTypeId | Integer | |
| - assetTypeIdList | List of Integers | |
| - assetTypeName | String | |
| - enabled | Boolean | |
| - function | String | Filter assets based on a users role functions |
| - oeeEnabled | Boolean | |
| - parentId | Integer | |
| - processTypeId | Integer | |
| - processTypeIdList | List of Integers | |
| - processTypeName | String | |
| - userId | Integer | Filter assets based on the user |
Returns
assetData pyDataset
Example
assetData = system.kanoa.asset.getAssets({'assetName': 'Box Line 1'})
assetInfo = system.kanoa.utilities.convertDatasetRowToJSON(assetData, 0)
for k,v in assetInfo.items():
print '%s: %s'%(k,v)
>>>
assetTypeId: 4
assetTypeName: line
assetTypeId: 1
assetTypeName: discrete
targetThreshold: 0.1
oeeEnable: True
enabled: True
path: Kanoa Box Co\Box Plant\Packaging\Box Line 1
assetId: 4
assetPath: Kanoa Box Co\Box Plant\Packaging\Box Line 1
assetGroupName: Packaging
timeZone: Eastern Standard Time
displayPath: Kanoa Box Co\Box Plant\Packaging\Box Line 1
assetGroupId: 1
parentId: 3
tagPath: [Kanoa]/Kanoa Box Co/Box Plant/Packaging/Box Line 1
sortOrder: 10
assetName: Box Line 1
assetGroupColor: None
assetTypePath: enterprise\site\area\line
iconPath: kanoa/line
>>>