-
Notifications
You must be signed in to change notification settings - Fork 1
/
trackerapi.go
70 lines (58 loc) · 1.44 KB
/
trackerapi.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package main
type GetPath struct {
Path string `json:"path"`
CreatedAt string `json:"created_at"`
}
type GetPaths struct {
Paths []GetPath `json:"paths"`
}
type CreateOpen struct {
Path string `json:"path"`
Fid int64 `json:"fid"`
}
type CreateClose struct {
Path string `json:"path"`
}
type GetDevices struct {
Devices []Device `json:"devices"`
}
type Device struct {
Devid int64 `json:"devid"`
Hostid int64 `json:"hostid"`
HostName string `json:"host_name"`
HostStatus string `json:"host_status"`
Rackid int64 `json:"rackid"`
RackName string `json:"rack_name"`
Zoneid int64 `json:"zoneid"`
ZoneName string `json:"zone_name"`
Status string `json:"status"`
BytesTotal *int64 `json:"bytes_total"`
BytesUsed *int64 `json:"bytes_used"`
BytesFree *int64 `json:"bytes_free"`
UpdatedAt int64 `json:"updated_at"`
IoUtilization *int64 `json:"io_utilization"`
}
type GetHosts struct {
Hosts []Host `json:"hosts"`
}
type Host struct {
Hostid int64 `json:"hostid"`
Status string `json:"status"`
Hostname string `json:"hostname"`
HostIP string `json:"hostip"`
}
type Rack struct {
Rackid int64 `json:"rackid"`
Zoneid int64 `json:"zoneid"`
Name string `json:"name"`
}
type GetRacks struct {
Racks []Rack `json:"racks"`
}
type Zone struct {
Zoneid int64 `json:"zoneid"`
Name string `json:"name"`
}
type GetZones struct {
Zones []Zone `json:"zones"`
}