forked from cdemi/PRTG-Redis-Sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PRTGResponse.cs
67 lines (63 loc) · 1.26 KB
/
PRTGResponse.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
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Collections.Generic;
namespace PRTG_Redis_Sensor
{
[JsonConverter(typeof(StringEnumConverter))]
public enum PRTGUnit
{
BytesBandwidth,
BytesMemory,
BytesDisk,
Temperature,
Percent,
TimeResponse,
TimeSeconds,
Custom,
Count,
CPU,
BytesFile,
SpeedDisk,
SpeedNet,
TimeHours
}
[JsonConverter(typeof(StringEnumConverter))]
public enum PRTGSize
{
One,
Kilo,
Mega,
Giga,
Tera,
Byte,
KiloByte,
MegaByte,
GigaByte,
TeraByte,
Bit,
KiloBit,
MegaBit,
GigaBit,
TeraBit
}
[JsonConverter(typeof(StringEnumConverter))]
public enum PRTGTime
{
Second,
Minute,
Hour,
Day
}
public class PRTGResponse
{
public List<PRTGResult> result { get; set; }
}
public class PRTGResult
{
public string channel { get; set; }
public string value { get; set; }
public PRTGUnit unit { get; set; }
public int? ShowChart { get; set; }
public int? Float { get; set; }
}
}