event rcv
This commit is contained in:
@ -9,7 +9,7 @@ use typing::EventMessage;
|
||||
async fn event_rcv_handle(Json(form_data): Json<EventMessage>) -> Result<String, (StatusCode, String)> {
|
||||
tokio::spawn(async move {
|
||||
println!("收到告警,向飞书推送消息");
|
||||
reqwest::get(format!("https://www.feishu.cn/flow/api/trigger-webhook/d96aa14944ed0595d831e9d68834b47b?content={}", &form_data.params.send_time)).await
|
||||
reqwest::get(format!("https://www.feishu.cn/flow/api/trigger-webhook/31f13dead0bf78fc4bdb51ba23abba9f?title={}&content={}", &form_data.method, &form_data.params.send_time)).await
|
||||
});
|
||||
Ok(String::from("success"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user