using System;

namespace CncModels.Entity
{
    /// <summary>
    /// 采集分析周期实体（日志库 log_collect_cycle）
    /// </summary>
    public class CollectCycle
    {
        /// <summary>自增ID</summary>
        public long Id { get; set; }

        /// <summary>周期时间</summary>
        public DateTime CycleTime { get; set; }

        /// <summary>采集地址ID</summary>
        public int CollectAddressId { get; set; }

        /// <summary>原始日志ID</summary>
        public long RawLogId { get; set; }

        /// <summary>结束时间</summary>
        public DateTime? EndTime { get; set; }

        /// <summary>周期持续时长（毫秒）</summary>
        public int? DurationMs { get; set; }

        /// <summary>总机器数</summary>
        public int TotalMachines { get; set; }

        /// <summary>成功计数</summary>
        public int SuccessCount { get; set; }

        /// <summary>失败计数</summary>
        public int FailCount { get; set; }

        /// <summary>分布变化JSON</summary>
        public string ChangeDistribution { get; set; }

        /// <summary>是否存在异常（0/1）</summary>
        public int HasAnomaly { get; set; }

        /// <summary>周期概要</summary>
        public string CycleSummary { get; set; }

        /// <summary>创建时间</summary>
        public DateTime CreatedAt { get; set; }
    }
}
