Move logs into FirebaseDB
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user