2021-08-26 18:35:05 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IServerDataCollector
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// Begins to collection on servers for analytical purposes
|
2021-08-26 18:35:05 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="period">interval at which to collect data</param>
|
|
|
|
|
/// <param name="cancellationToken">Token</param>
|
|
|
|
|
/// <returns>Task</returns>
|
|
|
|
|
Task BeginCollectionAsync(TimeSpan? period = null, CancellationToken cancellationToken = default);
|
|
|
|
|
}
|
|
|
|
|
}
|