初版IO监控

This commit is contained in:
dell
2024-01-12 08:54:55 +08:00
parent 6025fb75a3
commit 62959ab75a
10 changed files with 4910 additions and 108 deletions

View File

@ -10,6 +10,7 @@ using System.Linq;
using System.Threading.Tasks;
using HT.Cloud.Code;
using HT.Cloud.Service.SystemSecurity;
using Quartz;
namespace HT.Cloud.Web.Areas.SystemSecurity.Controllers
{
@ -19,7 +20,8 @@ namespace HT.Cloud.Web.Areas.SystemSecurity.Controllers
public class PenMeiJMReportController : BaseController
{
public ServerStateService _serverStateService { get; set; }
public RealTimeIOState _realTimeIOState { get; set; }
public RealTimeIOStateService _realTimeIOState { get; set; }
[HttpGet]
@ -63,10 +65,26 @@ namespace HT.Cloud.Web.Areas.SystemSecurity.Controllers
var data = (await _serverStateService.GetList(2)).OrderBy(a => a.F_Date).ToList();
return Content(data.ToJson());
}
[HttpGet]
public async Task<ActionResult> GetRealIOGroup()
{
var listgroup = _realTimeIOState.GetIOGroup("喷煤系统");
return Content(listgroup.ToJson());
}
[HttpGet]
public async Task<ActionResult> GetRealIOInfo()
{
var listinfo = _realTimeIOState.GetIOInfo("喷煤系统");
return Content(listinfo.ToJson());
}
[HttpGet]
public async Task<ActionResult> GetRealIOState()
{
var listgroup = _realTimeIOState.GetIOGroup("喷煤系统");
var listinfo = _realTimeIOState.GetIOInfo("喷煤系统");
var data = _realTimeIOState.GetRtData();
return Content(data.Result);
}