bfg-common 1.4.192 → 1.4.194

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.
@@ -2058,7 +2058,7 @@
2058
2058
  "confirmRemoveVmFromInventory": "Remove the selected virtual machine from the inventory?",
2059
2059
  "integration": "Інтэграцыя",
2060
2060
  "zabbix": "Zabbix",
2061
- "loginZabbixAccount": "Увайдзіце на сервер Zabbix",
2061
+ "loginZabbixAccount": "Увайдзіце на Сервер Zabbix",
2062
2062
  "newView": "Новы выгляд",
2063
2063
  "viewDesc": "Выберыце прагляд, які будзе выкарыстоўвацца кліентам {trademark}",
2064
2064
  "kindValidationDescription": "Няправільны тып запісу",
@@ -2534,7 +2534,22 @@
2534
2534
  "timeRangeShouldNotBeMoreThanMonth": "Указаны дыяпазон часу несапраўдны. Яно не павінна быць больш за 1 месяца.",
2535
2535
  "overview": "Агляд",
2536
2536
  "spaceUtilization": "Выкарыстанне прасторы",
2537
- "changeCustomInterval": "Зменіце карыстацкі інтэрвал"
2537
+ "changeCustomInterval": "Зменіце карыстацкі інтэрвал",
2538
+ "measuresInPackets": "меры ў пакетах",
2539
+ "packets": "пакет",
2540
+ "bytesReceived": "атрыманыя байты",
2541
+ "amountReceivedBytes": "колькасць атрыманых байт",
2542
+ "measuresInKb": "вымярэння ў кілабайтах",
2543
+ "bytesTransmitted": "перадаваныя байты",
2544
+ "amountTransmittedBytes": "колькасць перададзеных байт",
2545
+ "receivedPacketsErrors": "памылкі ў атрыманых пакетах",
2546
+ "amountReceivedPacketsError": "колькасць атрыманых пакетаў з памылкай",
2547
+ "transmittedPacketsErrors": "памылкі ў перададзеных пакетах",
2548
+ "amountTransmittedPacketsError": "колькасць перададзеных пакетаў з памылкай",
2549
+ "receivedDroppedPackets": "прынятыя адкінутыя пакеты",
2550
+ "amountReceivedDroppedPackets": "колькасць прынятых адкінутых пакетаў",
2551
+ "transmittedDroppedPackets": "перададзеныя адкінутыя пакеты",
2552
+ "amountTransmittedDroppedPackets": "колькасць перададзеных адкінутых пакетаў"
2538
2553
  },
2539
2554
  "inventoryTabs": {
2540
2555
  "summary": "Рэзюмэ",
@@ -2603,5 +2618,9 @@
2603
2618
  "tasks": "З задачамі",
2604
2619
  "frontReqs": "З рэгулярнымі запытамі",
2605
2620
  "related": "Роднасныя"
2621
+ },
2622
+ "zabbix": {
2623
+ "zabbixVersions": "Zabbix версіі",
2624
+ "zabbixVersionsDesc": "Калі ласка, абярыце версію сервера Zabbix, на якой вы хочаце ўвайсці: 5.0 або 6.0."
2606
2625
  }
2607
2626
  }
@@ -2061,7 +2061,7 @@
2061
2061
  "confirmRemoveVmFromInventory": "Remove the selected virtual machine from the inventory?",
2062
2062
  "integration": "Integration",
2063
2063
  "zabbix": "Zabbix",
2064
- "loginZabbixAccount": "Login to Zabbix server",
2064
+ "loginZabbixAccount": "Login to Zabbix Server",
2065
2065
  "newView": "New view",
2066
2066
  "viewDesc": "Select view to be used by {trademark} Client",
2067
2067
  "kindValidationDescription": "Invalid record kind",
@@ -2538,7 +2538,22 @@
2538
2538
  "timeRangeShouldNotBeMoreThanMonth": "The specified time range is not valid. It should not be more than 1 month.",
