syntax updates
This commit is contained in:
parent
283fa1abc2
commit
1e05d4576d
75 changed files with 3821 additions and 3905 deletions
|
|
@ -2,36 +2,35 @@
|
|||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Insight.Infrastructure.Entities
|
||||
namespace Insight.Infrastructure.Entities;
|
||||
|
||||
[BsonIgnoreExtraElements]
|
||||
public class AgentLogEntity
|
||||
{
|
||||
[BsonIgnoreExtraElements]
|
||||
public class AgentLogEntity
|
||||
{
|
||||
[BsonId, BsonRepresentation(BsonType.ObjectId), JsonPropertyName("id")]
|
||||
public string? Id { get; set; }
|
||||
[BsonId, BsonRepresentation(BsonType.ObjectId), JsonPropertyName("id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[BsonElement("_agent"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("agent")]
|
||||
public string? Agent { get; set; }
|
||||
[BsonElement("_agent"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("agent")]
|
||||
public string? Agent { get; set; }
|
||||
|
||||
[BsonElement("insert")]
|
||||
public DateTime? Insert { get; set; }
|
||||
[BsonElement("insert")]
|
||||
public DateTime? Insert { get; set; }
|
||||
|
||||
[BsonElement("eventid")]
|
||||
public string? EventId { get; set; }
|
||||
[BsonElement("eventid")]
|
||||
public string? EventId { get; set; }
|
||||
|
||||
[BsonElement("status")]
|
||||
public string? Status { get; set; }
|
||||
[BsonElement("status")]
|
||||
public string? Status { get; set; }
|
||||
|
||||
[BsonElement("source")]
|
||||
public string? Source { get; set; }
|
||||
[BsonElement("source")]
|
||||
public string? Source { get; set; }
|
||||
|
||||
[BsonElement("category")]
|
||||
public string? Category { get; set; }
|
||||
[BsonElement("category")]
|
||||
public string? Category { get; set; }
|
||||
|
||||
[BsonElement("message")]
|
||||
public string? Message { get; set; }
|
||||
[BsonElement("message")]
|
||||
public string? Message { get; set; }
|
||||
|
||||
[BsonElement("timestamp")]
|
||||
public DateTime? Timestamp { get; set; }
|
||||
}
|
||||
[BsonElement("timestamp")]
|
||||
public DateTime? Timestamp { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue