system.kanoa.quality.config.getDataSource
Description
Returns attribute datasources based on the passed parameters in KanoaQDS.Syntax
getDataSource(paramsDict)- dict paramsDict - Dictionary with optional parameters, e.g., {'assetId': 18, 'enabled': True, 'attributeName': 'some attribute', 'attributeId': 7}
- pyDataset dataSourceData - Dataset containing attribute datasources.
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']}")