AlarmLogDto.cs
1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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; }
}