AlarmLogDto.cs 1.68 KB
namespace Rcs.Application.DTOs;

/// <summary>
/// 报警日志列表项 DTO
/// </summary>
public class AlarmLogListItemDto
{
    public string Id { get; set; } = string.Empty;

    public string AlarmCode { get; set; } = string.Empty;

    public string Title { get; set; } = string.Empty;

    public string Content { get; set; } = string.Empty;

    public string Severity { get; set; } = string.Empty;

    public string Status { get; set; } = string.Empty;

    public string Source { get; set; } = string.Empty;

    public string TargetCode { get; set; } = string.Empty;

    public string TargetName { get; set; } = string.Empty;

    public string OccurredAt { get; set; } = string.Empty;

    public bool Acknowledged { get; set; }

    public string? AcknowledgedBy { get; set; }

    public string? AcknowledgedAt { get; set; }

    public string? RecoveredAt { get; set; }

    public string? RecoveryNote { get; set; }
}

/// <summary>
/// 报警日志详情 DTO
/// </summary>
public class AlarmLogDto : AlarmLogListItemDto
{
    public string? Details { get; set; }

    public string? ExtraData { get; set; }

    public string? RawMessage { get; set; }

    public string? AlarmType { get; set; }

    public string? SourceType { get; set; }

    public string? SourceCode { get; set; }

    public string? SourceName { get; set; }

    public string? AcknowledgeRemark { get; set; }

    public string? CreatedAt { get; set; }

    public string? UpdatedAt { get; set; }
}

/// <summary>
/// 确认报警请求
/// </summary>
public class AckAlarmLogRequest
{
    public string? Note { get; set; }

    public string? AcknowledgedBy { get; set; }

    public string? AcknowledgeRemark { get; set; }
}