-
Notifications
You must be signed in to change notification settings - Fork 1
/
models_gen.go
132 lines (114 loc) 路 3.57 KB
/
models_gen.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package api
import (
"time"
)
type AgentInfo struct {
RegistrationAt *time.Time `json:"registrationAt,omitempty"`
LastReport *time.Time `json:"lastReport,omitempty"`
IsConnected bool `json:"isConnected"`
}
type AgentStatus struct {
Status float64 `json:"status"`
StatusDescription []string `json:"statusDescription"`
}
type CPUUsage struct {
User float64 `json:"User"`
Nice float64 `json:"Nice"`
System float64 `json:"System"`
Idle float64 `json:"Idle"`
IOWait float64 `json:"IOWait"`
Guest float64 `json:"Guest"`
GuestNice float64 `json:"GuestNice"`
Irq float64 `json:"IRQ"`
SoftIrq float64 `json:"SoftIRQ"`
Steal float64 `json:"Steal"`
}
type Container struct {
Command string `json:"command"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
ID string `json:"id"`
Image string `json:"image"`
InspectJSON string `json:"inspectJSON"`
Name string `json:"name"`
StartedAt *time.Time `json:"startedAt,omitempty"`
State string `json:"state"`
FinishedAt *time.Time `json:"finishedAt,omitempty"`
IoWriteBytes float64 `json:"ioWriteBytes"`
IoReadBytes float64 `json:"ioReadBytes"`
NetBitsRecv float64 `json:"netBitsRecv"`
NetBitsSent float64 `json:"netBitsSent"`
MemUsedPerc float64 `json:"memUsedPerc"`
CPUUsedPerc float64 `json:"cpuUsedPerc"`
}
type Containers struct {
Count int `json:"count"`
CurrentCount int `json:"currentCount"`
Containers []*Container `json:"containers"`
}
type Fact struct {
Name string `json:"name"`
Value string `json:"value"`
}
type LabelInput struct {
Key string `json:"key"`
Value string `json:"value"`
}
type MemoryUsage struct {
Total float64 `json:"Total"`
Used float64 `json:"Used"`
Free float64 `json:"Free"`
Buffers float64 `json:"Buffers"`
Cached float64 `json:"Cached"`
}
type MetricInput struct {
Labels []*LabelInput `json:"labels"`
}
type Pagination struct {
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type Process struct {
Pid int `json:"pid"`
Ppid int `json:"ppid"`
CreateTime time.Time `json:"create_time"`
Cmdline string `json:"cmdline"`
Name string `json:"name"`
MemoryRss int `json:"memory_rss"`
CPUPercent float64 `json:"cpu_percent"`
CPUTime float64 `json:"cpu_time"`
Status string `json:"status"`
Username string `json:"username"`
Executable string `json:"executable"`
ContainerID string `json:"container_id"`
}
type Query struct {
}
type Service struct {
Name string `json:"name"`
ContainerID string `json:"containerId"`
IPAddress string `json:"ipAddress"`
ListenAddresses []string `json:"listenAddresses"`
ExePath string `json:"exePath"`
Active bool `json:"active"`
Status float64 `json:"status"`
StatusDescription *string `json:"statusDescription,omitempty"`
}
type SwapUsage struct {
Total float64 `json:"Total"`
Used float64 `json:"Used"`
Free float64 `json:"Free"`
}
type Tag struct {
TagName string `json:"tagName"`
}
type Topinfo struct {
Time time.Time `json:"Time"`
Uptime int `json:"Uptime"`
Loads []float64 `json:"Loads"`
Users int `json:"Users"`
Processes []*Process `json:"Processes"`
CPU *CPUUsage `json:"CPU,omitempty"`
Memory *MemoryUsage `json:"Memory,omitempty"`
Swap *SwapUsage `json:"Swap,omitempty"`
}