1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
 
}