Skip to main content

system.kanoa.quality.config.getAlertGroups

This function requires KanoaQDS module

Description

Returns alert groups in KanoaQDS.

Syntax

getAlertGroups(paramsDict)
  • Parameters
      dict paramsDict - Dictionary, e.g., {'enabled': True, 'alertGroupId': 1, 'alertGroupName' : 'Quality'}
  • Returns
      pyDataset data - Dataset containing alert group information.
  • Code Examples

    # Usage example
    params_dict = {'enabled': True, 'alertGroupId': 1, 'alertGroupName': 'Quality'}
    alert_groups_data = system.kanoa.quality.config.getAlertGroups(paramsDict=params_dict)

    # Accessing data in the dataset
    for row in alert_groups_data:
    print(f"Alert Group ID: {row['alertGroupId']}, Name: {row['alertGroupName']}, Enabled: {row['enabled']}")