2021-12-19 00:56:41 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Core.Event
|
|
|
|
|
{
|
|
|
|
|
public class IOStatsEventArgs : EventArgs
|
|
|
|
|
{
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前统计区间的开始时间
|
|
|
|
|
/// </summary>
|
2021-12-19 00:56:41 +08:00
|
|
|
|
public DateTimeOffset StartTime { get; set; }
|
|
|
|
|
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前统计区间的结束时间
|
|
|
|
|
/// </summary>
|
2021-12-19 00:56:41 +08:00
|
|
|
|
public DateTimeOffset EndTime { get; set; }
|
|
|
|
|
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前统计区间的时长
|
|
|
|
|
/// </summary>
|
2021-12-19 00:56:41 +08:00
|
|
|
|
public TimeSpan Duration { get; set; }
|
|
|
|
|
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 下载了的数据量
|
|
|
|
|
/// </summary>
|
2021-12-19 00:56:41 +08:00
|
|
|
|
public int NetworkBytesDownloaded { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// 平均下载速度,mibi-bits per second
|
2021-12-19 00:56:41 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public double NetworkMbps { get; set; }
|
|
|
|
|
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 统计区间内的磁盘写入耗时
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TimeSpan DiskWriteDuration { get; set; }
|
2021-12-19 00:56:41 +08:00
|
|
|
|
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 统计区间内写入磁盘的数据量
|
|
|
|
|
/// </summary>
|
2021-12-19 00:56:41 +08:00
|
|
|
|
public int DiskBytesWritten { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-04-09 16:43:05 +08:00
|
|
|
|
/// 平均写入速度,mibi-bytes per second
|
2021-12-19 00:56:41 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public double DiskMBps { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|