2021-12-09 11:56:20 +08:00
|
|
|
package com.usthe.alert.dao;
|
|
|
|
|
|
2022-01-30 12:34:20 +08:00
|
|
|
import com.usthe.common.entity.alerter.AlertDefineMonitorBind;
|
2021-12-09 11:56:20 +08:00
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
|
|
|
2021-12-13 01:16:56 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2021-12-09 11:56:20 +08:00
|
|
|
/**
|
|
|
|
|
* AlertDefineBind 数据库操作
|
|
|
|
|
* @author tom
|
|
|
|
|
* @date 2021/12/9 10:03
|
|
|
|
|
*/
|
2022-01-30 12:34:20 +08:00
|
|
|
public interface AlertDefineBindDao extends JpaRepository<AlertDefineMonitorBind, Long>, JpaSpecificationExecutor<AlertDefineMonitorBind> {
|
2021-12-09 11:56:20 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据告警定义ID删除告警定义与监控关联
|
|
|
|
|
* @param alertDefineId 告警定义ID
|
|
|
|
|
*/
|
|
|
|
|
void deleteAlertDefineBindsByAlertDefineIdEquals(Long alertDefineId);
|
2021-12-13 01:16:56 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据告警定义ID查询监控关联信息
|
|
|
|
|
* @param alertDefineId 告警定义ID
|
|
|
|
|
* @return 关联监控信息
|
|
|
|
|
*/
|
2022-01-30 12:34:20 +08:00
|
|
|
List<AlertDefineMonitorBind> getAlertDefineBindsByAlertDefineIdEquals(Long alertDefineId);
|
2021-12-09 11:56:20 +08:00
|
|
|
}
|