2021-11-22 16:02:15 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
2021-10-15 12:24:04 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-05-12 16:03:14 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сервис статистики телеметрии
|
|
|
|
|
/// </summary>
|
2021-05-12 16:03:14 +05:00
|
|
|
|
public interface ITelemetryTracker
|
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// получить дату последней отправки данных панелью
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
|
/// <returns></returns>
|
2021-12-30 17:05:44 +05:00
|
|
|
|
DateTimeOffset GetLastTelemetryDateByUid(string uid);
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// получить диапазон дат за которые есть данные по телеметрии
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
|
/// <returns></returns>
|
2021-11-22 16:02:15 +05:00
|
|
|
|
DatesRangeDto GetTelemetryDateRangeByUid(string uid);
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// список передающих телеметрий
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2021-10-28 10:56:18 +05:00
|
|
|
|
IEnumerable<string> GetTransmittingTelemetriesUids();
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// обновить статистику по телеметрии
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
|
/// <param name="remoteDate"></param>
|
2021-12-30 17:05:44 +05:00
|
|
|
|
void SaveRequestDate(string uid, DateTimeOffset remoteDate);
|
2021-05-12 16:03:14 +05:00
|
|
|
|
}
|
|
|
|
|
}
|