2539
2539
  "overview": "Overview",
2540
2540
  "spaceUtilization": "Space Utilization",
2541
- "changeCustomInterval": "Change custom interval"
2541
+ "changeCustomInterval": "Change custom interval",
2542
+ "measuresInPackets": "measures in packets",
2543
+ "packets": "packets",
2544
+ "bytesReceived": "bytes received",
2545
+ "amountReceivedBytes": "amount of received bytes",
2546
+ "measuresInKb": "measures in KB",
2547
+ "bytesTransmitted": "bytes transmitted",
2548
+ "amountTransmittedBytes": "amount of transmitted bytes",
2549
+ "receivedPacketsErrors": "received packets errors",
2550
+ "amountReceivedPacketsError": "amount of received packets with error",
2551
+ "transmittedPacketsErrors": "transmitted packets errors",
2552
+ "amountTransmittedPacketsError": "amount of transmitted packets with error",
2553
+ "receivedDroppedPackets": "received dropped packets",
2554
+ "amountReceivedDroppedPackets": "amount of received dropped packets",
2555
+ "transmittedDroppedPackets": "transmitted dropped packets",
2556
+ "amountTransmittedDroppedPackets": "amount of transmitted dropped packets"
2542
2557
  },
2543
2558
  "inventoryTabs": {
2544
2559
  "summary": "Summary",
@@ -2607,5 +2622,9 @@
2607
2622
  "tasks": "With Tasks",
2608
2623
  "frontReqs": "With regular requests",
2609
2624
  "related": "Related"
2625
+ },
2626
+ "zabbix": {
2627
+ "zabbixVersions": "Zabbix Versions",
2628
+ "zabbixVersionsDesc": "Please choose the Zabbix server version you would like to log in to: 5.0 or 6.0."
2610
2629
  }
2611
2630
  }
@@ -2061,7 +2061,7 @@
2061
2061
  "confirmRemoveVmFromInventory": "Հեռացնե՞լ ընտրված վիրտուալ մեքենան գույքագրումից:",
2062
2062
  "integration": "Ինտեգրում",
2063
2063
  "zabbix": "Zabbix",
2064
- "loginZabbixAccount": "Մուտք գործեք Zabbix սերվեր",
2064
+ "loginZabbixAccount": "Մուտք գործեք Zabbix Սերվեր",
2065
2065
  "newView": "Նոր տեսարան",
2066
2066
  "viewDesc": "Ընտրեք տեսքը, որը կօգտագործվի {trademark} Client-ի կողմից",
2067
2067
  "kindValidationDescription": "Գրառման անվավեր տեսակ",
@@ -2538,7 +2538,22 @@
2538
2538
  "timeRangeShouldNotBeMoreThanMonth": "Նշված ժամանակային միջակայքը վավեր չէ: Այն չպետք է լինի 1 ամսից ավելի։",
2539
2539
  "overview": "Ակնարկ",
2540
2540
  "spaceUtilization": "Օգտագործելով տարածություն",
2541
- "changeCustomInterval": "Փոխեք օգտագործողի միջակայքը"
2541
+ "changeCustomInterval": "Փոխեք օգտագործողի միջակայքը",
2542
+ "measuresInPackets": "միջոցառումներ փաթեթներում",
2543
+ "packets": "փաթեթներ",
2544
+ "bytesReceived": "ստացված բայթ",
2545
+ "amountReceivedBytes": "ստացված բայթերի քանակը",
2546
+ "measuresInKb": "չափումներ կիլոբայթով",
2547
+ "bytesTransmitted": "փոխանցվող բայթ",
2548
+ "amountTransmittedBytes": "փոխանցված բայթերի քանակը",
2549
+ "receivedPacketsErrors": "ստացված փաթեթների սխալները",
2550
+ "amountReceivedPacketsError": "ստացված փաթեթների քանակը սխալով",
2551
+ "transmittedPacketsErrors": "սխալները փոխանցված փաթեթներում",
2552
+ "amountTransmittedPacketsError": "սխալ փոխանցված փաթեթների քանակը",
2553
+ "receivedDroppedPackets": "ընդունված մերժված փաթեթներ",
2554
+ "amountReceivedDroppedPackets": "ընդունված մերժված փաթեթների քանակը",
2555
+ "transmittedDroppedPackets": "փոխանցված դեն նետված փաթեթներ",
2556
+ "amountTransmittedDroppedPackets": "փոխանցված մերժված փաթեթների քանակը"
2542
2557
  },
