[alerter,manage] 告警相关接口调整
This commit is contained in:
@@ -4,6 +4,8 @@ import com.usthe.alert.pojo.entity.AlertDefineBind;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* AlertDefineBind 数据库操作
|
||||
* @author tom
|
||||
@@ -16,4 +18,11 @@ public interface AlertDefineBindDao extends JpaRepository<AlertDefineBind, Long>
|
||||
* @param alertDefineId 告警定义ID
|
||||
*/
|
||||
void deleteAlertDefineBindsByAlertDefineIdEquals(Long alertDefineId);
|
||||
|
||||
/**
|
||||
* 根据告警定义ID查询监控关联信息
|
||||
* @param alertDefineId 告警定义ID
|
||||
* @return 关联监控信息
|
||||
*/
|
||||
List<AlertDefineBind> getAlertDefineBindsByAlertDefineIdEquals(Long alertDefineId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user