2024-09-10 10:16:31 +05:00
|
|
|
|
using AsbCloudApp.Data.SAUB;
|
|
|
|
|
using AsbCloudApp.Requests;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Repositories;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Репозиторий по работе с событиями
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IEventRepository
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// получение списка событий по параметрам запроса
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">параметры запроса</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-09-11 10:56:26 +05:00
|
|
|
|
Task<IEnumerable<TelemetryEventDto>> GetAsync(TelemetryEventRequest request, CancellationToken token);
|
2024-09-10 10:16:31 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранить. Добавить или заменить.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-09-11 10:56:26 +05:00
|
|
|
|
Task UpsertAsync(string uid, IEnumerable<EventDto> dtos, CancellationToken token);
|
2024-09-10 10:16:31 +05:00
|
|
|
|
}
|