init
This commit is contained in:
18
watcher-monitoring/Storage/DashboardStore.cs
Normal file
18
watcher-monitoring/Storage/DashboardStore.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace watcher_monitoring.Storage;
|
||||
|
||||
public class DashboardStore : IDashboardStore
|
||||
{
|
||||
public string? NetworkStatus { get; set; } = "offline";
|
||||
|
||||
public string? DatabaseStatus { get; set; } = "ok";
|
||||
|
||||
public int ServerTotalCount { get; set; } = 0;
|
||||
|
||||
public int ServerOnlineCount { get; set; } = 0;
|
||||
|
||||
public int ServerOfflineCount { get; set; } = 0;
|
||||
|
||||
public int ServiceTotalCount { get; set; } = 0;
|
||||
|
||||
public DateTime ServerUptime { get; set; }
|
||||
}
|
||||
18
watcher-monitoring/Storage/IDashboardStore.cs
Normal file
18
watcher-monitoring/Storage/IDashboardStore.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace watcher_monitoring.Storage;
|
||||
|
||||
public class IDashboardStore
|
||||
{
|
||||
public string? NetworkStatus { get; set; } = "offline";
|
||||
|
||||
public string? DatabaseStatus { get; set; } = "ok";
|
||||
|
||||
public int ServerTotalCount { get; set; } = 0;
|
||||
|
||||
public int ServerOnlineCount { get; set; } = 0;
|
||||
|
||||
public int ServerOfflineCount { get; set; } = 0;
|
||||
|
||||
public int ServiceTotalCount { get; set; } = 0;
|
||||
|
||||
public DateTime ServerUptime { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user