-
Notifications
You must be signed in to change notification settings - Fork 1
/
conts.go
325 lines (280 loc) · 15.6 KB
/
conts.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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
package iotmakerdockerbuilder
const (
// KKiloByte
//
// English: 1024 Bytes multiplier
//
// Example:
// 5 * KKiloByte = 5 KBytes
//
// Português: multiplicador de 1024 Bytes
//
// Exemplo:
// 5 * KKiloByte = 5 KBytes
KKiloByte = 1024
// KMegaByte
//
// English: 1024 KBytes multiplier
//
// Example:
// 5 * KMegaByte = 5 MBytes
//
// Português: multiplicador de 1024 KBytes
//
// Exemplo:
// 5 * KMegaByte = 5 MBytes
KMegaByte = 1024 * 1024
// KGigaByte
//
// English: 1024 MBytes multiplier
//
// Example:
// 5 * KGigaByte = 5 GBytes
//
// Português: multiplicador de 1024 MBytes
//
// Exemplo:
// 5 * KGigaByte = 5 GBytes
KGigaByte = 1024 * 1024 * 1024
// KTeraByte (
//
// English: 1024 GBytes multiplier
//
// Example:
// 5 * KTeraByte = 5 TBytes
//
// Português: multiplicador de 1024 GBytes
//
// Exemplo:
// 5 * KTeraByte = 5 TBytes
KTeraByte = 1024 * 1024 * 1024 * 1024
// KLogColumnAll
//
// English: Enable all values to log
KLogColumnAll = 0x7FFFFFFFFFFFFFF
// KLogColumnReadingTime
//
// English: Reading time
KLogColumnReadingTime = 0b0000000000000000000000000000000000000000000000000000000000000001
KReadingTimeComa = 0b0111111111111111111111111111111111111111111111111111111111111110
KFilterLog = 0b0000000000000000000000000000000000000000000000000000000000000010
KLogColumnFilterLogComa = 0b0111111111111111111111111111111111111111111111111111111111111100
// KLogColumnCurrentNumberOfOidsInTheCGroup
//
// English: Linux specific stats, not populated on Windows. Current is the number of pids in the cgroup
KLogColumnCurrentNumberOfOidsInTheCGroup = 0b0000000000000000000000000000000000000000000000000000000000000100
KCurrentNumberOfOidsInTheCGroupComa = 0b0111111111111111111111111111111111111111111111111111111111111000
// KLogColumnLimitOnTheNumberOfPidsInTheCGroup
//
// English: Linux specific stats, not populated on Windows. Limit is the hard limit on the number of pids in the cgroup. A "Limit" of 0 means that there is no limit.
KLogColumnLimitOnTheNumberOfPidsInTheCGroup = 0b0000000000000000000000000000000000000000000000000000000000001000
KLimitOnTheNumberOfPidsInTheCGroupComa = 0b0111111111111111111111111111111111111111111111111111111111110000
// KLogColumnTotalCPUTimeConsumed
//
// English: Total CPU time consumed. (Units: nanoseconds on Linux, Units: 100's of nanoseconds on Windows)
KLogColumnTotalCPUTimeConsumed = 0b0000000000000000000000000000000000000000000000000000000000010000
KTotalCPUTimeConsumedComa = 0b0111111111111111111111111111111111111111111111111111111111100000
// KLogColumnTotalCPUTimeConsumedPerCore
//
// English: Total CPU time consumed. (Units: nanoseconds on Linux, Units: 100's of nanoseconds on Windows)
KLogColumnTotalCPUTimeConsumedPerCore = 0b0000000000000000000000000000000000000000000000000000000000100000
KTotalCPUTimeConsumedPerCoreComa = 0b0111111111111111111111111111111111111111111111111111111111000000
// KLogColumnTimeSpentByTasksOfTheCGroupInKernelMode
//
// English: Time spent by tasks of the cgroup in kernel mode (Units: nanoseconds on Linux). Time spent by all container processes in kernel mode (Units: 100's of nanoseconds on Windows.Not populated for Hyper-V Containers.)
KLogColumnTimeSpentByTasksOfTheCGroupInKernelMode = 0b0000000000000000000000000000000000000000000000000000000001000000
KTimeSpentByTasksOfTheCGroupInKernelModeComa = 0b0111111111111111111111111111111111111111111111111111111110000000
// KLogColumnTimeSpentByTasksOfTheCGroupInUserMode
//
// English: Time spent by tasks of the cgroup in user mode (Units: nanoseconds on Linux). Time spent by all container processes in user mode (Units: 100's of nanoseconds on Windows. Not populated for Hyper-V Containers)
KLogColumnTimeSpentByTasksOfTheCGroupInUserMode = 0b0000000000000000000000000000000000000000000000000000000010000000
KTimeSpentByTasksOfTheCGroupInUserModeComa = 0b0111111111111111111111111111111111111111111111111111111100000000
// KLogColumnSystemUsage
//
// English: System Usage. Linux only.
KLogColumnSystemUsage = 0b0000000000000000000000000000000000000000000000000000000100000000
KSystemUsageComa = 0b0111111111111111111111111111111111111111111111111111111000000000
// KOnlineCPUs
//
// English: Online CPUs. Linux only.
KLogColumnOnlineCPUs = 0b0000000000000000000000000000000000000000000000000000001000000000
KOnlineCPUsComa = 0b0111111111111111111111111111111111111111111111111111110000000000
// KLogColumnNumberOfPeriodsWithThrottlingActive
//
// English: Throttling Data. Linux only. Number of periods with throttling active.
KLogColumnNumberOfPeriodsWithThrottlingActive = 0b0000000000000000000000000000000000000000000000000000010000000000
KNumberOfPeriodsWithThrottlingActiveComa = 0b0111111111111111111111111111111111111111111111111111100000000000
// KNumberOfPeriodsWhenTheContainerHitsItsThrottlingLimit
//
// English: Throttling Data. Linux only. Number of periods when the container hits its throttling limit.
KLogColumnNumberOfPeriodsWhenTheContainerHitsItsThrottlingLimit = 0b0000000000000000000000000000000000000000000000000000100000000000
KNumberOfPeriodsWhenTheContainerHitsItsThrottlingLimitComa = 0b0111111111111111111111111111111111111111111111111111000000000000
// KAggregateTimeTheContainerWasThrottledForInNanoseconds
//
// English: Throttling Data. Linux only. Aggregate time the container was throttled for in nanoseconds.
KLogColumnAggregateTimeTheContainerWasThrottledForInNanoseconds = 0b0000000000000000000000000000000000000000000000000001000000000000
KAggregateTimeTheContainerWasThrottledForInNanosecondsComa = 0b0111111111111111111111111111111111111111111111111110000000000000
// KLogColumnTotalPreCPUTimeConsumed
//
// English: Total CPU time consumed per core (Units: nanoseconds on Linux). Not used on Windows.
KLogColumnTotalPreCPUTimeConsumed = 0b0000000000000000000000000000000000000000000000000010000000000000
KTotalPreCPUTimeConsumedComa = 0b0111111111111111111111111111111111111111111111111100000000000000
// KLogColumnTotalPreCPUTimeConsumedPerCore
//
// English: Total CPU time consumed per core (Units: nanoseconds on Linux). Not used on Windows.
KLogColumnTotalPreCPUTimeConsumedPerCore = 0b0000000000000000000000000000000000000000000000000100000000000000
KTotalPreCPUTimeConsumedPerCoreComa = 0b0111111111111111111111111111111111111111111111111000000000000000
// KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInKernelMode
//
// English: Time spent by tasks of the cgroup in kernel mode (Units: nanoseconds on Linux) - Time spent by all container processes in kernel mode (Units: 100's of nanoseconds on Windows - Not populated for Hyper-V Containers.)
KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInKernelMode = 0b0000000000000000000000000000000000000000000000001000000000000000
KTimeSpentByPreCPUTasksOfTheCGroupInKernelModeComa = 0b0111111111111111111111111111111111111111111111110000000000000000
// KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInUserMode
//
// English: Time spent by tasks of the cgroup in user mode (Units: nanoseconds on Linux) - Time spent by all container processes in user mode (Units: 100's of nanoseconds on Windows. Not populated for Hyper-V Containers)
KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInUserMode = 0b0000000000000000000000000000000000000000000000010000000000000000
KTimeSpentByPreCPUTasksOfTheCGroupInUserModeComa = 0b0111111111111111111111111111111111111111111111100000000000000000
// KLogColumnPreCPUSystemUsage
//
// English: System Usage. (Linux only)
KLogColumnPreCPUSystemUsage = 0b0000000000000000000000000000000000000000000000100000000000000000
KPreCPUSystemUsageComa = 0b0111111111111111111111111111111111111111111111000000000000000000
// KLogColumnOnlinePreCPUs
//
// English: Online CPUs. (Linux only)
KLogColumnOnlinePreCPUs = 0b0000000000000000000000000000000000000000000001000000000000000000
KOnlinePreCPUsComa = 0b0111111111111111111111111111111111111111111110000000000000000000
// KLogColumnAggregatePreCPUTimeTheContainerWasThrottled
//
// English: Throttling Data. (Linux only) - Aggregate time the container was throttled for in nanoseconds
KLogColumnAggregatePreCPUTimeTheContainerWasThrottled = 0b0000000000000000000000000000000000000000000010000000000000000000
KAggregatePreCPUTimeTheContainerWasThrottledComa = 0b0111111111111111111111111111111111111111111100000000000000000000
// KLogColumnNumberOfPeriodsWithPreCPUThrottlingActive
//
// English: Throttling Data. (Linux only) - Number of periods with throttling active
KLogColumnNumberOfPeriodsWithPreCPUThrottlingActive = 0b0000000000000000000000000000000000000000000100000000000000000000
KNumberOfPeriodsWithPreCPUThrottlingActiveComa = 0b0111111111111111111111111111111111111111111000000000000000000000
// KLogColumnNumberOfPeriodsWhenTheContainerPreCPUHitsItsThrottlingLimit
//
// English: Throttling Data. (Linux only) - Number of periods when the container hits its throttling limit.
KLogColumnNumberOfPeriodsWhenTheContainerPreCPUHitsItsThrottlingLimit = 0b0000000000000000000000000000000000000000001000000000000000000000
KNumberOfPeriodsWhenTheContainerPreCPUHitsItsThrottlingLimitComa = 0b0111111111111111111111111111111111111111110000000000000000000000
// KLogColumnCurrentResCounterUsageForMemory
//
// English: Current res_counter usage for memory
KLogColumnCurrentResCounterUsageForMemory = 0b0000000000000000000000000000000000000000010000000000000000000000
KCurrentResCounterUsageForMemoryComa = 0b0111111111111111111111111111111111111111100000000000000000000000
// KLogColumnMaximumUsageEverRecorded
//
// English: Maximum usage ever recorded
KLogColumnMaximumUsageEverRecorded = 0b0000000000000000000000000000000000000000100000000000000000000000
KMaximumUsageEverRecordedComa = 0b0111111111111111111111111111111111111111000000000000000000000000
// KLogColumnNumberOfTimesMemoryUsageHitsLimits
//
// English: Number of times memory usage hits limits
KLogColumnNumberOfTimesMemoryUsageHitsLimits = 0b0000000000000000000000000000000000000001000000000000000000000000
KNumberOfTimesMemoryUsageHitsLimitsComa = 0b0111111111111111111111111111111111111110000000000000000000000000
// KLogColumnMemoryLimit
//
// English: Memory limit
KLogColumnMemoryLimit = 0b0000000000000000000000000000000000000010000000000000000000000000
KMemoryLimitComa = 0b0111111111111111111111111111111111111100000000000000000000000000
// KLogColumnCommittedBytes
//
// English: Committed bytes
KLogColumnCommittedBytes = 0b0000000000000000000000000000000000000100000000000000000000000000
KCommittedBytesComa = 0b0111111111111111111111111111111111111000000000000000000000000000
// KLogColumnPeakCommittedBytes
//
// English: Peak committed bytes
KLogColumnPeakCommittedBytes = 0b0000000000000000000000000000000000001000000000000000000000000000
KPeakCommittedBytesComa = 0b0111111111111111111111111111111111110000000000000000000000000000
// KLogColumnPrivateWorkingSet
//
// English: Private working set
KLogColumnPrivateWorkingSet = 0b0000000000000000000000000000000000010000000000000000000000000000
KPrivateWorkingSetComa = 0b0111111111111111111111111111111111100000000000000000000000000000
KLogColumnBlkioIoServiceBytesRecursive = 0b0000000000000000000000000000000000100000000000000000000000000000
KBlkioIoServiceBytesRecursiveComa = 0b0111111111111111111111111111111111000000000000000000000000000000
KLogColumnBlkioIoServicedRecursive = 0b0000000000000000000000000000000001000000000000000000000000000000
KBlkioIoServicedRecursiveComa = 0b0111111111111111111111111111111110000000000000000000000000000000
KLogColumnBlkioIoQueuedRecursive = 0b0000000000000000000000000000000010000000000000000000000000000000
KBlkioIoQueuedRecursiveComa = 0b0111111111111111111111111111111100000000000000000000000000000000
KLogColumnBlkioIoServiceTimeRecursive = 0b0000000000000000000000000000000100000000000000000000000000000000
KBlkioIoServiceTimeRecursiveComa = 0b0111111111111111111111111111111000000000000000000000000000000000
KLogColumnBlkioIoWaitTimeRecursive = 0b0000000000000000000000000000001000000000000000000000000000000000
KBlkioIoWaitTimeRecursiveComa = 0b0111111111111111111111111111110000000000000000000000000000000000
KLogColumnBlkioIoMergedRecursive = 0b0000000000000000000000000000010000000000000000000000000000000000
KBlkioIoMergedRecursiveComa = 0b0111111111111111111111111111100000000000000000000000000000000000
KLogColumnBlkioIoTimeRecursive = 0b0000000000000000000000000000100000000000000000000000000000000000
KBlkioIoTimeRecursiveComa = 0b0111111111111111111111111111000000000000000000000000000000000000
KLogColumnBlkioSectorsRecursive = 0b0000000000000000000000000001000000000000000000000000000000000000
KBlkioSectorsRecursiveComa = 0b0111111111111111111111111110000000000000000000000000000000000000
// KLogColumnMacOsLogWithAllCores
//
// English: Mac OS Log
KLogColumnMacOsLogWithAllCores = KLogColumnReadingTime |
KLogColumnCurrentNumberOfOidsInTheCGroup |
KLogColumnTotalCPUTimeConsumed |
KLogColumnTotalCPUTimeConsumedPerCore |
KLogColumnTimeSpentByTasksOfTheCGroupInKernelMode |
KLogColumnSystemUsage |
KLogColumnOnlineCPUs |
KLogColumnTotalPreCPUTimeConsumed |
KLogColumnTotalPreCPUTimeConsumedPerCore |
KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInKernelMode |
KLogColumnPreCPUSystemUsage |
KLogColumnOnlinePreCPUs |
KLogColumnCurrentResCounterUsageForMemory |
KLogColumnMaximumUsageEverRecorded |
KLogColumnMemoryLimit |
KLogColumnBlkioIoServiceBytesRecursive | // não aparece no mac
KLogColumnBlkioIoServicedRecursive | // não aparece no mac
KLogColumnBlkioIoQueuedRecursive | // não aparece no mac
KLogColumnBlkioIoServiceTimeRecursive | // não aparece no mac
KLogColumnBlkioIoWaitTimeRecursive | // não aparece no mac
KLogColumnBlkioIoMergedRecursive | // não aparece no mac
KLogColumnBlkioIoTimeRecursive | // não aparece no mac
KLogColumnBlkioSectorsRecursive // não aparece no mac
// KLogColumnMacOs
//
// English: Mac OS Log
KLogColumnMacOs = KLogColumnReadingTime |
KLogColumnCurrentNumberOfOidsInTheCGroup |
KLogColumnTotalCPUTimeConsumed |
KLogColumnTimeSpentByTasksOfTheCGroupInKernelMode |
KLogColumnSystemUsage |
KLogColumnOnlineCPUs |
KLogColumnTotalPreCPUTimeConsumed |
KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInKernelMode |
KLogColumnPreCPUSystemUsage |
KLogColumnOnlinePreCPUs |
KLogColumnCurrentResCounterUsageForMemory |
KLogColumnMaximumUsageEverRecorded |
KLogColumnMemoryLimit |
KLogColumnBlkioIoServiceBytesRecursive | // não aparece no mac
KLogColumnBlkioIoServicedRecursive | // não aparece no mac
KLogColumnBlkioIoQueuedRecursive | // não aparece no mac
KLogColumnBlkioIoServiceTimeRecursive | // não aparece no mac
KLogColumnBlkioIoWaitTimeRecursive | // não aparece no mac
KLogColumnBlkioIoMergedRecursive | // não aparece no mac
KLogColumnBlkioIoTimeRecursive | // não aparece no mac
KLogColumnBlkioSectorsRecursive // não aparece no mac
KLogColumnWindows = KLogColumnReadingTime |
KLogColumnCurrentNumberOfOidsInTheCGroup |
KLogColumnTotalCPUTimeConsumed |
KLogColumnTotalCPUTimeConsumedPerCore |
KLogColumnTimeSpentByTasksOfTheCGroupInKernelMode |
KLogColumnTimeSpentByTasksOfTheCGroupInUserMode |
KLogColumnSystemUsage |
KLogColumnOnlineCPUs |
KLogColumnTotalPreCPUTimeConsumed |
KLogColumnTotalPreCPUTimeConsumedPerCore |
KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInKernelMode |
KLogColumnTimeSpentByPreCPUTasksOfTheCGroupInUserMode |
KLogColumnPreCPUSystemUsage |
KLogColumnOnlinePreCPUs |
KLogColumnCurrentResCounterUsageForMemory |
KLogColumnMaximumUsageEverRecorded |
KLogColumnMemoryLimit
)