-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystemStatusInfo.cs
More file actions
43 lines (36 loc) · 1.36 KB
/
SystemStatusInfo.cs
File metadata and controls
43 lines (36 loc) · 1.36 KB
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
// -------------------------------------------------------------------------
// Copyright (c) Mecalc (Pty) Limited. All rights reserved.
// -------------------------------------------------------------------------
using QProtocol.GenericDefines;
using System;
namespace QProtocol
{
/// <summary>
/// Use this class with the provided endpoint to query the system status information on port 80.
/// </summary>
[Serializable]
public class SystemStatus
{
public static string Endpoint { get; } = EndPoints.SystemStatus.TrimEnd('/');
/// <summary>
/// Gets the boot percentage of the system.
/// </summary>
public int BootPercentage { get; set; }
/// <summary>
/// Gets the system state.
/// </summary>
public SystemStates.SystemState SystemState { get; set; }
/// <summary>
/// Gets a description of the system state.
/// </summary>
public string SystemStateDescription { get; set; }
/// <summary>
/// Gets the application state if an application is running.
/// </summary>
public ApplicationStates.ApplicationStatus ApplicationStatus { get; set; }
/// <summary>
/// Gets a description of the application state.
/// </summary>
public string ApplicationStatusDescription { get; set; }
}
}