You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/CncService/ILogIngestionService.cs

17 lines
623 B
C#

using System.Threading.Tasks;
using CncService.LogAnalyzer;
using CncService.Models;
namespace CncService
{
// 扩展日志写入与分析结果传回接口,供分区日志写入及分析摘要能力使用
public interface ILogIngestionService
{
// 写入采集日志及其分析摘要,返回写入是否成功
Task<bool> WriteLogAsync(LogRecord record, LogAnalysisResult analysis);
// 读取最新一条日志及其分析摘要(用于后台看板等场景的快速查询示例)
Task<LogIngestionResult> GetLatestLogAsync(string machineId, string programName);
}
}