初版IO监控
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user