Skip to main content

system.kanoa.quality.config.addAlertGroup

This function requires KanoaQDS module

Description

Adds a new alert group in KanoaQDS.

Syntax

addAlertGroup(grpInfo, userId)
  • Parameters
      dict grpInfo - Dictionary, e.g., {'alertGroupName' : 'Quality', 'emailList': ['quality@kanoa.com', 'operations@kanoa.com'], 'enabled': True}
      int userId - User ID
  • Returns
      int alertGroupId - ID of the newly added alert group.
  • Code Examples

    # Usage example
    group_info = {'alertGroupName': 'Quality', 'emailList': ['quality@kanoa.com', 'operations@kanoa.com'], 'enabled': True}
    new_alert_group_id = system.kanoa.quality.config.addAlertGroup(grpInfo=group_info, userId=123)

    if new_alert_group_id is not None:
    print(f"Successfully added alert group with ID: {new_alert_group_id}")