Skip to main content

system.kanoa.quality.config.getDataSource

This function requires KanoaQDS module

Description

Returns attribute datasources based on the passed parameters in KanoaQDS.

Syntax

getDataSource(paramsDict)
  • Parameters
      dict paramsDict - Dictionary with optional parameters, e.g., {'assetId': 18, 'enabled': True, 'attributeName': 'some attribute', 'attributeId': 7}
  • Returns
      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']}")