use of com.sequenceiq.periscope.domain.MetricAlert in project cloudbreak by hortonworks.
the class AlertService method updateMetricAlert.
public MetricAlert updateMetricAlert(Long clusterId, Long alertId, MetricAlert metricAlert) {
MetricAlert alert = findMetricAlertByCluster(clusterId, alertId);
alert.setName(metricAlert.getName());
alert.setDefinitionName(metricAlert.getDefinitionName());
alert.setPeriod(metricAlert.getPeriod());
alert.setDescription(metricAlert.getDescription());
alert.setAlertState(metricAlert.getAlertState());
return metricAlertRepository.save(alert);
}
Aggregations