Create multiple gateways using queries that are sent to the Klocwork server using the web api.
Filter issues based on the search query, then provide the status to set the build to, along with the threshold (number of issues to meet this criteria)