-
Notifications
You must be signed in to change notification settings - Fork 89
/
computer.go
49 lines (47 loc) · 1.94 KB
/
computer.go
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
package gojenkins
type ComputerObject struct {
BusyExecutors int `json:"busyExecutors"`
Computers []Computer `json:"computer"`
DisplayName string `json:"displayName"`
TotalExecutors int `json:"totalExecutors"`
}
type Computer struct {
Actions []struct{} `json:"actions"`
Class string `json:"_class"`
DisplayName string `json:"displayName"`
Executors []struct{} `json:"executors"`
Idle bool `json:"idle"`
JnlpAgent bool `json:"jnlpAgent"`
LaunchSupported bool `json:"launchSupported"`
ManualLaunchAllowed bool `json:"manualLaunchAllowed"`
MonitorData struct {
SwapSpaceMonitor struct {
AvailablePhysicalMemory int64 `json:"availablePhysicalMemory"`
AvailableSwapSpace int64 `json:"availableSwapSpace"`
TotalPhysicalMemory int64 `json:"totalPhysicalMemory"`
TotalSwapSpace int64 `json:"totalSwapSpace"`
} `json:"hudson.node_monitors.SwapSpaceMonitor"`
TemporarySpaceMonitor struct {
Timestamp int64 `json:"timestamp"`
Path string `json:"path"`
Size int64 `json:"size"`
} `json:"hudson.node_monitors.TemporarySpaceMonitor"`
DiskSpaceMonitor struct {
Timestamp int64 `json:"timestamp"`
Path string `json:"path"`
Size int64 `json:"size"`
} `json:"hudson.node_monitors.DiskSpaceMonitor"`
ArchitectureMonitor string `json:"hudson.node_monitors.ArchitectureMonitor"`
ResponseTimeMonitor struct {
Timestamp int64 `json:"timestamp"`
Average int64 `json:"average"`
} `json:"hudson.node_monitors.ResponseTimeMonitor"`
ClockMonitor struct {
Diff int64 `json:"diff"`
} `json:"hudson.node_monitors.ClockMonitor"`
} `json:"monitorData"`
NumExecutors int `json:"numExecutors"`
Offline bool `json:"offline"`
OfflineCauseReason string `json:"offlineCauseReason"`
TemporarilyOffline bool `json:"temporarilyOffline"`
}