-
Notifications
You must be signed in to change notification settings - Fork 6
/
ISystemInfo.cs
84 lines (71 loc) · 2.45 KB
/
ISystemInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using System.Collections.Generic;
using System.Threading.Tasks;
namespace wttop.Core {
/// <summary>
/// Interface to implement in order to get system information.
/// Only Windows is supported so far.
/// If you want to implement it for Osx & Linux, we just need to implement this interface
/// </summary>
public interface ISystemInfo
{
/// <summary>
/// During init of the UI, we need to know how many CPUs and disks we have, so these properties
/// must be instantiate on the driver instantiation
/// </summary>
int CpuCount { get; }
/// <summary>
/// Get the disk count size
/// </summary>
int DiskCount{ get; }
/// <summary>
/// Provide the operating system information
/// </summary>
/// <returns>Operating system information </returns>
Task<OSInfo> GetOSInfo();
/// <summary>
/// Provide the list of CPU
/// </summary>
/// <returns>A list of CPU</returns>
Task<IEnumerable<Cpu>> GetCPUsUsage();
/// <summary>
/// Get the memory usage
/// </summary>
/// <returns>Memory information</returns>
Task<Memory> GetMemoryUsage();
/// <summary>
/// Get the network statistics
/// </summary>
/// <returns>Network information</returns>
Task<Network> GetNetworkStatistics();
/// <summary>
/// Get the process activity
/// </summary>
/// <returns>Process information</returns>
Task<Process> GetProcessActivity();
/// <summary>
/// Get the disk activity
/// </summary>
/// <returns>Disk information</returns>
Task<Disk> GetDiskActivity();
/// <summary>
/// Get the disk storage information
/// </summary>
/// <returns>A list of storage information</returns>
Task<IEnumerable<Storage>> GetDiskStorageInfo();
/// <summary>
/// Get the system uptime
/// </summary>
/// <returns>System uptime</returns>
Task<Uptime> GetSystemUpTime();
/// <summary>
/// Get the system date time
/// </summary>
/// <returns>System time</returns>
Task<SystemTime> GetSystemDateTime();
/// <summary>
/// Get the total CPU usage
/// </summary>
/// <returns>Cpu information</returns>
Task<Cpu> GetTotalCpuUsage();
}
}