package com.bocloud.ims.interfaces.resource;

import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.Pager;
import com.bocloud.common.model.Param;
import com.bocloud.common.model.RequestContext;
import com.bocloud.ims.entity.resource.HealthMonitor;

import java.util.List;
import java.util.Map;

/**
 * 负载均衡器健康检查service接口
 * 
 * @author wangyu
 * @version 1.0
 * @since 2017年9月4日
 *
 */
public interface HealthMonitorService {

	/**
	 * 查询健康检查列表
	 * 
	 * @param page
	 * @param rows
	 * @param params
	 * @param sorter
	 * @param simple
	 * @return
	 */
	public BocloudResult list(Pager pager, RequestContext context);

	/**
	 * 创建健康检查
	 * 
	 * @param healthMonitor
	 * @param user
	 * @param vendorId
	 * @return
	 */
	public BocloudResult<HealthMonitor> create(HealthMonitor healthMonitor, RequestContext context, Long vendorId);

	/**
	 * 修改健康检查信息
	 * 
	 * @param healthMonitor
	 * @param userId
	 * @param vendorId
	 * @return
	 */
	public BocloudResult<HealthMonitor> modify(HealthMonitor healthMonitor, Long userId, Long vendorId);

	/**
	 * 查询健康检查信息
	 * 
	 * @param id
	 * @return
	 */
	public BocloudResult<HealthMonitor> detail(Long id);

	/**
	 * 删除健康检查
	 * 
	 * @param id
	 * @param userId
	 * @return
	 */
	public BocloudResult remove(Long id, Long userId);
}
