void.cat/VoidCat/Services/Abstractions/IStatsReporter.cs

29 lines
675 B
C#
Raw Normal View History

2022-02-21 22:35:06 +00:00
using VoidCat.Model;
namespace VoidCat.Services.Abstractions;
2022-06-14 10:46:31 +00:00
/// <summary>
/// Get metrics from the system
/// </summary>
2022-02-21 22:35:06 +00:00
public interface IStatsReporter
{
2022-06-14 10:46:31 +00:00
/// <summary>
/// Get global total bandwidth
/// </summary>
/// <returns></returns>
2022-02-21 22:35:06 +00:00
ValueTask<Bandwidth> GetBandwidth();
2022-06-14 10:46:31 +00:00
/// <summary>
/// Get global bandwidth for a single file
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
2022-02-21 22:35:06 +00:00
ValueTask<Bandwidth> GetBandwidth(Guid id);
2022-06-14 10:46:31 +00:00
/// <summary>
/// Delete bandwidth data for a single file
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
ValueTask Delete(Guid id);
2022-02-21 22:35:06 +00:00
}