2543
2558
  "inventoryTabs": {
2544
2559
  "summary": "Ամփոփում",
@@ -2607,5 +2622,9 @@
2607
2622
  "tasks": "Առաջադրանքներով",
2608
2623
  "frontReqs": "Կանոնավոր խնդրանքներով",
2609
2624
  "related": "Առնչվող"
2625
+ },
2626
+ "zabbix": {
2627
+ "zabbixVersions": "Zabbix տարբերակները",
2628
+ "zabbixVersionsDesc": "Խնդրում ենք ընտրել Zabbix սերվերի տարբերակը, որում ցանկանում եք մուտք գործել՝ 5.0 կամ 6.0:"
2610
2629
  }
2611
2630
  }
@@ -2060,7 +2060,7 @@
2060
2060
  "confirmRemoveVmFromInventory": "Таңдалған виртуалды машинаны түгендеуден жою керек пе?",
2061
2061
  "integration": "Интеграция",
2062
2062
  "zabbix": "Zabbix",
2063
- "loginZabbixAccount": "Zabbix серверіне кіріңіз",
2063
+ "loginZabbixAccount": "Zabbix Серверіне кіріңіз",
2064
2064
  "newView": "Жаңа көрініс",
2065
2065
  "viewDesc": "{trademark} Client пайдаланатын көріністі таңдаңыз",
2066
2066
  "kindValidationDescription": "Жарамсыз жазба түрі",
@@ -2537,7 +2537,22 @@
2537
2537
  "timeRangeShouldNotBeMoreThanMonth": "Көрсетілген уақыт аралығы жарамсыз. 1 айдан аспауы керек.",
2538
2538
  "overview": "Шолу",
2539
2539
  "spaceUtilization": "Кеңістікті пайдалану",
2540
- "changeCustomInterval": "Пайдаланушы аралығын өзгертіңіз"
2540
+ "changeCustomInterval": "Пайдаланушы аралығын өзгертіңіз",
2541
+ "measuresInPackets": "пакеттердегі шаралар",
2542
+ "packets": "пакеттер",
2543
+ "bytesReceived": "байттар алынды",
2544
+ "amountReceivedBytes": "алынған байт мөлшері",
2545
+ "measuresInKb": "КБ-дағы шаралар",
2546
+ "bytesTransmitted": "берілген байттар",
2547
+ "amountTransmittedBytes": "берілетін байт мөлшері",
2548
+ "receivedPacketsErrors": "алынған пакеттер қателері",
2549
+ "amountReceivedPacketsError": "қатемен алынған пакеттер саны",
2550
+ "transmittedPacketsErrors": "жіберілген пакеттер қателері",
2551
+ "amountTransmittedPacketsError": "қате жіберілген пакеттердің саны",
2552
+ "receivedDroppedPackets": "тасталған пакеттер алынды",
2553
+ "amountReceivedDroppedPackets": "түскен пакеттердің саны",
2554
+ "transmittedDroppedPackets": "жіберілген пакеттер",
2555
+ "amountTransmittedDroppedPackets": "жіберілген пакеттердің саны"
2541
2556
  },
