This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
process_info_item.go
260 lines (186 loc) · 6.21 KB
/
process_info_item.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
// Code generated by go-swagger; DO NOT EDIT.
// Copyright 2019 HAProxy Technologies
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ProcessInfoItem process info item
//
// swagger:model process_info_item
type ProcessInfoItem struct {
// active peers
ActivePeers *int64 `json:"active_peers,omitempty"`
// busy polling
BusyPolling *int64 `json:"busy_polling,omitempty"`
// bytes out rate
BytesOutRate *int64 `json:"bytes_out_rate,omitempty"`
// compress bps in
CompressBpsIn *int64 `json:"compress_bps_in,omitempty"`
// compress bps out
CompressBpsOut *int64 `json:"compress_bps_out,omitempty"`
// compress bps rate lim
CompressBpsRateLim *int64 `json:"compress_bps_rate_lim,omitempty"`
// conn rate
ConnRate *int64 `json:"conn_rate,omitempty"`
// conn rate limit
ConnRateLimit *int64 `json:"conn_rate_limit,omitempty"`
// connected peers
ConnectedPeers *int64 `json:"connected_peers,omitempty"`
// cum conns
CumConns *int64 `json:"cum_conns,omitempty"`
// cum req
CumReq *int64 `json:"cum_req,omitempty"`
// cum ssl conns
CumSslConns *int64 `json:"cum_ssl_conns,omitempty"`
// curr conns
CurrConns *int64 `json:"curr_conns,omitempty"`
// curr ssl conns
CurrSslConns *int64 `json:"curr_ssl_conns,omitempty"`
// dropped logs
DroppedLogs *int64 `json:"dropped_logs,omitempty"`
// failed resolutions
FailedResolutions *int64 `json:"failed_resolutions,omitempty"`
// hard max conn
HardMaxConn *int64 `json:"hard_max_conn,omitempty"`
// idle pct
IdlePct *int64 `json:"idle_pct,omitempty"`
// jobs
Jobs *int64 `json:"jobs,omitempty"`
// listeners
Listeners *int64 `json:"listeners,omitempty"`
// max conn
MaxConn *int64 `json:"max_conn,omitempty"`
// max conn rate
MaxConnRate *int64 `json:"max_conn_rate,omitempty"`
// max pipes
MaxPipes *int64 `json:"max_pipes,omitempty"`
// max sess rate
MaxSessRate *int64 `json:"max_sess_rate,omitempty"`
// max sock
MaxSock *int64 `json:"max_sock,omitempty"`
// max ssl conns
MaxSslConns *int64 `json:"max_ssl_conns,omitempty"`
// max ssl rate
MaxSslRate *int64 `json:"max_ssl_rate,omitempty"`
// max zlib mem usage
MaxZlibMemUsage *int64 `json:"max_zlib_mem_usage,omitempty"`
// mem max mb
MemMaxMb *int64 `json:"mem_max_mb,omitempty"`
// Number of threads
Nbthread *int64 `json:"nbthread,omitempty"`
// node
Node string `json:"node,omitempty"`
// Process id of the replying worker process
Pid *int64 `json:"pid,omitempty"`
// pipes free
PipesFree *int64 `json:"pipes_free,omitempty"`
// pipes used
PipesUsed *int64 `json:"pipes_used,omitempty"`
// pool alloc mb
PoolAllocMb *int64 `json:"pool_alloc_mb,omitempty"`
// pool failed
PoolFailed *int64 `json:"pool_failed,omitempty"`
// pool used mb
PoolUsedMb *int64 `json:"pool_used_mb,omitempty"`
// Process number
ProcessNum *int64 `json:"process_num,omitempty"`
// Number of spawned processes
Processes *int64 `json:"processes,omitempty"`
// HAProxy version release date
// Format: date
ReleaseDate strfmt.Date `json:"release_date,omitempty"`
// run queue
RunQueue *int64 `json:"run_queue,omitempty"`
// sess rate
SessRate *int64 `json:"sess_rate,omitempty"`
// sess rate limit
SessRateLimit *int64 `json:"sess_rate_limit,omitempty"`
// ssl backend key rate
SslBackendKeyRate *int64 `json:"ssl_backend_key_rate,omitempty"`
// ssl backend max key rate
SslBackendMaxKeyRate *int64 `json:"ssl_backend_max_key_rate,omitempty"`
// ssl cache lookups
SslCacheLookups *int64 `json:"ssl_cache_lookups,omitempty"`
// ssl cache misses
SslCacheMisses *int64 `json:"ssl_cache_misses,omitempty"`
// ssl frontend key rate
SslFrontendKeyRate *int64 `json:"ssl_frontend_key_rate,omitempty"`
// ssl frontend max key rate
SslFrontendMaxKeyRate *int64 `json:"ssl_frontend_max_key_rate,omitempty"`
// ssl frontend session reuse
SslFrontendSessionReuse *int64 `json:"ssl_frontend_session_reuse,omitempty"`
// ssl rate
SslRate *int64 `json:"ssl_rate,omitempty"`
// ssl rate limit
SslRateLimit *int64 `json:"ssl_rate_limit,omitempty"`
// stopping
Stopping *int64 `json:"stopping,omitempty"`
// tasks
Tasks *int64 `json:"tasks,omitempty"`
// total bytes out
TotalBytesOut *int64 `json:"total_bytes_out,omitempty"`
// ulimit n
Ulimitn *int64 `json:"ulimit_n,omitempty"`
// unstoppable
Unstoppable *int64 `json:"unstoppable,omitempty"`
// HAProxy uptime in s
Uptime *int64 `json:"uptime,omitempty"`
// HAProxy version string
Version string `json:"version,omitempty"`
// zlib mem usage
ZlibMemUsage *int64 `json:"zlib_mem_usage,omitempty"`
}
// Validate validates this process info item
func (m *ProcessInfoItem) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateReleaseDate(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProcessInfoItem) validateReleaseDate(formats strfmt.Registry) error {
if swag.IsZero(m.ReleaseDate) { // not required
return nil
}
if err := validate.FormatOf("release_date", "body", "date", m.ReleaseDate.String(), formats); err != nil {
return err
}
return nil
}
// MarshalBinary interface implementation
func (m *ProcessInfoItem) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProcessInfoItem) UnmarshalBinary(b []byte) error {
var res ProcessInfoItem
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}