system.kanoa.quality.config.addAlertGroup
Description
Adds a new alert group in KanoaQDS.Syntax
addAlertGroup(grpInfo, userId)- dict grpInfo - Dictionary, e.g., {'alertGroupName' : 'Quality', 'emailList': ['quality@kanoa.com', 'operations@kanoa.com'], 'enabled': True}
- int userId - User ID
- 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}")