2021-07-21 15:29:19 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2021-08-11 16:54:42 +05:00
|
|
|
|
using System.Threading;
|
2021-08-11 12:11:21 +05:00
|
|
|
|
using System.Threading.Tasks;
|
2021-06-17 15:12:39 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IAnalyticsService
|
|
|
|
|
{
|
2021-08-11 12:11:21 +05:00
|
|
|
|
Task<PaginationContainer<TelemetryOperationDto>> GetOperationsByWellAsync(int idWell,
|
2021-08-09 15:41:42 +05:00
|
|
|
|
IEnumerable<int> categoryids = default, DateTime begin = default,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
DateTime end = default, int skip = 0, int take = 32,
|
|
|
|
|
CancellationToken token = default);
|
|
|
|
|
Task<IEnumerable<WellDepthToDayDto>> GetWellDepthToDayAsync(int idWell,
|
|
|
|
|
CancellationToken token = default);
|
2021-08-11 12:11:21 +05:00
|
|
|
|
Task<IEnumerable<WellDepthToIntervalDto>> GetWellDepthToIntervalAsync(int idWell,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
int intervalHoursTimestamp, int workBeginTimestamp,
|
|
|
|
|
CancellationToken token = default);
|
2021-08-11 12:11:21 +05:00
|
|
|
|
Task<IEnumerable<TelemetryOperationDurationDto>> GetOperationsSummaryAsync(int idWell,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
DateTime begin = default, DateTime end = default,
|
|
|
|
|
CancellationToken token = default);
|
2021-08-11 12:11:21 +05:00
|
|
|
|
Task<IEnumerable<TelemetryOperationInfoDto>> GetOperationsToIntervalAsync(int idWell,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
int intervalHoursTimestamp, int workBeginTimestamp,
|
|
|
|
|
CancellationToken token = default);
|
2021-08-09 14:01:57 +05:00
|
|
|
|
void SaveAnalytics(DataSaubBaseDto dataSaub);
|
2021-06-17 15:12:39 +05:00
|
|
|
|
}
|
|
|
|
|
}
|