2025-03-03 13:06:53 +01:00
|
|
|
using Google.Cloud.Firestore;
|
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
namespace WebAPI.Models;
|
2023-08-29 14:55:31 +02:00
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
public enum LogEntryType
|
2023-08-29 14:55:31 +02:00
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
Info,
|
|
|
|
|
Warning,
|
|
|
|
|
Error
|
2023-08-29 14:55:31 +02:00
|
|
|
}
|
2025-03-03 13:06:53 +01:00
|
|
|
public enum LogType
|
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
Import,
|
|
|
|
|
Backup,
|
|
|
|
|
Process,
|
2024-07-03 19:03:52 +02:00
|
|
|
PowerBi,
|
2024-08-25 16:45:36 +02:00
|
|
|
DataInbox,
|
|
|
|
|
Queue
|
2024-06-18 22:02:19 +02:00
|
|
|
}
|
2025-03-03 13:06:53 +01:00
|
|
|
|
|
|
|
|
public enum LogInstance
|
|
|
|
|
{
|
|
|
|
|
Morska
|
|
|
|
|
}
|
2024-06-18 22:02:19 +02:00
|
|
|
public class LogEntry
|
|
|
|
|
{
|
|
|
|
|
public LogType LogType { get; init; }
|
|
|
|
|
public LogEntryType Type { get; init; }
|
|
|
|
|
public string? Message { get; init; }
|
2025-03-03 13:06:53 +01:00
|
|
|
public string? Title { get; init; }
|
2024-06-18 22:02:19 +02:00
|
|
|
public DateTime CreatedAt { get; init; }
|
2025-03-03 13:06:53 +01:00
|
|
|
public Guid SessionId { get; set; }
|
|
|
|
|
public LogInstance Instance { get; set; }
|
2024-06-18 22:02:19 +02:00
|
|
|
}
|