system.kanoa.quality.config.getDataSource
Description
Returns attribute datasources based on the passed parameters.Syntax
getDataSource(paramsDict)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
assetId | int | No | e.g. 18 |
enabled | bool | No | e.g. True |
attributeName | str | No | e.g. 'some attribute' |
attributeId | int | No | e.g. 7 |
Code Examples
# Usage example
params = {'assetId': 18, 'enabled': True, 'attributeName': 'some attribute', 'attributeId': 7}
data_source_data = system.kanoa.quality.config.getDataSource(paramsDict=params)
# Accessing data in the dataset
for row in data_source_data:
print(f"AttributeDataSource ID: {row['attributeDataSourceId']}, Attribute ID: {row['attributeId']}, Asset ID: {row['assetId']}")