Move logs into FirebaseDB

This commit is contained in:
Michał Zieliński
2025-03-03 13:06:53 +01:00
parent f02ddd42fa
commit eb65ce6ae1
12 changed files with 257 additions and 232 deletions

View File

@@ -1,3 +1,5 @@
using Google.Cloud.Firestore;
namespace WebAPI.Models;
public enum LogEntryType
@@ -6,7 +8,8 @@ public enum LogEntryType
Warning,
Error
}
public enum LogType {
public enum LogType
{
Import,
Backup,
Process,
@@ -14,11 +17,18 @@ public enum LogType {
DataInbox,
Queue
}
public enum LogInstance
{
Morska
}
public class LogEntry
{
public LogType LogType { get; init; }
public LogEntryType Type { get; init; }
public string? Message { get; init; }
public string? Title {get; init;}
public string? Title { get; init; }
public DateTime CreatedAt { get; init; }
public Guid SessionId { get; set; }
public LogInstance Instance { get; set; }
}