Skip to main content

system.kanoa.quality.config.updateAlertGroup

This function requires KanoaQDS module

Description

Updates an alert group in KanoaQDS.

Syntax

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

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

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