add SystemInfoService, increase API to 3
This commit is contained in:
@@ -8,7 +8,7 @@ namespace MareSynchronos.API
|
||||
{
|
||||
public class API
|
||||
{
|
||||
public const int Version = 2;
|
||||
public const int Version = 3;
|
||||
}
|
||||
|
||||
public class FilesHubAPI
|
||||
@@ -28,6 +28,8 @@ namespace MareSynchronos.API
|
||||
{
|
||||
public const string Path = "/heartbeat";
|
||||
public const string InvokeHeartbeat = "Heartbeat";
|
||||
public const string InvokeGetSystemInfo = "GetSystemInfo";
|
||||
public const string OnUpdateSystemInfo = "OnUpdateSystemInfo";
|
||||
}
|
||||
|
||||
public class AdminHubAPI
|
||||
@@ -64,7 +66,6 @@ namespace MareSynchronos.API
|
||||
public const string InvokeGetPairedClients = "GetPairedClients";
|
||||
public const string SendDeleteAccount = "DeleteAccount";
|
||||
|
||||
public const string OnUsersOnline = "UsersOnline";
|
||||
public const string OnUpdateClientPairs = "UpdateClientPairs";
|
||||
public const string OnReceiveCharacterData = "ReceiveCharacterData";
|
||||
public const string OnRemoveOnlinePairedPlayer = "RemoveOnlinePairedPlayer";
|
||||
|
||||
@@ -8,6 +8,5 @@ namespace MareSynchronos.API
|
||||
public string GlamourerData { get; set; }
|
||||
public string ManipulationData { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public int JobId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
19
MareSynchronosServer/MareSynchronos.API/SystemInfoDto.cs
Normal file
19
MareSynchronosServer/MareSynchronos.API/SystemInfoDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MareSynchronos.API
|
||||
{
|
||||
public record SystemInfoDto
|
||||
{
|
||||
public double CpuUsage { get; set; }
|
||||
public long CacheUsage { get; set; }
|
||||
public int UploadedFiles { get; set; }
|
||||
public double NetworkIn { get; set; }
|
||||
public double NetworkOut { get; set; }
|
||||
public int OnlineUsers { get; set; }
|
||||
public long RAMUsage { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user