text = "The metric #{target_name} is #{last_value} that is #{greater_less} than last allowed #{max_value}"
            case type
            when 'warning'
              warnings << text
            when 'error'