using System;

namespace CncModels.Entity
{
    /// <summary>
    /// log_collector_heartbeat 采集服务心跳表
    /// </summary>
    public class CollectorHeartbeat
    {
        /// <summary>主键ID</summary>
        public long Id { get; set; }

        /// <summary>服务ID</summary>
        public string ServiceId { get; set; }

        /// <summary>状态</summary>
        public string Status { get; set; }

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

        /// <summary>最近采集时间</summary>
        public DateTime? LastCollectTime { get; set; }

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

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

        /// <summary>运行时长（秒）</summary>
        public long? UptimeSeconds { get; set; }

        /// <summary>详情（JSON 字符串）</summary>
        public string Detail { get; set; }

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