added type to tasks for handling warning and critical alerts differently