CounterData

Enum CounterData 

Source
pub enum CounterData {
Show 42 variants GenericInterface(GenericInterfaceCounters), EthernetInterface(EthernetInterfaceCounters), TokenRing(TokenRingCounters), Vg100Interface(Vg100InterfaceCounters), Vlan(VlanCounters), Ieee80211(Ieee80211Counters), LagPortStats(LagPortStats), InfiniBandCounters(InfiniBandCounters), OpticalSfpQsfp(OpticalSfpQsfp), Processor(ProcessorCounters), RadioUtilization(RadioUtilization), OpenFlowPort(OpenFlowPort), OpenFlowPortName(OpenFlowPortName), HostDescription(HostDescription), HostAdapters(HostAdapters), HostParent(HostParent), HostCpu(HostCpu), HostMemory(HostMemory), HostDiskIo(HostDiskIo), HostNetIo(HostNetIo), Mib2IpGroup(Mib2IpGroup), Mib2IcmpGroup(Mib2IcmpGroup), Mib2TcpGroup(Mib2TcpGroup), Mib2UdpGroup(Mib2UdpGroup), VirtualNode(VirtualNode), VirtualCpu(VirtualCpu), VirtualMemory(VirtualMemory), VirtualDiskIo(VirtualDiskIo), VirtualNetIo(VirtualNetIo), JvmRuntime(JvmRuntime), JvmStatistics(JvmStatistics), MemcacheCountersDeprecated(MemcacheCountersDeprecated), HttpCounters(HttpCounters), AppOperations(AppOperations), AppResources(AppResources), MemcacheCounters(MemcacheCounters), AppWorkers(AppWorkers), BroadcomDeviceBuffers(BroadcomDeviceBuffers), BroadcomPortBuffers(BroadcomPortBuffers), BroadcomTables(BroadcomTables), NvidiaGpu(NvidiaGpu), Unknown { format: DataFormat, data: Vec<u8>, },
}
Expand description

Counter data types

Variants§

§

GenericInterface(GenericInterfaceCounters)

Generic Interface Counters - Format (0,1)

§

EthernetInterface(EthernetInterfaceCounters)

Ethernet Interface Counters - Format (0,2)

§

TokenRing(TokenRingCounters)

Token Ring Counters - Format (0,3)

§

Vg100Interface(Vg100InterfaceCounters)

100BaseVG Counters - Format (0,4)

§

Vlan(VlanCounters)

VLAN Counters - Format (0,5)

§

Ieee80211(Ieee80211Counters)

IEEE 802.11 Counters - Format (0,6)

§

LagPortStats(LagPortStats)

LAG Port Statistics - Format (0,7)

§

InfiniBandCounters(InfiniBandCounters)

InfiniBand Counters - Format (0,9)

§

OpticalSfpQsfp(OpticalSfpQsfp)

Optical SFP/QSFP Counters - Format (0,10)

§

Processor(ProcessorCounters)

Processor Counters - Format (0,1001)

§

RadioUtilization(RadioUtilization)

Radio Utilization - Format (0,1002)

§

OpenFlowPort(OpenFlowPort)

OpenFlow Port - Format (0,1004)

§

OpenFlowPortName(OpenFlowPortName)

OpenFlow Port Name - Format (0,1005)

§

HostDescription(HostDescription)

Host Description - Format (0,2000)

§

HostAdapters(HostAdapters)

Host Adapters - Format (0,2001)

§

HostParent(HostParent)

Host Parent - Format (0,2002)

§

HostCpu(HostCpu)

Host CPU - Format (0,2003)

§

HostMemory(HostMemory)

Host Memory - Format (0,2004)

§

HostDiskIo(HostDiskIo)

Host Disk I/O - Format (0,2005)

§

HostNetIo(HostNetIo)

Host Network I/O - Format (0,2006)

§

Mib2IpGroup(Mib2IpGroup)

MIB-2 IP Group - Format (0,2007)

§

Mib2IcmpGroup(Mib2IcmpGroup)

MIB-2 ICMP Group - Format (0,2008)

§

Mib2TcpGroup(Mib2TcpGroup)

MIB-2 TCP Group - Format (0,2009)

§

Mib2UdpGroup(Mib2UdpGroup)

MIB-2 UDP Group - Format (0,2010)

§

VirtualNode(VirtualNode)

Virtual Node - Format (0,2100)

§

VirtualCpu(VirtualCpu)

Virtual CPU - Format (0,2101)

§

VirtualMemory(VirtualMemory)

Virtual Memory - Format (0,2102)

§

VirtualDiskIo(VirtualDiskIo)

Virtual Disk I/O - Format (0,2103)

§

VirtualNetIo(VirtualNetIo)

Virtual Network I/O - Format (0,2104)

§

JvmRuntime(JvmRuntime)

JVM Runtime - Format (0,2105)

§

JvmStatistics(JvmStatistics)

JVM Statistics - Format (0,2106)

§

MemcacheCountersDeprecated(MemcacheCountersDeprecated)

Memcache Counters - Format (0,2200) - DEPRECATED

§

HttpCounters(HttpCounters)

HTTP Counters - Format (0,2201)

§

AppOperations(AppOperations)

App Operations - Format (0,2202)

§

AppResources(AppResources)

App Resources - Format (0,2203)

§

MemcacheCounters(MemcacheCounters)

Memcache Counters - Format (0,2204)

§

AppWorkers(AppWorkers)

App Workers - Format (0,2206)

§

BroadcomDeviceBuffers(BroadcomDeviceBuffers)

Broadcom Device Buffer Utilization - Format (4413,1)

§

BroadcomPortBuffers(BroadcomPortBuffers)

Broadcom Port Buffer Utilization - Format (4413,2)

§

BroadcomTables(BroadcomTables)

Broadcom Switch ASIC Table Utilization - Format (4413,3)

§

NvidiaGpu(NvidiaGpu)

NVIDIA GPU Statistics - Format (5703,1)

§

Unknown

Unknown or unparsed format

Fields

§format: DataFormat
§data: Vec<u8>

Trait Implementations§

Source§

impl Clone for CounterData

Source§

fn clone(&self) -> CounterData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CounterData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for CounterData

Source§

fn eq(&self, other: &CounterData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for CounterData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.