insight/src/Core/Insight.Infrastructure/Entities/AgentLog.cs

36 lines
955 B
C#
Raw Normal View History

2023-09-21 18:58:32 +02:00
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization;
2023-09-22 22:16:56 +02:00
namespace Insight.Infrastructure.Entities;
[BsonIgnoreExtraElements]
public class AgentLogEntity
2023-09-21 18:58:32 +02:00
{
2023-09-22 22:16:56 +02:00
[BsonId, BsonRepresentation(BsonType.ObjectId), JsonPropertyName("id")]
public string? Id { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("_agent"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("agent")]
public string? Agent { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("insert")]
public DateTime? Insert { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("eventid")]
public string? EventId { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("status")]
public string? Status { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("source")]
public string? Source { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("category")]
public string? Category { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("message")]
public string? Message { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("timestamp")]
public DateTime? Timestamp { get; set; }
2023-09-21 18:58:32 +02:00
}