using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Application { /// /// 监测运行区间 /// public class MonitorRunSpan { /// /// /// public MonitorRunSpan() { } /// /// /// public MonitorRunSpan(int runStatus, DateTime startTime, DateTime endTime, double duration) { this.RunStatus = runStatus; this.StartTime = startTime; this.EndTime = endTime; this.Duration = Math.Round(duration, 1); } /// /// 运行状态 /// public int RunStatus { get; set; } /// /// 开始时间 /// public DateTime StartTime { get; set; } /// /// 结束时间 /// public DateTime EndTime { get; set; } /// /// 持续时间(秒数) /// public double Duration { get; set; } } }