Code
·
24 lines
·
816 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24namespace SeriLoog.Models;
public sealed class LogEntryDto
{
public string Id { get; set; } = "";
public DateTimeOffset Timestamp { get; set; }
public string Level { get; set; } = "Information";
public string Message { get; set; } = "";
public string? MessageTemplate { get; set; }
public string? Exception { get; set; }
public Dictionary<string, object?> Properties { get; set; } = new();
public string Source { get; set; } = "mongo";
public string RawJson { get; set; } = "{}";
}
public sealed class LogQueryResult
{
public List<LogEntryDto> Items { get; set; } = new();
public long Total { get; set; }
public int Page { get; set; }
public int PageSize { get; set; }
public string Source { get; set; } = "mongo";
public string? Warning { get; set; }
}