2542
2557
  "inventoryTabs": {
2543
2558
  "summary": "Түйіндеме",
@@ -2606,5 +2621,9 @@
2606
2621
  "tasks": "Тапсырмалармен",
2607
2622
  "frontReqs": "Тұрақты сұраныстармен",
2608
2623
  "related": "Қатысты"
2624
+ },
2625
+ "zabbix": {
2626
+ "zabbixVersions": "Zabbix нұсқалары",
2627
+ "zabbixVersionsDesc": "Жүйеге кіргіңіз келетін Zabbix сервер нұсқасын таңдаңыз: 5.0 немесе 6.0."
2609
2628
  }
2610
2629
  }
@@ -2063,7 +2063,7 @@
2063
2063
  "confirmRemoveVmFromInventory": "Удалить выбранную виртуальную машину из инвентаря?",
2064
2064
  "integration": "Интеграция",
2065
2065
  "zabbix": "Zabbix",
2066
- "loginZabbixAccount": "Вход на сервер Zabbix",
2066
+ "loginZabbixAccount": "Вход на Сервер Zabbix",
2067
2067
  "newView": "Новый вид",
2068
2068
  "viewDesc": "Выберите представление, которое будет использоваться клиентом {trademark}.",
2069
2069
  "kindValidationDescription": "Неверный тип записи",
@@ -2540,7 +2540,22 @@
2540
2540
  "timeRangeShouldNotBeMoreThanMonth": "Указанный диапазон времени недействителен. Он не должен быть больше 1 месяца.",
2541
2541
  "overview": "Обзор",
2542
2542
  "spaceUtilization": "Использование пространства",
2543
- "changeCustomInterval": "Измените пользовательский интервал"
2543
+ "changeCustomInterval": "Измените пользовательский интервал",
2544
+ "measuresInPackets": "меры в пакетах",
2545
+ "packets": "пакеты",
2546
+ "bytesReceived": "полученные байты",
2547
+ "amountReceivedBytes": "количество полученных байт",
2548
+ "measuresInKb": "измерения в килобайтах",
2549
+ "bytesTransmitted": "передаваемые байты",
2550
+ "amountTransmittedBytes": "количество переданных байт",
2551
+ "receivedPacketsErrors": "ошибки в полученных пакетах",
2552
+ "amountReceivedPacketsError": "количество полученных пакетов с ошибкой",
2553
+ "transmittedPacketsErrors": "ошибки в переданных пакетах",
2554
+ "amountTransmittedPacketsError": "количество переданных пакетов с ошибкой",
2555
+ "receivedDroppedPackets": "принятые отброшенные пакеты",
2556
+ "amountReceivedDroppedPackets": "количество принятых отброшенных пакетов",
2557
+ "transmittedDroppedPackets": "переданные отброшенные пакеты",
2558
+ "amountTransmittedDroppedPackets": "количество переданных отброшенных пакетов"
2544
2559
  },
2545
2560
  "inventoryTabs": {
2546
2561
  "summary": "Сводка",
@@ -2609,5 +2624,9 @@
2609
2624
  "tasks": "C Тасками",
2610
2625
  "frontReqs": "C регулярными запросамы",
2611
2626
  "related": "Связанный"
2627
+ },
2628
+ "zabbix": {
2629
+ "zabbixVersions": "Версии Забфикса",
2630
+ "zabbixVersionsDesc": "Пожалуйста, выберите версию сервера Zabbix, на которую вы хотите войти: 5.0 или 6.0."
2612
2631
  }
2613
2632
  }
@@ -2536,7 +2536,22 @@
2536
2536
  "timeRangeShouldNotBeMoreThanMonth": "指定的时间范围无效。它不应超过 1 个月。",
2537
2537
  "overview": "概述",
2538
2538
  "spaceUtilization": "空间利用",
