Create a custom threshold rule