private static void validateCondition(MetricDto metric, String operator, @Nullable String warningThreshold, @Nullable String errorThreshold, @Nullable Integer period) {
List<String> errors = new ArrayList<>();
validateMetric(metric, errors);
checkOperator(metric, operator, errors);
checkThresholds(warningThreshold, errorThreshold, errors);
checkPeriod(metric, period, errors);
validateThresholdValues(metric, warningThreshold, errors);
validateThresholdValues(metric, errorThreshold, errors);
checkRatingMetric(metric, warningThreshold, errorThreshold, period, errors);
checkRequest(errors.isEmpty(), errors);
}