@@ -21,13 +21,13 @@ type NginxVts struct {
2121 LoadMsec int64 `json:"loadMsec"`
2222 NowMsec int64 `json:"nowMsec"`
2323 Connections struct {
24- Active int `json:"active"`
25- Reading int `json:"reading"`
26- Writing int `json:"writing"`
27- Waiting int `json:"waiting"`
28- Accepted int `json:"accepted"`
29- Handled int `json:"handled"`
30- Requests int `json:"requests"`
24+ Active uint64 `json:"active"`
25+ Reading uint64 `json:"reading"`
26+ Writing uint64 `json:"writing"`
27+ Waiting uint64 `json:"waiting"`
28+ Accepted uint64 `json:"accepted"`
29+ Handled uint64 `json:"handled"`
30+ Requests uint64 `json:"requests"`
3131 } `json:"connections"`
3232 ServerZones map [string ]Server `json:"serverZones"`
3333 UpstreamZones map [string ][]Upstream `json:"upstreamZones"`
@@ -36,103 +36,103 @@ type NginxVts struct {
3636}
3737
3838type Server struct {
39- RequestCounter int `json:"requestCounter"`
40- InBytes int `json:"inBytes"`
41- OutBytes int `json:"outBytes"`
39+ RequestCounter uint64 `json:"requestCounter"`
40+ InBytes uint64 `json:"inBytes"`
41+ OutBytes uint64 `json:"outBytes"`
4242 Responses struct {
43- OneXx int `json:"1xx"`
44- TwoXx int `json:"2xx"`
45- ThreeXx int `json:"3xx"`
46- FourXx int `json:"4xx"`
47- FiveXx int `json:"5xx"`
48- Miss int `json:"miss"`
49- Bypass int `json:"bypass"`
50- Expired int `json:"expired"`
51- Stale int `json:"stale"`
52- Updating int `json:"updating"`
53- Revalidated int `json:"revalidated"`
54- Hit int `json:"hit"`
55- Scarce int `json:"scarce"`
43+ OneXx uint64 `json:"1xx"`
44+ TwoXx uint64 `json:"2xx"`
45+ ThreeXx uint64 `json:"3xx"`
46+ FourXx uint64 `json:"4xx"`
47+ FiveXx uint64 `json:"5xx"`
48+ Miss uint64 `json:"miss"`
49+ Bypass uint64 `json:"bypass"`
50+ Expired uint64 `json:"expired"`
51+ Stale uint64 `json:"stale"`
52+ Updating uint64 `json:"updating"`
53+ Revalidated uint64 `json:"revalidated"`
54+ Hit uint64 `json:"hit"`
55+ Scarce uint64 `json:"scarce"`
5656 } `json:"responses"`
5757 OverCounts struct {
5858 MaxIntegerSize float64 `json:"maxIntegerSize"`
59- RequestCounter int `json:"requestCounter"`
60- InBytes int `json:"inBytes"`
61- OutBytes int `json:"outBytes"`
62- OneXx int `json:"1xx"`
63- TwoXx int `json:"2xx"`
64- ThreeXx int `json:"3xx"`
65- FourXx int `json:"4xx"`
66- FiveXx int `json:"5xx"`
67- Miss int `json:"miss"`
68- Bypass int `json:"bypass"`
69- Expired int `json:"expired"`
70- Stale int `json:"stale"`
71- Updating int `json:"updating"`
72- Revalidated int `json:"revalidated"`
73- Hit int `json:"hit"`
74- Scarce int `json:"scarce"`
59+ RequestCounter uint64 `json:"requestCounter"`
60+ InBytes uint64 `json:"inBytes"`
61+ OutBytes uint64 `json:"outBytes"`
62+ OneXx uint64 `json:"1xx"`
63+ TwoXx uint64 `json:"2xx"`
64+ ThreeXx uint64 `json:"3xx"`
65+ FourXx uint64 `json:"4xx"`
66+ FiveXx uint64 `json:"5xx"`
67+ Miss uint64 `json:"miss"`
68+ Bypass uint64 `json:"bypass"`
69+ Expired uint64 `json:"expired"`
70+ Stale uint64 `json:"stale"`
71+ Updating uint64 `json:"updating"`
72+ Revalidated uint64 `json:"revalidated"`
73+ Hit uint64 `json:"hit"`
74+ Scarce uint64 `json:"scarce"`
7575 } `json:"overCounts"`
7676}
7777
7878type Upstream struct {
7979 Server string `json:"server"`
80- RequestCounter int `json:"requestCounter"`
81- InBytes int `json:"inBytes"`
82- OutBytes int `json:"outBytes"`
80+ RequestCounter uint64 `json:"requestCounter"`
81+ InBytes uint64 `json:"inBytes"`
82+ OutBytes uint64 `json:"outBytes"`
8383 Responses struct {
84- OneXx int `json:"1xx"`
85- TwoXx int `json:"2xx"`
86- ThreeXx int `json:"3xx"`
87- FourXx int `json:"4xx"`
88- FiveXx int `json:"5xx"`
84+ OneXx uint64 `json:"1xx"`
85+ TwoXx uint64 `json:"2xx"`
86+ ThreeXx uint64 `json:"3xx"`
87+ FourXx uint64 `json:"4xx"`
88+ FiveXx uint64 `json:"5xx"`
8989 } `json:"responses"`
90- ResponseMsec int `json:"responseMsec"`
91- Weight int `json:"weight"`
92- MaxFails int `json:"maxFails"`
93- FailTimeout int `json:"failTimeout"`
94- Backup bool `json:"backup"`
95- Down bool `json:"down"`
90+ ResponseMsec uint64 `json:"responseMsec"`
91+ Weight uint64 `json:"weight"`
92+ MaxFails uint64 `json:"maxFails"`
93+ FailTimeout uint64 `json:"failTimeout"`
94+ Backup bool `json:"backup"`
95+ Down bool `json:"down"`
9696 OverCounts struct {
9797 MaxIntegerSize float64 `json:"maxIntegerSize"`
98- RequestCounter int `json:"requestCounter"`
99- InBytes int `json:"inBytes"`
100- OutBytes int `json:"outBytes"`
101- OneXx int `json:"1xx"`
102- TwoXx int `json:"2xx"`
103- ThreeXx int `json:"3xx"`
104- FourXx int `json:"4xx"`
105- FiveXx int `json:"5xx"`
98+ RequestCounter uint64 `json:"requestCounter"`
99+ InBytes uint64 `json:"inBytes"`
100+ OutBytes uint64 `json:"outBytes"`
101+ OneXx uint64 `json:"1xx"`
102+ TwoXx uint64 `json:"2xx"`
103+ ThreeXx uint64 `json:"3xx"`
104+ FourXx uint64 `json:"4xx"`
105+ FiveXx uint64 `json:"5xx"`
106106 } `json:"overCounts"`
107107}
108108
109109type Cache struct {
110- MaxSize int `json:"maxSize"`
111- UsedSize int `json:"usedSize"`
112- InBytes int `json:"inBytes"`
113- OutBytes int `json:"outBytes"`
110+ MaxSize uint64 `json:"maxSize"`
111+ UsedSize uint64 `json:"usedSize"`
112+ InBytes uint64 `json:"inBytes"`
113+ OutBytes uint64 `json:"outBytes"`
114114 Responses struct {
115- Miss int `json:"miss"`
116- Bypass int `json:"bypass"`
117- Expired int `json:"expired"`
118- Stale int `json:"stale"`
119- Updating int `json:"updating"`
120- Revalidated int `json:"revalidated"`
121- Hit int `json:"hit"`
122- Scarce int `json:"scarce"`
115+ Miss uint64 `json:"miss"`
116+ Bypass uint64 `json:"bypass"`
117+ Expired uint64 `json:"expired"`
118+ Stale uint64 `json:"stale"`
119+ Updating uint64 `json:"updating"`
120+ Revalidated uint64 `json:"revalidated"`
121+ Hit uint64 `json:"hit"`
122+ Scarce uint64 `json:"scarce"`
123123 } `json:"responses"`
124124 OverCounts struct {
125125 MaxIntegerSize float64 `json:"maxIntegerSize"`
126- InBytes int `json:"inBytes"`
127- OutBytes int `json:"outBytes"`
128- Miss int `json:"miss"`
129- Bypass int `json:"bypass"`
130- Expired int `json:"expired"`
131- Stale int `json:"stale"`
132- Updating int `json:"updating"`
133- Revalidated int `json:"revalidated"`
134- Hit int `json:"hit"`
135- Scarce int `json:"scarce"`
126+ InBytes uint64 `json:"inBytes"`
127+ OutBytes uint64 `json:"outBytes"`
128+ Miss uint64 `json:"miss"`
129+ Bypass uint64 `json:"bypass"`
130+ Expired uint64 `json:"expired"`
131+ Stale uint64 `json:"stale"`
132+ Updating uint64 `json:"updating"`
133+ Revalidated uint64 `json:"revalidated"`
134+ Hit uint64 `json:"hit"`
135+ Scarce uint64 `json:"scarce"`
136136 } `json:"overCounts"`
137137}
138138
0 commit comments