2539
- "changeCustomInterval": "更改自定义间隔"
2539
+ "changeCustomInterval": "更改自定义间隔",
2540
+ "measuresInPackets": "数据包中的措施",
2541
+ "packets": "数据包",
2542
+ "bytesReceived": "已接收字节数",
2543
+ "amountReceivedBytes": "接收字节数",
2544
+ "measuresInKb": "单位:KB",
2545
+ "bytesTransmitted": "已传输的字节数",
2546
+ "amountTransmittedBytes": "传输的字节数",
2547
+ "receivedPacketsErrors": "接收数据包错误",
2548
+ "amountReceivedPacketsError": "接收的错误数据包数量",
2549
+ "transmittedPacketsErrors": "传输数据包错误",
2550
+ "amountTransmittedPacketsError": "传输的错误数据包数量",
2551
+ "receivedDroppedPackets": "接收到丢弃的数据包",
2552
+ "amountReceivedDroppedPackets": "收到的丢弃数据包数量",
2553
+ "transmittedDroppedPackets": "传输丢失的数据包",
2554
+ "amountTransmittedDroppedPackets": "传输的丢包数量"
2540
2555
  },
2541
2556
  "inventoryTabs": {
2542
2557
  "summary": "概括",
@@ -2605,5 +2620,9 @@
2605
2620
  "tasks": "有任务",
2606
2621
  "frontReqs": "定期提出要求",
2607
2622
  "related": "有关的"
2623
+ },
2624
+ "zabbix": {
2625
+ "zabbixVersions": "Zabbix 版本",
2626
+ "zabbixVersionsDesc": "请选择您要登录的Zabbix服务器版本:5.0或6.0。"
2608
2627
  }
2609
2628
  }
@@ -224,6 +224,7 @@
224
224
  .icon-vSphere-dsIsoImage,
225
225
  .icon-vSphere-dsFile,
226
226
  .vsphere-icon-dv-switch,
227
+ .vx-icon-import,
227
228
  .host-ui-icon-shutdown,
228
229
  .host-ui-icon-standby,
229
230
  .host-ui-icon-poweron,
@@ -272,9 +272,21 @@ const localSelectedObjects = ref<string>('')
272
272
 
273
273
  const currentFieldsByArray = (data: UI_I_AdvancedCounterItem[]): string => {
274
274
  const result: string[] = []
275
+
275
276
  data.forEach((item) => {
276
- result.push(item.nameEn)
277
+ if (props.type === 'vm' && selectedMetric.value === 'network') {
278
+ const currentFields = []
279
+ const objectArray = localSelectedObjects.value.split(', ')
280
+ if (objectArray.length) {
281
+ objectArray.forEach((item2) => {
282
+ currentFields.push(`${item.nameEn} ${item2}`)
283
+ })
284
+ } else currentFields.push(item.nameEn)
285
+
286
+ result.push(currentFields.join(', '))
287
+ } else result.push(item.nameEn)
277
288
  })
289
+
278
290
  return result.join(',')
279
291
  }
280
292
 
@@ -12,8 +12,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
12
12
 
