system.kanoa.quality.config.deleteAlertGroup
Description
Deletes an alert group in KanoaQDS.Syntax
deleteAlertGroup(alertGroupId, userId)- int alertGroupId - ID of the alert group to be deleted.
- int userId - User ID
- 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'})
>