BililiveRecorder/BililiveRecorder.Core/Event/IOStatsEventArgs.cs
2022-04-09 16:43:05 +08:00

48 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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