package cn.gistack.alerts.notice.feign;
|
|
import feign.Request;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 告警 feign 远程调用
|
* @author zhongrj
|
* @date 2023-06-03
|
*/
|
@FeignClient(value = "blade-alerts",fallback = NoticeClientFallBack.class)
|
public interface NoticeClient {
|
|
String API_PREFIX = "/client";
|
String CREATE_ALARM_NOTICE_TASK_JOB_HANDLER = API_PREFIX + "/createAlarmNoticeTaskJobHandler";
|
|
/**
|
* 发送告警通知
|
* @param options 单独超时时间设置
|
* @param name
|
* @param content
|
* @param type
|
* @return
|
*/
|
@GetMapping(CREATE_ALARM_NOTICE_TASK_JOB_HANDLER)
|
void createAlarmNoticeTaskJobHandler(@RequestParam("name") String name,
|
@RequestParam("content") String content,
|
@RequestParam("title") String type);
|
|
}
|