package com.cloud.control.service; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import java.util.Date; import java.util.List; public interface TaskService { JSONObject queryTaskListByPage(Date startTime, Date endTime, String likeName, Integer status, String source, Integer from, Integer size, String sortName, String sortType); public JSONObject addTaskForIndevice(String uuid,String taskName,Integer threshold,Date startTime,Date endTime, List devIds,boolean isUpdate,String enabled); public JSONObject updateSyncTaskForIndevice(String uuid, String taskName, Integer threshold, Date startTime, Date endTime, List cluIps,boolean isUpdate, JSONArray scope, String enabled); public void addTaskForIndevice(); JSONObject updateTask(String uuid, String taskName, Integer threshold, Date startTime, Date endTime, List devIds); JSONObject stopTask(String uuid); JSONObject delTask(String uuid); // 依据 集群或设备id 获取名称 或 ip 地址 String getCluOrDevAndNameOrIpById(String id,String type,String valueType); JSONObject addTaskByNode(String uuid, String taskName, Integer threshold, Date startTime, Date endTime, String syncType, String enabled, String cluId, String devId); JSONObject querySoureList(); JSONObject queryTaskById(String taskId); JSONArray queryTaskScopeDetailById(String taskId); JSONObject getAddToCtlTree(); }