system.kanoa.quality.config.getAttributes
Description
Returns attributes based on the passed parameters.Syntax
getAttributes(paramsDict)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
path | str | No | e.g. 'somePath' |
enabled | bool | No | e.g. True |
attributeName | str | No | e.g. 'some attribute name' |
attributeId | int | No | e.g. 1 |
parentId | int | No | e.g. 6 |
Code Examples
# Usage example
attributes_params = {'path': 'somePath', 'enabled': True, 'attributeName': 'some attribute name', 'attributeId': 1, 'parentId': 6}
attributes_data = system.kanoa.quality.config.getAttributes(paramsDict=attributes_params)
# Accessing data in the dataset
for row in attributes_data:
print(f"Attribute ID: {row['attributeId']}, Name: {row['attributeName']}, Enabled: {row['enabled']}")