respond with 400 if events or metrics JSON data is not properly formatted.