-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServiceLog.cs
58 lines (43 loc) · 1.77 KB
/
ServiceLog.cs
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
using System;
using Newtonsoft.Json;
using MongoDB.Bson.Serialization.Attributes;
using net.vieapps.Components.Utility;
using net.vieapps.Components.Security;
using net.vieapps.Components.Repository;
namespace net.vieapps.Services.Logs
{
[BsonIgnoreExtraElements, Entity(CollectionName = "ServiceLogs", TableName = "T_Logs_Services")]
public class ServiceLog : Repository<ServiceLog>
{
public ServiceLog() : base()
=> this.ID = UtilityService.NewUUID;
[Sortable(IndexName = "Time")]
public DateTime Time { get; set; } = DateTime.Now;
[Property(MaxLength = 32, NotNull = true), Sortable(IndexName = "IDs")]
public string CorrelationID { get; set; }
[Property(MaxLength = 32), Sortable(IndexName = "IDs")]
public string DeveloperID { get; set; }
[Property(MaxLength = 32), Sortable(IndexName = "IDs")]
public string AppID { get; set; }
[Property(MaxLength = 150), Sortable(IndexName = "IDs")]
public string NodeID { get; set; }
[Property(MaxLength = 50, NotNull = true), Sortable(IndexName = "Services")]
public new string ServiceName { get; set; }
[Property(MaxLength = 50, NotNull = true), Sortable(IndexName = "Services")]
public new string ObjectName { get; set; }
[Property(NotNull = true, IsCLOB = true)]
public string Logs { get; set; }
[Property(IsCLOB = true)]
public string Stack { get; set; }
[JsonIgnore, BsonIgnore, Ignore]
public override string Title { get; set; }
[JsonIgnore, BsonIgnore, Ignore]
public override string SystemID { get; set; }
[JsonIgnore, BsonIgnore, Ignore]
public override string RepositoryID { get; set; }
[JsonIgnore, BsonIgnore, Ignore]
public override string RepositoryEntityID { get; set; }
[JsonIgnore, BsonIgnore, Ignore]
public override Privileges OriginalPrivileges { get; set; }
}
}