13
13
  const hostItemsFunc = (
14
14
  chart: UI_T_ChartHost,
15
- localization: UI_I_Localization,
16
- totalCores: number
15
+ localization: UI_I_Localization
17
16
  ): UI_I_AdvancedCounterItem[] => {
18
17
  const cpu: UI_I_AdvancedCounterItem[] = [
19
18
  {
@@ -401,7 +400,8 @@ const hostItemsFunc = (
401
400
  {
402
401
  id: 8,
403
402
  name: localization.inventoryMonitor.writeRate,
404
- description: localization.inventoryMonitor.averageNumberKilobytesWrittenDisk,
403
+ description:
404
+ localization.inventoryMonitor.averageNumberKilobytesWrittenDisk,
405
405
  measurement: localization.common.write,
406
406
  units: localization.inventoryMonitor.kBps,
407
407
  nameEn: 'write rate',
@@ -428,7 +428,8 @@ const hostItemsFunc = (
428
428
  {
429
429
  id: 11,
430
430
  name: localization.inventoryMonitor.queueCommandLatency,
431
- description: localization.inventoryMonitor.averageAmountTimeSpentVMKernelQueue,
431
+ description:
432
+ localization.inventoryMonitor.averageAmountTimeSpentVMKernelQueue,
432
433
  measurement: localization.inventoryMonitor.queueLatency,
433
434
  units: localization.common.ms,
434
435
  nameEn: 'queue command latency',
@@ -529,8 +530,8 @@ const vmItemsFunc = (
529
530
  id: 0,
530
531
  name: localization.inventoryMonitor.packetsReceived,
531
532
  description: localization.inventoryMonitor.amountReceivedPackets,
532
- measurement: localization.inventoryMonitor.usageInKb,
533
- units: localization.common.kb,
533
+ measurement: localization.inventoryMonitor.measuresInPackets,
534
+ units: localization.inventoryMonitor.packets,
534
535
  nameEn: 'packets received',
535
536
  testId: 'counters-table-packets-received-item',
536
537
  },
@@ -538,11 +539,66 @@ const vmItemsFunc = (
538
539
  id: 1,
539
540
  name: localization.inventoryMonitor.packetsTransmitted,
540
541
  description: localization.inventoryMonitor.amountTransmittedPackets,
541
- measurement: localization.inventoryMonitor.usageInKb,
542
- units: localization.common.kb,
542
+ measurement: localization.inventoryMonitor.measuresInPackets,
543
+ units: localization.inventoryMonitor.packets,
543
544
  nameEn: 'packets transmitted',
544
545
  testId: 'counters-table-packets-transmitted-item',
545
546
  },
547
+ {
548
+ id: 2,
549
+ name: localization.inventoryMonitor.bytesReceived,
550
+ description: localization.inventoryMonitor.amountReceivedBytes,
551
+ measurement: localization.inventoryMonitor.measuresInKb,
552
+ units: localization.common.kb,
553
+ nameEn: 'bytes received',
554
+ testId: 'counters-table-bytes-received-item',
555
+ },
556
+ {
557
+ id: 3,
558
+ name: localization.inventoryMonitor.bytesTransmitted,
559
+ description: localization.inventoryMonitor.amountTransmittedBytes,
560
+ measurement: localization.inventoryMonitor.measuresInKb,
561
+ units: localization.common.kb,
562
+ nameEn: 'bytes transmitted',
563
+ testId: 'counters-table-bytes-transmitted-item',
564
+ },
565
+ {
566
+ id: 4,
567
+ name: localization.inventoryMonitor.receivedPacketsErrors,
568
+ description: localization.inventoryMonitor.amountReceivedPacketsError,
569
+ measurement: localization.inventoryMonitor.measuresInPackets,
570
+ units: localization.inventoryMonitor.packets,
571
+ nameEn: 'errors received',
572
+ testId: 'counters-table-errors-received-item',
573
+ },
574
+ {
575
+ id: 5,
576
+ name: localization.inventoryMonitor.transmittedPacketsErrors,
577
+ description: localization.inventoryMonitor.amountTransmittedPacketsError,
578
+ measurement: localization.inventoryMonitor.measuresInPackets,
579
+ units: localization.inventoryMonitor.packets,
580
+ nameEn: 'errors transmitted',
581
+ testId: 'counters-table-errors-transmitted-item',
582
+ },
583
+ {
584
+ id: 6,
585
+ name: localization.inventoryMonitor.receivedDroppedPackets,
586
+ description: localization.inventoryMonitor.amountReceivedDroppedPackets,
587
+ measurement: localization.inventoryMonitor.measuresInPackets,
588
+ units: localization.inventoryMonitor.packets,
589
+ nameEn: 'drop received',
590
+ testId: 'counters-table-drop-received-item',
591
+ },
592
+ {
593
+ id: 7,
594
+ name: localization.inventoryMonitor.transmittedDroppedPackets,
595
+ description:
596
+ localization.inventoryMonitor.amountTransmittedDroppedPackets,
597
+ measurement: localization.inventoryMonitor.measuresInPackets,
598
+ units: localization.inventoryMonitor.packets,
599
+ nameEn: 'drop transmitted',
600
+ testId: 'counters-table-drop-transmitted-item',
601
+ },
546
602
  ]
547
603
  const cpu: UI_I_AdvancedCounterItem[] = [
548
604
  {
@@ -696,7 +752,8 @@ const vmItemsFunc = (
696
752
  {
697
753
  id: 2,
698
754
  name: localization.inventoryMonitor.storageProvisionedSpaceMb,
699
- description: localization.inventoryMonitor.amountProvisionedStorageSpaceInMB,
755
+ description:
756
+ localization.inventoryMonitor.amountProvisionedStorageSpaceInMB,
700
757
  measurement: localization.inventoryMonitor.usageInMb,
701
758
  units: localization.common.mb,
702
759
  nameEn: 'storage provisioned space mb',
@@ -63,9 +63,15 @@ const emits = defineEmits<{
63
63
 
64
64
  const localization = computed<UI_I_Localization>(() => useLocal())
65
65
 
66
- const tableType = computed<UI_T_DataGridType>(() =>
67
- ['disk', 'network'].includes(props.chart) ? 'radio' : 'checkbox'
68
- )
66
+ const tableType = computed<UI_T_DataGridType>(() => {
67
+ let result = 'checkbox'
68
+
69
+ if (props.type === 'host') {
70
+ result = ['disk', 'network'].includes(props.chart) ? 'radio' : 'checkbox'
71
+ }
72
+
73
+ return result
74
+ })
69
75
 
70
76
  const selectedRow = ref<number[] | number>([])
71
77
  const pagination = ref<UI_I_Pagination>({
@@ -163,6 +169,8 @@ watch(
163
169
  newItems = [...newItems, ...props.currentItems]
164
170
 
165
171
  items = newItems
172
+ } else if (newValue[0] === 'vm' && newValue[1] === 'network') {
173
+ items = [...props.currentItems]
166
174
  }
167
175
 
168
176
  bodyItems.value = table.bodyItems(items)
@@ -175,18 +183,36 @@ watch(
175
183
  (newValue) => {
176
184
  const selectedItems: string[] = []
177
185
 
178
- if (['disk', 'network'].includes(props.chart)) {
186
+ if (props.type === 'host' && ['disk', 'network'].includes(props.chart)) {
179
187
  selectedItems.push(items[newValue]?.target_object)
188
+ } else if (props.type === 'vm' && ['network'].includes(props.chart)) {
189
+ newValue.forEach((key) => {
190
+ selectedItems.push(items[key].target_object)
191
+ })
180
192
  } else
181
193
  newValue.forEach((key) => {
182
194
  selectedItems.push(items[key].id)
183
195
  })
184
196
 
185
- const selectedNames =
197
+ let selectedNames = ''
198
+
199
+ if (
186
200
  items.length === newValue.length &&
187
201
  props.selectedMetricsKeys.length === props.totalMetricItems
188
- ? '*'
189
- : selectedItems.join(', ')
202
+ ) {
203
+ selectedNames = '*'
204
+
205
+ if (props.type === 'vm') selectedNames = 'total'
206
+ } else selectedNames = selectedItems.join(', ')
207
+
208
+ if (props.type === 'vm' && ['network'].includes(props.chart)) {
209
+ if (
210
+ selectedItems.includes('total') ||
211
+ (!selectedItems.includes('total') &&
212
+ items.length === newValue.length + 1)
213
+ )
214
+ selectedNames = 'total'
215
+ }
190
216
 
191
217
  emits('select-objects', selectedNames)
192
218
  },
@@ -35,6 +35,7 @@ export interface UI_I_Localization {
35
35
  scheduledTasks: UI_I_ArbitraryObject<string>
36
36
  license: UI_I_ArbitraryObject<string>
37
37
  events: UI_I_ArbitraryObject<string>
38
+ zabbix: UI_I_ArbitraryObject<string>
38
39
  }
39
40
  export interface UI_I_SendTaskParams {
40
41
  method: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.192",
4
+ "version": "1.4.194",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",