public Task CheckHttp(Models.Job job, int mintue) { return(Task.Run(() => { if (job.HttpStatus == 0) { return; } var CkHttp = _accessor.CheckHttp(job, mintue); if (!CkHttp.Ok) { EmailHelper.Send(job.Emails, "预警触发通知", $@" <br> <b>【请求错误】触发预警 </b> <p>命中率预警值:{job.HttpRate * 100 + "%"} 当前值:{CkHttp.Value.ToDouble() * 100 + "%"} </p> <p>任务标题:{job.Title}</p> <p>监控节点:{job.Servers}</p> <p>监控频率:{ParseJobCronString(job.CronLike)}</p> <p>设定Http状态码:{job.HttpCodes}</p> <p>时间段:{CkHttp.Time}</p> "); } })); }