Add threshold

add ability to change check from a max check to min check (primarily for docs - we want a min number of docs in es)