Skip to main content

system.kanoa.quality.config.deleteAlertGroup

This function requires KanoaQDS module

Description

Deletes an alert group in KanoaQDS.

Syntax

deleteAlertGroup(alertGroupId, userId)
  • Parameters
      int alertGroupId - ID of the alert group to be deleted.
      int userId - User ID
  • Returns
      bool successFlag - Boolean indicating the success of the deletion.
      str msg - Message indicating the result of the deletion.
  • Code Examples

    # Usage example
    retVal, msg = system.kanoa.quality.config.deleteAlertGroup(alertGroupId=1, userId=123)
    if msg or retVal == 0: system.perspective.sendMessage('showWarningToast', {'message': 'Could not delete this alert group. %s'%msg})
    else: system.perspective.sendMessage('showSuccessfulToast', {'message': 'Alert Group has been deleted'})
    >