2024-07-04 11:02:45 +05:00
|
|
|
using AsbCloudApp.Data;
|
2023-09-11 12:27:48 +05:00
|
|
|
using AsbCloudApp.Requests;
|
2021-09-17 16:24:01 +05:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2023-01-13 14:34:26 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// сервис данных тех. процесса
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="TDto"></typeparam>
|
|
|
|
public interface ITelemetryDataService<TDto> : ITelemetryDataEditorService where TDto : ITelemetryData
|
2021-09-17 16:24:01 +05:00
|
|
|
{
|
2024-08-19 10:01:07 +05:00
|
|
|
|
2022-08-09 11:10:01 +05:00
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// получить данные тех. процесса
|
2022-08-09 11:10:01 +05:00
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <param name="idWell"></param>
|
|
|
|
/// <param name="dateBegin"></param>
|
|
|
|
/// <param name="intervalSec"></param>
|
|
|
|
/// <param name="approxPointsCount">кол-во элементов до которых эти данные прореживаются</param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<IEnumerable<TDto>> GetByWellAsync(int idWell,
|
|
|
|
DateTime dateBegin = default, double intervalSec = 600d,
|
|
|
|
int approxPointsCount = 1024, CancellationToken token = default);
|
2022-08-09 11:10:01 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Получить данные тех. процесса по скважине
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<IEnumerable<TDto>> GetByWellAsync(int idWell, TelemetryDataRequest request, CancellationToken token);
|
2024-02-20 13:21:16 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Получение данных тех. процесса по телеметрии
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idTelemetry"></param>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<IEnumerable<TDto>> GetByTelemetryAsync(int idTelemetry, TelemetryDataRequest request, CancellationToken token);
|
2022-01-05 17:50:45 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Период за который есть данные по скважине в рамках временного интервала
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
/// <param name="geDate"></param>
|
|
|
|
/// <param name="leDate"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DatesRangeDto?> GetRangeAsync(int idWell, DateTimeOffset geDate, DateTimeOffset? leDate, CancellationToken token);
|
2023-10-31 19:01:51 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Период за который есть данные по скважине
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DatesRangeDto? GetRange(int idWell);
|
2023-08-15 17:08:33 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// добавить/изменить данные тех. процесса (используется панелью)
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<int> UpdateDataAsync(string uid, IEnumerable<TDto> dtos, CancellationToken token);
|
ISubsystemOperationTimeService, ISubsystemService, FileService, IAuthService, ICrudRepository, IDetectedOperationService, ILimitingParameterService, IMessageService, IPlannedTrajectoryImportService, IProcessMapService, IReduceSamplingService, IReportService, IRepositoryWellRelated, IRequerstTrackerService, ISetpointsService, ITelemetryDataSaubService, ITelemetryDataService, ITelemetryService, ITelemetryUserService, ITrajectoryVisualizationService, IWellFinalDocumentsService, IWellService
2023-02-27 10:21:17 +05:00
|
|
|
}
|