bfg-common 1.3.243 → 1.3.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/atoms/table/dataGrid/DataGrid.vue +4 -4
- package/components/atoms/table/dataGrid/lib/utils/constructDataTable.ts +3 -1
- package/components/common/context/ContextRecursion.vue +1 -1
- package/components/common/context/lib/models/interfaces.ts +1 -0
- package/components/common/feedback/Buttons.vue +1 -1
- package/components/common/feedback/Feedback.vue +1 -1
- package/components/common/feedback/Message.vue +1 -1
- package/components/common/feedback/lib/config/feedbackTabs.ts +3 -1
- package/components/common/feedback/lib/models/interfaces.ts +1 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/tableConfig.ts +22 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +72 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces.ts +1 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +4 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +21 -0
- package/package.json +1 -1
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
>
|
|
209
209
|
<div>
|
|
210
210
|
<div
|
|
211
|
-
:data-id="`${item.testId}-select-row`"
|
|
211
|
+
:data-id="`${item[0].testId}-select-row`"
|
|
212
212
|
class="datagrid-row-master datagrid-row-flex"
|
|
213
213
|
@click.stop="selectRowById(item[0])"
|
|
214
214
|
>
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
>
|
|
240
240
|
<button
|
|
241
241
|
:id="`${props.testId}-toggle-icon-${key}`"
|
|
242
|
-
:data-id="`${item.testId}-toggle-button`"
|
|
242
|
+
:data-id="`${item[0].testId}-toggle-button`"
|
|
243
243
|
class="datagrid-expandable-caret-button reset-btn"
|
|
244
244
|
@click="toggle(key)"
|
|
245
245
|
>
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
:id="`${props.testId}-${inputId}-${item[0].id}`"
|
|
272
272
|
:key="item[0].id"
|
|
273
273
|
v-model="selectedRowLocal"
|
|
274
|
-
:data-id="`${item.testId}-row-selection-input`"
|
|
274
|
+
:data-id="`${item[0].testId}-row-selection-input`"
|
|
275
275
|
:type="props.type"
|
|
276
276
|
:class="`${props.type}-btn`"
|
|
277
277
|
:value="item[0].id"
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
<div class="flex-align-center">
|
|
298
298
|
<button
|
|
299
299
|
:id="`${props.testId}-toggle-icon-${key}`"
|
|
300
|
-
:
|
|
300
|
+
:data-id="`${item[0].testId}-toggle-row-button`"
|
|
301
301
|
class="datagrid-expandable-caret-button reset-btn"
|
|
302
302
|
@click="toggle(key)"
|
|
303
303
|
>
|
|
@@ -19,7 +19,8 @@ export const constructHeadItem = (
|
|
|
19
19
|
sortColumn: string,
|
|
20
20
|
hasFilter: boolean,
|
|
21
21
|
width: string,
|
|
22
|
-
iconName?: string
|
|
22
|
+
iconName?: string,
|
|
23
|
+
testId?: string
|
|
23
24
|
): UI_I_HeadItem => ({
|
|
24
25
|
key,
|
|
25
26
|
text,
|
|
@@ -29,4 +30,5 @@ export const constructHeadItem = (
|
|
|
29
30
|
filter: '',
|
|
30
31
|
width,
|
|
31
32
|
iconName,
|
|
33
|
+
testId,
|
|
32
34
|
})
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:disabled="props.type === undefined"
|
|
9
9
|
class="clr-textarea ng-pristine ng-invalid ng-touched textarea"
|
|
10
10
|
:placeholder="descriptionTextPlaceholder"
|
|
11
|
-
data-id="message-textarea"
|
|
11
|
+
data-id="feedback-message-textarea"
|
|
12
12
|
></textarea>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="main-block">
|
|
@@ -2,23 +2,25 @@ import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import { UI_I_FeedbackButtonsItem } from '~/components/common/feedback/lib/models/interfaces'
|
|
3
3
|
export const feedbackTabs = (
|
|
4
4
|
localization: UI_I_Localization
|
|
5
|
-
|
|
6
5
|
): UI_I_FeedbackButtonsItem[] => {
|
|
7
6
|
return [
|
|
8
7
|
{
|
|
9
8
|
text: `${localization.problem}`,
|
|
10
9
|
key: 0,
|
|
11
10
|
iconName: 'warning-standart',
|
|
11
|
+
testId: 'feedback-type-warning-standart-type',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
text: `${localization.complement}`,
|
|
15
15
|
key: 1,
|
|
16
16
|
iconName: 'heart',
|
|
17
|
+
testId: 'feedback-type-heart-type',
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
text: `${localization.idea}`,
|
|
20
21
|
key: 2,
|
|
21
22
|
iconName: 'lightbulb',
|
|
23
|
+
testId: 'feedback-type-idea-type',
|
|
22
24
|
},
|
|
23
25
|
]
|
|
24
26
|
}
|
|
@@ -45,7 +45,9 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
|
45
45
|
const result: UI_I_HeadItem[] = []
|
|
46
46
|
getItems(localization).forEach((item, i) => {
|
|
47
47
|
const col = `col${i + 1}`
|
|
48
|
-
result.push(
|
|
48
|
+
result.push(
|
|
49
|
+
constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
|
|
50
|
+
)
|
|
49
51
|
})
|
|
50
52
|
return result
|
|
51
53
|
}
|
|
@@ -61,10 +63,26 @@ export const bodyItems = (
|
|
|
61
63
|
key: 'col1',
|
|
62
64
|
text: counters[countersTableKey[0]],
|
|
63
65
|
id: key,
|
|
66
|
+
testId: `counters-item-${countersTableKey[0]}-${key}`,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: 'col2',
|
|
70
|
+
text: counters[countersTableKey[1]],
|
|
71
|
+
id: key,
|
|
72
|
+
testId: `counters-item-${countersTableKey[1]}-${key}`,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: 'col3',
|
|
76
|
+
text: counters[countersTableKey[2]],
|
|
77
|
+
id: key,
|
|
78
|
+
testId: `counters-item-${countersTableKey[2]}-${key}`,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: 'col4',
|
|
82
|
+
text: counters[countersTableKey[3]],
|
|
83
|
+
id: key,
|
|
84
|
+
testId: `counters-item-${countersTableKey[3]}-${key}`,
|
|
64
85
|
},
|
|
65
|
-
{ key: 'col2', text: counters[countersTableKey[1]], id: key },
|
|
66
|
-
{ key: 'col3', text: counters[countersTableKey[2]], id: key },
|
|
67
|
-
{ key: 'col4', text: counters[countersTableKey[3]], id: key },
|
|
68
86
|
])
|
|
69
87
|
})
|
|
70
88
|
return bodyItems
|
|
@@ -23,6 +23,7 @@ const hostItemsFunc = (
|
|
|
23
23
|
measurement: localization.usageForTotal,
|
|
24
24
|
units: '%',
|
|
25
25
|
nameEn: 'total',
|
|
26
|
+
testId: 'counters-table-total-item',
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
id: 1,
|
|
@@ -31,6 +32,7 @@ const hostItemsFunc = (
|
|
|
31
32
|
measurement: localization.usageForCoreN,
|
|
32
33
|
units: '%',
|
|
33
34
|
nameEn: 'core',
|
|
35
|
+
testId: 'counters-table-core-item',
|
|
34
36
|
},
|
|
35
37
|
{
|
|
36
38
|
id: 2,
|
|
@@ -39,6 +41,7 @@ const hostItemsFunc = (
|
|
|
39
41
|
measurement: localization.usageCoreCount.replace('{0}', '' + totalCores),
|
|
40
42
|
units: localization.mhz,
|
|
41
43
|
nameEn: 'coreCountMHz',
|
|
44
|
+
testId: 'counters-table-core-count-mhz-item',
|
|
42
45
|
},
|
|
43
46
|
{
|
|
44
47
|
id: 3,
|
|
@@ -47,6 +50,7 @@ const hostItemsFunc = (
|
|
|
47
50
|
measurement: localization.totalUsage,
|
|
48
51
|
units: localization.mhz,
|
|
49
52
|
nameEn: 'totalMHz',
|
|
53
|
+
testId: 'counters-table-total-mhz-item',
|
|
50
54
|
},
|
|
51
55
|
{
|
|
52
56
|
id: 4,
|
|
@@ -55,6 +59,7 @@ const hostItemsFunc = (
|
|
|
55
59
|
measurement: localization.averageUsage,
|
|
56
60
|
units: localization.mhz,
|
|
57
61
|
nameEn: 'averageMHz',
|
|
62
|
+
testId: 'counters-table-average-mhz-item',
|
|
58
63
|
},
|
|
59
64
|
]
|
|
60
65
|
const memory: UI_I_AdvancedCounterItem[] = [
|
|
@@ -65,6 +70,7 @@ const hostItemsFunc = (
|
|
|
65
70
|
measurement: localization.usageInKb,
|
|
66
71
|
units: localization.kb,
|
|
67
72
|
nameEn: 'active',
|
|
73
|
+
testId: 'counters-table-active-item',
|
|
68
74
|
},
|
|
69
75
|
{
|
|
70
76
|
id: 1,
|
|
@@ -73,6 +79,7 @@ const hostItemsFunc = (
|
|
|
73
79
|
measurement: localization.usageInKb,
|
|
74
80
|
units: localization.kb,
|
|
75
81
|
nameEn: 'used',
|
|
82
|
+
testId: 'counters-table-used-item',
|
|
76
83
|
},
|
|
77
84
|
{
|
|
78
85
|
id: 2,
|
|
@@ -81,6 +88,7 @@ const hostItemsFunc = (
|
|
|
81
88
|
measurement: localization.usageInKb,
|
|
82
89
|
units: localization.kb,
|
|
83
90
|
nameEn: 'buffers',
|
|
91
|
+
testId: 'counters-table-buffers-item',
|
|
84
92
|
},
|
|
85
93
|
{
|
|
86
94
|
id: 3,
|
|
@@ -89,6 +97,7 @@ const hostItemsFunc = (
|
|
|
89
97
|
measurement: localization.usageInKb,
|
|
90
98
|
units: localization.kb,
|
|
91
99
|
nameEn: 'cached',
|
|
100
|
+
testId: 'counters-table-cached-item',
|
|
92
101
|
},
|
|
93
102
|
{
|
|
94
103
|
id: 4,
|
|
@@ -97,6 +106,7 @@ const hostItemsFunc = (
|
|
|
97
106
|
measurement: localization.usageInKb,
|
|
98
107
|
units: localization.kb,
|
|
99
108
|
nameEn: 'free',
|
|
109
|
+
testId: 'counters-table-free-item',
|
|
100
110
|
},
|
|
101
111
|
{
|
|
102
112
|
id: 5,
|
|
@@ -105,6 +115,7 @@ const hostItemsFunc = (
|
|
|
105
115
|
measurement: localization.usageInKb,
|
|
106
116
|
units: localization.kb,
|
|
107
117
|
nameEn: 'swap',
|
|
118
|
+
testId: 'counters-table-swap-item',
|
|
108
119
|
},
|
|
109
120
|
{
|
|
110
121
|
id: 6,
|
|
@@ -113,6 +124,7 @@ const hostItemsFunc = (
|
|
|
113
124
|
measurement: localization.usageInKb,
|
|
114
125
|
units: localization.kb,
|
|
115
126
|
nameEn: 'swap free',
|
|
127
|
+
testId: 'counters-table-swap-free-item',
|
|
116
128
|
},
|
|
117
129
|
]
|
|
118
130
|
const network: UI_I_AdvancedCounterItem[] = [
|
|
@@ -123,6 +135,7 @@ const hostItemsFunc = (
|
|
|
123
135
|
measurement: localization.multicastPackets,
|
|
124
136
|
units: localization.num,
|
|
125
137
|
nameEn: 'multicast',
|
|
138
|
+
testId: 'counters-table-multicast-item',
|
|
126
139
|
},
|
|
127
140
|
{
|
|
128
141
|
id: 1,
|
|
@@ -131,6 +144,7 @@ const hostItemsFunc = (
|
|
|
131
144
|
measurement: localization.dataTransmit,
|
|
132
145
|
units: localization.kBps,
|
|
133
146
|
nameEn: 'transmit bandwidth',
|
|
147
|
+
testId: 'counters-table-transmit-bandwidth-item',
|
|
134
148
|
},
|
|
135
149
|
{
|
|
136
150
|
id: 2,
|
|
@@ -139,6 +153,7 @@ const hostItemsFunc = (
|
|
|
139
153
|
measurement: localization.dataReceive,
|
|
140
154
|
units: localization.kBps,
|
|
141
155
|
nameEn: 'receive bandwidth',
|
|
156
|
+
testId: 'counters-table-receive-bandwidth-item',
|
|
142
157
|
},
|
|
143
158
|
{
|
|
144
159
|
id: 3,
|
|
@@ -147,6 +162,7 @@ const hostItemsFunc = (
|
|
|
147
162
|
measurement: localization.dataUsage,
|
|
148
163
|
units: localization.kBps,
|
|
149
164
|
nameEn: 'usage',
|
|
165
|
+
testId: 'counters-table-kbps-usage-item',
|
|
150
166
|
},
|
|
151
167
|
{
|
|
152
168
|
id: 4,
|
|
@@ -155,6 +171,7 @@ const hostItemsFunc = (
|
|
|
155
171
|
measurement: localization.packetsWithErrorsReceived,
|
|
156
172
|
units: localization.num,
|
|
157
173
|
nameEn: 'packets received',
|
|
174
|
+
testId: 'counters-table-packets-received-item',
|
|
158
175
|
},
|
|
159
176
|
{
|
|
160
177
|
id: 5,
|
|
@@ -163,6 +180,7 @@ const hostItemsFunc = (
|
|
|
163
180
|
measurement: localization.packetsWithErrorsTransmitted,
|
|
164
181
|
units: localization.num,
|
|
165
182
|
nameEn: 'packets transmitted',
|
|
183
|
+
testId: 'counters-table-packets-transmitted-item',
|
|
166
184
|
},
|
|
167
185
|
{
|
|
168
186
|
id: 6,
|
|
@@ -171,6 +189,7 @@ const hostItemsFunc = (
|
|
|
171
189
|
measurement: localization.transmitPacketsDropped,
|
|
172
190
|
units: localization.num,
|
|
173
191
|
nameEn: 'transmit packets dropped',
|
|
192
|
+
testId: 'counters-table-transmit-packets-dropped-item',
|
|
174
193
|
},
|
|
175
194
|
{
|
|
176
195
|
id: 7,
|
|
@@ -179,6 +198,7 @@ const hostItemsFunc = (
|
|
|
179
198
|
measurement: localization.receivePacketsDropped,
|
|
180
199
|
units: localization.num,
|
|
181
200
|
nameEn: 'receive packets dropped',
|
|
201
|
+
testId: 'counters-table-receive-packets-dropped-item',
|
|
182
202
|
},
|
|
183
203
|
{
|
|
184
204
|
id: 8,
|
|
@@ -187,6 +207,7 @@ const hostItemsFunc = (
|
|
|
187
207
|
measurement: localization.receiveErrorsDetected,
|
|
188
208
|
units: localization.num,
|
|
189
209
|
nameEn: 'receive errors detected',
|
|
210
|
+
testId: 'counters-table-receive-errors-detected-item',
|
|
190
211
|
},
|
|
191
212
|
{
|
|
192
213
|
id: 9,
|
|
@@ -195,6 +216,7 @@ const hostItemsFunc = (
|
|
|
195
216
|
measurement: localization.transmitErrorsDetected,
|
|
196
217
|
units: localization.num,
|
|
197
218
|
nameEn: 'transmit errors detected',
|
|
219
|
+
testId: 'counters-table-transmit-errors-detected-item',
|
|
198
220
|
},
|
|
199
221
|
{
|
|
200
222
|
id: 10,
|
|
@@ -203,6 +225,7 @@ const hostItemsFunc = (
|
|
|
203
225
|
measurement: localization.receiveCrcErrors,
|
|
204
226
|
units: localization.num,
|
|
205
227
|
nameEn: 'receive crc errors',
|
|
228
|
+
testId: 'counters-table-receive-crc-errors-item',
|
|
206
229
|
},
|
|
207
230
|
{
|
|
208
231
|
id: 11,
|
|
@@ -211,6 +234,7 @@ const hostItemsFunc = (
|
|
|
211
234
|
measurement: localization.receiveFifoErrors,
|
|
212
235
|
units: localization.num,
|
|
213
236
|
nameEn: 'receive fifo errors',
|
|
237
|
+
testId: 'counters-table-receive-fifo-errors-item',
|
|
214
238
|
},
|
|
215
239
|
{
|
|
216
240
|
id: 12,
|
|
@@ -219,6 +243,7 @@ const hostItemsFunc = (
|
|
|
219
243
|
measurement: localization.receiveFrameErrors,
|
|
220
244
|
units: localization.num,
|
|
221
245
|
nameEn: 'receive frame errors',
|
|
246
|
+
testId: 'counters-table-receive-frame-errors-item',
|
|
222
247
|
},
|
|
223
248
|
{
|
|
224
249
|
id: 13,
|
|
@@ -227,6 +252,7 @@ const hostItemsFunc = (
|
|
|
227
252
|
measurement: localization.receiveLengthErrors,
|
|
228
253
|
units: localization.num,
|
|
229
254
|
nameEn: 'receive length errors',
|
|
255
|
+
testId: 'counters-table-receive-length-errors-item',
|
|
230
256
|
},
|
|
231
257
|
{
|
|
232
258
|
id: 14,
|
|
@@ -235,6 +261,7 @@ const hostItemsFunc = (
|
|
|
235
261
|
measurement: localization.receiveMissedErrors,
|
|
236
262
|
units: localization.num,
|
|
237
263
|
nameEn: 'receive missed errors',
|
|
264
|
+
testId: 'counters-table-receive-missed-errors-item',
|
|
238
265
|
},
|
|
239
266
|
{
|
|
240
267
|
id: 15,
|
|
@@ -243,6 +270,7 @@ const hostItemsFunc = (
|
|
|
243
270
|
measurement: localization.receiveOverErrors,
|
|
244
271
|
units: localization.num,
|
|
245
272
|
nameEn: 'receive over errors',
|
|
273
|
+
testId: 'counters-table-receive-over-errors-item',
|
|
246
274
|
},
|
|
247
275
|
{
|
|
248
276
|
id: 16,
|
|
@@ -251,6 +279,7 @@ const hostItemsFunc = (
|
|
|
251
279
|
measurement: localization.transmitAbortedErrors,
|
|
252
280
|
units: localization.num,
|
|
253
281
|
nameEn: 'transmit aborted errors',
|
|
282
|
+
testId: 'counters-table-transmit-aborted-errors-item',
|
|
254
283
|
},
|
|
255
284
|
{
|
|
256
285
|
id: 17,
|
|
@@ -259,6 +288,7 @@ const hostItemsFunc = (
|
|
|
259
288
|
measurement: localization.transmitCarrierErrors,
|
|
260
289
|
units: localization.num,
|
|
261
290
|
nameEn: 'transmit carrier errors',
|
|
291
|
+
testId: 'counters-table-transmit-carrier-errors-item',
|
|
262
292
|
},
|
|
263
293
|
{
|
|
264
294
|
id: 18,
|
|
@@ -267,6 +297,7 @@ const hostItemsFunc = (
|
|
|
267
297
|
measurement: localization.transmitFifoErrors,
|
|
268
298
|
units: localization.num,
|
|
269
299
|
nameEn: 'transmit fifo errors',
|
|
300
|
+
testId: 'counters-table-transmit-fifo-errors-item',
|
|
270
301
|
},
|
|
271
302
|
{
|
|
272
303
|
id: 19,
|
|
@@ -275,6 +306,7 @@ const hostItemsFunc = (
|
|
|
275
306
|
measurement: localization.transmitHeartbeatErrors,
|
|
276
307
|
units: localization.num,
|
|
277
308
|
nameEn: 'transmit heartbeat errors',
|
|
309
|
+
testId: 'counters-table-transmit-heartbeat-errors-item',
|
|
278
310
|
},
|
|
279
311
|
{
|
|
280
312
|
id: 20,
|
|
@@ -283,6 +315,7 @@ const hostItemsFunc = (
|
|
|
283
315
|
measurement: localization.transmitWindowErrors,
|
|
284
316
|
units: localization.num,
|
|
285
317
|
nameEn: 'transmit window errors',
|
|
318
|
+
testId: 'counters-table-transmit-window-errors-item',
|
|
286
319
|
},
|
|
287
320
|
]
|
|
288
321
|
const disk: UI_I_AdvancedCounterItem[] = [
|
|
@@ -293,6 +326,7 @@ const hostItemsFunc = (
|
|
|
293
326
|
measurement: localization.numberReadAveraged,
|
|
294
327
|
units: localization.num,
|
|
295
328
|
nameEn: 'average read requests per second',
|
|
329
|
+
testId: 'counters-table-average-read-requests-per-second-item',
|
|
296
330
|
},
|
|
297
331
|
{
|
|
298
332
|
id: 1,
|
|
@@ -301,6 +335,7 @@ const hostItemsFunc = (
|
|
|
301
335
|
measurement: localization.numberWriteAveraged,
|
|
302
336
|
units: localization.num,
|
|
303
337
|
nameEn: 'average write requests per second',
|
|
338
|
+
testId: 'counters-table-average-write-requests-per-second-item',
|
|
304
339
|
},
|
|
305
340
|
{
|
|
306
341
|
id: 2,
|
|
@@ -309,6 +344,7 @@ const hostItemsFunc = (
|
|
|
309
344
|
measurement: localization.numberRead,
|
|
310
345
|
units: localization.num,
|
|
311
346
|
nameEn: 'read requests',
|
|
347
|
+
testId: 'counters-table-read-requests-item',
|
|
312
348
|
},
|
|
313
349
|
{
|
|
314
350
|
id: 3,
|
|
@@ -317,6 +353,7 @@ const hostItemsFunc = (
|
|
|
317
353
|
measurement: localization.numberWrite,
|
|
318
354
|
units: localization.num,
|
|
319
355
|
nameEn: 'write requests',
|
|
356
|
+
testId: 'counters-table-write-requests-item',
|
|
320
357
|
},
|
|
321
358
|
{
|
|
322
359
|
id: 4,
|
|
@@ -325,6 +362,7 @@ const hostItemsFunc = (
|
|
|
325
362
|
measurement: localization.maxQueueDepth,
|
|
326
363
|
units: localization.num,
|
|
327
364
|
nameEn: 'maximum queue depth',
|
|
365
|
+
testId: 'counters-table-maximum-queue-depth-item',
|
|
328
366
|
},
|
|
329
367
|
{
|
|
330
368
|
id: 5,
|
|
@@ -333,6 +371,7 @@ const hostItemsFunc = (
|
|
|
333
371
|
measurement: localization.totalReadLatency,
|
|
334
372
|
units: localization.ms,
|
|
335
373
|
nameEn: 'read latency',
|
|
374
|
+
testId: 'counters-table-read-latency-item',
|
|
336
375
|
},
|
|
337
376
|
{
|
|
338
377
|
id: 6,
|
|
@@ -342,6 +381,7 @@ const hostItemsFunc = (
|
|
|
342
381
|
measurement: localization.totalWriteLatency,
|
|
343
382
|
units: localization.ms,
|
|
344
383
|
nameEn: 'write latency',
|
|
384
|
+
testId: 'counters-table-write-latency-item',
|
|
345
385
|
},
|
|
346
386
|
{
|
|
347
387
|
id: 7,
|
|
@@ -350,6 +390,7 @@ const hostItemsFunc = (
|
|
|
350
390
|
measurement: localization.read,
|
|
351
391
|
units: localization.kBps,
|
|
352
392
|
nameEn: 'read rate',
|
|
393
|
+
testId: 'counters-table-read-rate-item',
|
|
353
394
|
},
|
|
354
395
|
{
|
|
355
396
|
id: 8,
|
|
@@ -358,6 +399,7 @@ const hostItemsFunc = (
|
|
|
358
399
|
measurement: localization.write,
|
|
359
400
|
units: localization.kBps,
|
|
360
401
|
nameEn: 'write rate',
|
|
402
|
+
testId: 'counters-table-write-rate-item',
|
|
361
403
|
},
|
|
362
404
|
{
|
|
363
405
|
id: 9,
|
|
@@ -366,6 +408,7 @@ const hostItemsFunc = (
|
|
|
366
408
|
measurement: localization.commandsAveraged,
|
|
367
409
|
units: localization.num,
|
|
368
410
|
nameEn: 'average commands issued per second',
|
|
411
|
+
testId: 'counters-table-average-commands-issued-per-second-item',
|
|
369
412
|
},
|
|
370
413
|
{
|
|
371
414
|
id: 10,
|
|
@@ -374,6 +417,7 @@ const hostItemsFunc = (
|
|
|
374
417
|
measurement: localization.commands,
|
|
375
418
|
units: localization.num,
|
|
376
419
|
nameEn: 'commands issued',
|
|
420
|
+
testId: 'counters-table-commands-issued-item',
|
|
377
421
|
},
|
|
378
422
|
{
|
|
379
423
|
id: 11,
|
|
@@ -382,6 +426,7 @@ const hostItemsFunc = (
|
|
|
382
426
|
measurement: localization.queueLatency,
|
|
383
427
|
units: localization.ms,
|
|
384
428
|
nameEn: 'queue command latency',
|
|
429
|
+
testId: 'counters-table-queue-command-latency-item',
|
|
385
430
|
},
|
|
386
431
|
{
|
|
387
432
|
id: 12,
|
|
@@ -390,6 +435,7 @@ const hostItemsFunc = (
|
|
|
390
435
|
measurement: localization.totalLatency,
|
|
391
436
|
units: localization.ms,
|
|
392
437
|
nameEn: 'command latency',
|
|
438
|
+
testId: 'counters-table-command-latency-item',
|
|
393
439
|
},
|
|
394
440
|
{
|
|
395
441
|
id: 13,
|
|
@@ -398,6 +444,7 @@ const hostItemsFunc = (
|
|
|
398
444
|
measurement: localization.maxTotalLatency,
|
|
399
445
|
units: localization.ms,
|
|
400
446
|
nameEn: 'highest latency',
|
|
447
|
+
testId: 'counters-table-highest-latency-item',
|
|
401
448
|
},
|
|
402
449
|
{
|
|
403
450
|
id: 14,
|
|
@@ -406,6 +453,7 @@ const hostItemsFunc = (
|
|
|
406
453
|
measurement: localization.usage,
|
|
407
454
|
units: localization.perc,
|
|
408
455
|
nameEn: 'usage',
|
|
456
|
+
testId: 'counters-table-usage-item',
|
|
409
457
|
},
|
|
410
458
|
]
|
|
411
459
|
|
|
@@ -431,6 +479,7 @@ const vmItemsFunc = (
|
|
|
431
479
|
measurement: localization.read,
|
|
432
480
|
units: localization.bytes,
|
|
433
481
|
nameEn: 'read bytes',
|
|
482
|
+
testId: 'counters-table-read-bytes-item',
|
|
434
483
|
},
|
|
435
484
|
{
|
|
436
485
|
id: 1,
|
|
@@ -439,6 +488,7 @@ const vmItemsFunc = (
|
|
|
439
488
|
measurement: localization.write,
|
|
440
489
|
units: localization.bytes,
|
|
441
490
|
nameEn: 'write bytes',
|
|
491
|
+
testId: 'counters-table-write-bytes-item',
|
|
442
492
|
},
|
|
443
493
|
{
|
|
444
494
|
id: 2,
|
|
@@ -447,6 +497,7 @@ const vmItemsFunc = (
|
|
|
447
497
|
measurement: localization.usageInNum,
|
|
448
498
|
units: localization.num,
|
|
449
499
|
nameEn: 'disk devices shares',
|
|
500
|
+
testId: 'counters-table-disk-devices-shares-item',
|
|
450
501
|
},
|
|
451
502
|
{
|
|
452
503
|
id: 3,
|
|
@@ -455,6 +506,7 @@ const vmItemsFunc = (
|
|
|
455
506
|
measurement: localization.usageInNum,
|
|
456
507
|
units: localization.num,
|
|
457
508
|
nameEn: 'disk devices limit iops',
|
|
509
|
+
testId: 'counters-table-disk-devices-limit-iops-item',
|
|
458
510
|
},
|
|
459
511
|
{
|
|
460
512
|
id: 4,
|
|
@@ -463,6 +515,7 @@ const vmItemsFunc = (
|
|
|
463
515
|
measurement: localization.usageInKb,
|
|
464
516
|
units: localization.kb,
|
|
465
517
|
nameEn: 'disk devices size',
|
|
518
|
+
testId: 'counters-table-disk-devices-size-item',
|
|
466
519
|
},
|
|
467
520
|
]
|
|
468
521
|
const network: UI_I_AdvancedCounterItem[] = [
|
|
@@ -473,6 +526,7 @@ const vmItemsFunc = (
|
|
|
473
526
|
measurement: localization.usageInKb,
|
|
474
527
|
units: localization.kb,
|
|
475
528
|
nameEn: 'packets received',
|
|
529
|
+
testId: 'counters-table-packets-received-item',
|
|
476
530
|
},
|
|
477
531
|
{
|
|
478
532
|
id: 1,
|
|
@@ -481,6 +535,7 @@ const vmItemsFunc = (
|
|
|
481
535
|
measurement: localization.usageInKb,
|
|
482
536
|
units: localization.kb,
|
|
483
537
|
nameEn: 'packets transmitted',
|
|
538
|
+
testId: 'counters-table-packets-transmitted-item',
|
|
484
539
|
},
|
|
485
540
|
]
|
|
486
541
|
const cpu: UI_I_AdvancedCounterItem[] = [
|
|
@@ -491,6 +546,7 @@ const vmItemsFunc = (
|
|
|
491
546
|
measurement: localization.usageInMHz,
|
|
492
547
|
units: localization.mHz,
|
|
493
548
|
nameEn: 'used mhz',
|
|
549
|
+
testId: 'counters-table-used-mhz-item',
|
|
494
550
|
},
|
|
495
551
|
{
|
|
496
552
|
id: 1,
|
|
@@ -499,6 +555,7 @@ const vmItemsFunc = (
|
|
|
499
555
|
measurement: localization.usageInMHz,
|
|
500
556
|
units: localization.mHz,
|
|
501
557
|
nameEn: 'provisioned mhz',
|
|
558
|
+
testId: 'counters-table-provisioned-mhz-item',
|
|
502
559
|
},
|
|
503
560
|
{
|
|
504
561
|
id: 2,
|
|
@@ -507,6 +564,7 @@ const vmItemsFunc = (
|
|
|
507
564
|
measurement: localization.usageInNum,
|
|
508
565
|
units: localization.num,
|
|
509
566
|
nameEn: 'current vcpus',
|
|
567
|
+
testId: 'counters-table-current-vcpus-item',
|
|
510
568
|
},
|
|
511
569
|
{
|
|
512
570
|
id: 3,
|
|
@@ -515,6 +573,7 @@ const vmItemsFunc = (
|
|
|
515
573
|
measurement: localization.countCoresPerSocket,
|
|
516
574
|
units: localization.num,
|
|
517
575
|
nameEn: 'core per socket',
|
|
576
|
+
testId: 'counters-table-core-per-socket-item',
|
|
518
577
|
},
|
|
519
578
|
{
|
|
520
579
|
id: 4,
|
|
@@ -523,6 +582,7 @@ const vmItemsFunc = (
|
|
|
523
582
|
measurement: localization.usageInMHz,
|
|
524
583
|
units: localization.mHz,
|
|
525
584
|
nameEn: 'limit mhz',
|
|
585
|
+
testId: 'counters-table-limit-mhz-item',
|
|
526
586
|
},
|
|
527
587
|
{
|
|
528
588
|
id: 5,
|
|
@@ -531,6 +591,7 @@ const vmItemsFunc = (
|
|
|
531
591
|
measurement: localization.usagePerc,
|
|
532
592
|
units: '%',
|
|
533
593
|
nameEn: 'usage',
|
|
594
|
+
testId: 'counters-table-usage-perc-item',
|
|
534
595
|
},
|
|
535
596
|
]
|
|
536
597
|
const memory: UI_I_AdvancedCounterItem[] = [
|
|
@@ -541,6 +602,7 @@ const vmItemsFunc = (
|
|
|
541
602
|
measurement: localization.usageInMb,
|
|
542
603
|
units: localization.mb,
|
|
543
604
|
nameEn: 'memory limit mb',
|
|
605
|
+
testId: 'counters-table-memory-limit-mb-item',
|
|
544
606
|
},
|
|
545
607
|
{
|
|
546
608
|
id: 1,
|
|
@@ -549,6 +611,7 @@ const vmItemsFunc = (
|
|
|
549
611
|
measurement: localization.usageInMb,
|
|
550
612
|
units: localization.mb,
|
|
551
613
|
nameEn: 'memory size mb',
|
|
614
|
+
testId: 'counters-table-memory-size-mb-item',
|
|
552
615
|
},
|
|
553
616
|
{
|
|
554
617
|
id: 2,
|
|
@@ -557,6 +620,7 @@ const vmItemsFunc = (
|
|
|
557
620
|
measurement: localization.usageInMb,
|
|
558
621
|
units: localization.mb,
|
|
559
622
|
nameEn: 'memory reservation mb',
|
|
623
|
+
testId: 'counters-table-memory-reservation-mb-item',
|
|
560
624
|
},
|
|
561
625
|
{
|
|
562
626
|
id: 3,
|
|
@@ -565,6 +629,7 @@ const vmItemsFunc = (
|
|
|
565
629
|
measurement: localization.usageInNum,
|
|
566
630
|
units: localization.num,
|
|
567
631
|
nameEn: 'memory dram read bandwidth',
|
|
632
|
+
testId: 'counters-table-memory-dram-read-bandwidth-item',
|
|
568
633
|
},
|
|
569
634
|
{
|
|
570
635
|
id: 4,
|
|
@@ -573,6 +638,7 @@ const vmItemsFunc = (
|
|
|
573
638
|
measurement: localization.usageInMb,
|
|
574
639
|
units: localization.mb,
|
|
575
640
|
nameEn: 'memory provisioned mb',
|
|
641
|
+
testId: 'counters-table-memory-provisioned-mb-item',
|
|
576
642
|
},
|
|
577
643
|
{
|
|
578
644
|
id: 5,
|
|
@@ -581,6 +647,7 @@ const vmItemsFunc = (
|
|
|
581
647
|
measurement: localization.usageInNum,
|
|
582
648
|
units: localization.num,
|
|
583
649
|
nameEn: 'memory pmem read bandwidth',
|
|
650
|
+
testId: 'counters-table-memory-pmem-read-bandwidth-item',
|
|
584
651
|
},
|
|
585
652
|
{
|
|
586
653
|
id: 6,
|
|
@@ -589,6 +656,7 @@ const vmItemsFunc = (
|
|
|
589
656
|
measurement: localization.usageInMb,
|
|
590
657
|
units: localization.mb,
|
|
591
658
|
nameEn: 'memory used mb',
|
|
659
|
+
testId: 'counters-table-memory-used-mb-item',
|
|
592
660
|
},
|
|
593
661
|
{
|
|
594
662
|
id: 7,
|
|
@@ -597,6 +665,7 @@ const vmItemsFunc = (
|
|
|
597
665
|
measurement: localization.usageInMb,
|
|
598
666
|
units: localization.mb,
|
|
599
667
|
nameEn: 'memory resident set size mb',
|
|
668
|
+
testId: 'counters-table-memory-resident-set-size-mb-item',
|
|
600
669
|
},
|
|
601
670
|
]
|
|
602
671
|
const datastore: UI_I_AdvancedCounterItem[] = [
|
|
@@ -607,6 +676,7 @@ const vmItemsFunc = (
|
|
|
607
676
|
measurement: localization.usageInMb,
|
|
608
677
|
units: localization.mb,
|
|
609
678
|
nameEn: 'storage allocated space mb',
|
|
679
|
+
testId: 'counters-table-storage-allocated-space-mb-item',
|
|
610
680
|
},
|
|
611
681
|
{
|
|
612
682
|
id: 1,
|
|
@@ -615,6 +685,7 @@ const vmItemsFunc = (
|
|
|
615
685
|
measurement: localization.usageInMb,
|
|
616
686
|
units: localization.mb,
|
|
617
687
|
nameEn: 'storage used space mb',
|
|
688
|
+
testId: 'counters-table-storage-used-space-mb-item',
|
|
618
689
|
},
|
|
619
690
|
{
|
|
620
691
|
id: 2,
|
|
@@ -623,6 +694,7 @@ const vmItemsFunc = (
|
|
|
623
694
|
measurement: localization.usageInMb,
|
|
624
695
|
units: localization.mb,
|
|
625
696
|
nameEn: 'storage provisioned space mb',
|
|
697
|
+
testId: 'counters-table-storage-provisioned-space-mb-item',
|
|
626
698
|
},
|
|
627
699
|
]
|
|
628
700
|
|
|
@@ -19,7 +19,9 @@ const getItems = (
|
|
|
19
19
|
return [[localization.targetObjects, true, '140px', objectTableKey[0]]]
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export const columnKeys = (
|
|
22
|
+
export const columnKeys = (
|
|
23
|
+
localization: UI_I_Localization
|
|
24
|
+
): UI_I_ColumnKey[] => {
|
|
23
25
|
const result: UI_I_ColumnKey[] = []
|
|
24
26
|
getItems(localization).forEach((item, i) => {
|
|
25
27
|
const col = `col${i + 1}`
|
|
@@ -47,6 +49,7 @@ export const bodyItems = (data: UI_I_ObjectItem[]): UI_I_BodyItem[][] => {
|
|
|
47
49
|
key: 'col1',
|
|
48
50
|
text: object[objectTableKey[0]],
|
|
49
51
|
id: key,
|
|
52
|
+
testId: `object-item-${key}`,
|
|
50
53
|
},
|
|
51
54
|
])
|
|
52
55
|
})
|
|
@@ -12,60 +12,73 @@ export const metricsFunc = (
|
|
|
12
12
|
{
|
|
13
13
|
text: localization.cpu,
|
|
14
14
|
value: 'cpu',
|
|
15
|
+
testId: 'metric-item-cpu-button',
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
text: localization.disk,
|
|
18
19
|
value: 'disk',
|
|
20
|
+
testId: 'metric-item-disk-button',
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
text: localization.memory,
|
|
22
24
|
value: 'memory',
|
|
25
|
+
testId: 'metric-item-memory-button',
|
|
23
26
|
},
|
|
24
27
|
{
|
|
25
28
|
text: localization.network,
|
|
26
29
|
value: 'network',
|
|
30
|
+
testId: 'metric-item-network-button',
|
|
27
31
|
},
|
|
28
32
|
],
|
|
29
33
|
cluster: [
|
|
30
34
|
{
|
|
31
35
|
text: localization.cpu,
|
|
32
36
|
value: 'cpu',
|
|
37
|
+
testId: 'metric-item-cpu-button',
|
|
33
38
|
},
|
|
34
39
|
{
|
|
35
40
|
text: localization.disk,
|
|
36
41
|
value: 'disk',
|
|
42
|
+
testId: 'metric-item-disk-button',
|
|
37
43
|
},
|
|
38
44
|
{
|
|
39
45
|
text: localization.memory,
|
|
40
46
|
value: 'memory',
|
|
47
|
+
testId: 'metric-item-memory-button',
|
|
41
48
|
},
|
|
42
49
|
{
|
|
43
50
|
text: localization.network,
|
|
44
51
|
value: 'network',
|
|
52
|
+
testId: 'metric-item-network-button',
|
|
45
53
|
},
|
|
46
54
|
],
|
|
47
55
|
datacenter: [
|
|
48
56
|
{
|
|
49
57
|
text: localization.cpu,
|
|
50
58
|
value: 'cpu',
|
|
59
|
+
testId: 'metric-item-cpu-button',
|
|
51
60
|
},
|
|
52
61
|
{
|
|
53
62
|
text: localization.disk,
|
|
54
63
|
value: 'disk',
|
|
64
|
+
testId: 'metric-item-disk-button',
|
|
55
65
|
},
|
|
56
66
|
{
|
|
57
67
|
text: localization.memory,
|
|
58
68
|
value: 'memory',
|
|
69
|
+
testId: 'metric-item-memory-button',
|
|
59
70
|
},
|
|
60
71
|
{
|
|
61
72
|
text: localization.network,
|
|
62
73
|
value: 'network',
|
|
74
|
+
testId: 'metric-item-network-button',
|
|
63
75
|
},
|
|
64
76
|
],
|
|
65
77
|
host: [
|
|
66
78
|
{
|
|
67
79
|
text: localization.cpu,
|
|
68
80
|
value: 'cpu',
|
|
81
|
+
testId: 'metric-item-cpu-button',
|
|
69
82
|
},
|
|
70
83
|
// {
|
|
71
84
|
// text: currentRegister(localization.clusterServices, 'first'),
|
|
@@ -80,14 +93,17 @@ export const metricsFunc = (
|
|
|
80
93
|
{
|
|
81
94
|
text: localization.disk,
|
|
82
95
|
value: 'disk',
|
|
96
|
+
testId: 'metric-item-disk-button',
|
|
83
97
|
},
|
|
84
98
|
{
|
|
85
99
|
text: localization.memory,
|
|
86
100
|
value: 'memory',
|
|
101
|
+
testId: 'metric-item-memory-button',
|
|
87
102
|
},
|
|
88
103
|
{
|
|
89
104
|
text: localization.network,
|
|
90
105
|
value: 'network',
|
|
106
|
+
testId: 'metric-item-network-button',
|
|
91
107
|
},
|
|
92
108
|
// {
|
|
93
109
|
// text: localization.power,
|
|
@@ -119,22 +135,27 @@ export const metricsFunc = (
|
|
|
119
135
|
{
|
|
120
136
|
text: localization.disk,
|
|
121
137
|
value: 'disk',
|
|
138
|
+
testId: 'metric-item-disk-button',
|
|
122
139
|
},
|
|
123
140
|
{
|
|
124
141
|
text: localization.network,
|
|
125
142
|
value: 'network',
|
|
143
|
+
testId: 'metric-item-network-button',
|
|
126
144
|
},
|
|
127
145
|
{
|
|
128
146
|
text: localization.cpu,
|
|
129
147
|
value: 'cpu',
|
|
148
|
+
testId: 'metric-item-cpu-button',
|
|
130
149
|
},
|
|
131
150
|
{
|
|
132
151
|
text: localization.memory,
|
|
133
152
|
value: 'memory',
|
|
153
|
+
testId: 'metric-item-memory-button',
|
|
134
154
|
},
|
|
135
155
|
{
|
|
136
156
|
text: localization.datastore,
|
|
137
157
|
value: 'datastore',
|
|
158
|
+
testId: 'metric-item-datastore-button',
|
|
138
159
|
},
|
|
139
160
|
// {
|
|
140
161
|
// text: localization.power,
|