From dc980e269da3dda1411859a16c3e7771a04b56d5 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Thu, 13 Aug 2020 12:27:16 +0200 Subject: [PATCH] Fixed some missing metrics --- .../groovy/biz/nellemann/hmci/ManagedSystem.groovy | 2 ++ .../hmci/pojo/VirtualFiberChannelAdapter.groovy | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/groovy/biz/nellemann/hmci/ManagedSystem.groovy b/src/main/groovy/biz/nellemann/hmci/ManagedSystem.groovy index 8ab4eb8..7a4055f 100644 --- a/src/main/groovy/biz/nellemann/hmci/ManagedSystem.groovy +++ b/src/main/groovy/biz/nellemann/hmci/ManagedSystem.groovy @@ -124,6 +124,7 @@ class ManagedSystem extends MetaSystem { HashMap fieldsMap = [ sentBytes: it.sentBytes.first(), + receivedBytes: it.receivedBytes.first(), transferredBytes: it.transferredBytes.first(), ] map.put("fields", fieldsMap) @@ -156,6 +157,7 @@ class ManagedSystem extends MetaSystem { HashMap fieldsMap = [ writeBytes: it.writeBytes.first(), readBytes: it.readBytes.first(), + transmittedBytes: it.transmittedBytes.first(), ] map.put("fields", fieldsMap) log.debug(fieldsMap.toString()) diff --git a/src/main/groovy/biz/nellemann/hmci/pojo/VirtualFiberChannelAdapter.groovy b/src/main/groovy/biz/nellemann/hmci/pojo/VirtualFiberChannelAdapter.groovy index bc41dd0..abe332c 100644 --- a/src/main/groovy/biz/nellemann/hmci/pojo/VirtualFiberChannelAdapter.groovy +++ b/src/main/groovy/biz/nellemann/hmci/pojo/VirtualFiberChannelAdapter.groovy @@ -10,11 +10,11 @@ class VirtualFiberChannelAdapter { String physicalLocation String physicalPortWWPN Integer viosId - BigDecimal numOfReads - BigDecimal numOfWrites - BigDecimal readBytes - BigDecimal writeBytes - BigDecimal runningSpeed - BigDecimal transmittedBytes + List numOfReads + List numOfWrites + List readBytes + List writeBytes + List runningSpeed + List transmittedBytes }