mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 11:27:08 +01:00
29 lines
675 B
C#
29 lines
675 B
C#
using VoidCat.Model;
|
|
|
|
namespace VoidCat.Services.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Get metrics from the system
|
|
/// </summary>
|
|
public interface IStatsReporter
|
|
{
|
|
/// <summary>
|
|
/// Get global total bandwidth
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
ValueTask<Bandwidth> GetBandwidth();
|
|
|
|
/// <summary>
|
|
/// Get global bandwidth for a single file
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
ValueTask<Bandwidth> GetBandwidth(Guid id);
|
|
|
|
/// <summary>
|
|
/// Delete bandwidth data for a single file
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
ValueTask Delete(Guid id);
|
|
} |