action_levels function

Set action levels: failure thresholds and functions to invoke