2025-01-13 17:45:49 +05:00
|
|
|
|
using DD.Persistence.Models;
|
|
|
|
|
|
|
|
|
|
namespace DD.Persistence.Repositories;
|
2024-11-12 13:36:09 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс по работе с прореженными данными
|
|
|
|
|
/// </summary>
|
2025-01-13 17:45:49 +05:00
|
|
|
|
public interface ITimeSeriesBaseRepository
|
2024-11-12 13:36:09 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить список объектов с прореживанием
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dateBegin">дата начала</param>
|
|
|
|
|
/// <param name="approxPointsCount"></param>
|
|
|
|
|
/// <returns></returns>
|
2025-01-13 17:45:49 +05:00
|
|
|
|
Task<IEnumerable<TimestampedSetDto>> GetResampledData(
|
2024-12-09 13:19:55 +05:00
|
|
|
|
DateTimeOffset dateBegin,
|
|
|
|
|
double intervalSec = 600d,
|
2024-11-22 16:48:55 +05:00
|
|
|
|
int approxPointsCount = 1024,
|
|
|
|
|
CancellationToken token = default);
|
2024-11-12 13:36:09 +05:00
|
|
|
|
}
|