include vnic stats
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-09-29 14:09:39 +10:00
parent 6c7d447c56
commit 88c8109391
9 changed files with 346 additions and 132 deletions

View File

@@ -359,6 +359,26 @@ type ProcessorUnit struct {
Voltage string `xml:"voltage,attr,omitempty"`
}
// AdaptorVnicStats is a managed object representing statistics for a network adaptor
// Added by Nathan. Incomplete representation of all data available
type AdaptorVnicStats struct {
XMLName xml.Name `xml:"adaptorVnicStats"`
Dn string `xml:"dn,attr,omitempty"`
Rn string `xml:"rn,attr,omitempty"`
BytesRx uint64 `xml:"bytesRx,attr,omitempty"`
BytesRxDelta uint64 `xml:"bytesRxDelta,attr,omitempty"`
BytesTx uint64 `xml:"bytesTx,attr,omitempty"`
BytesTxDelta uint64 `xml:"bytesTxDelta,attr,omitempty"`
PacketsRx uint64 `xml:"packetsRx,attr,omitempty"`
PacketsRxDelta uint64 `xml:"packetsRxDelta,attr,omitempty"`
PacketsTx uint64 `xml:"packetsTx,attr,omitempty"`
PacketsTxDelta uint64 `xml:"packetsTxDelta,attr,omitempty"`
DroppedRx uint64 `xml:"droppedRx,attr,omitempty"`
DroppedTx uint64 `xml:"droppedTx,attr,omitempty"`
ErrorsRx uint64 `xml:"errorsRx,attr,omitempty"`
ErrorsTx uint64 `xml:"errorsTx,attr,omitempty"`
}
// AdaptorUnit is a managed object representing a network adaptor unit such as a
// card that has NIC and/or HBA, SCSI functionality.
type AdaptorUnit struct {