using ClassNotify.Shared.Models;
namespace ClassNotify.Server.Services;
///
/// 终端批量自检服务接口 (P2.5 RC1-2)
///
public interface ISelfCheckBatchService
{
///
/// 创建并事务性入库批量自检批次与各终端 Run,同时记录审计事件
///
Task CreateBatchAsync(CreateSelfCheckBatchRequest request, string actorUserId, string actorIp, CancellationToken ct);
///
/// 获取批次聚合指标与 7 项探针异常聚合分布
///
Task GetBatchAsync(string batchId, CancellationToken ct);
///
/// 获取最近自检批次列表及动态聚合统计
///
Task> GetBatchesAsync(string? status, int take, CancellationToken ct);
///
/// 分页与多维过滤批次下各终端运行状态与探针结果
///
Task GetBatchDevicesAsync(string batchId, SelfCheckBatchDeviceQuery query, CancellationToken ct);
///
/// 获取单台终端自检运行的详细诊断明细 (7 项探针下钻)
///
Task GetBatchDeviceRunDetailAsync(string batchId, string runId, CancellationToken ct);
}
///
/// 批次自检调度唤醒通知器
///
public interface ISelfCheckDispatchNotifier
{
void Notify();
Task WaitAsync(CancellationToken ct);
}