Skip to main content

CounterRecord

Enum CounterRecord 

Source
pub enum CounterRecord {
Show 49 variants GenericInterface(GenericInterface), EthernetInterface(EthernetInterface), TokenRing(TokenRing), VgCounters(VgCounters), Vlan(Vlan), Ieee80211Counters(Ieee80211Counters), LagPortStats(LagPortStats), SlowPathCounts(SlowPathCounts), IbCounters(IbCounters), Sfp(Sfp), Processor(Processor), RadioUtilization(RadioUtilization), QueueLength(QueueLength), OfPort(OfPort), PortName(PortName), HostDescr(HostDescr), HostAdapters(HostAdapters), HostParent(HostParent), HostCpu(HostCpu), HostMemory(HostMemory), HostDiskIo(HostDiskIo), HostNetIo(HostNetIo), VirtNode(VirtNode), VirtCpu(VirtCpu), VirtMemory(VirtMemory), VirtDiskIo(VirtDiskIo), VirtNetIo(VirtNetIo), Mib2IpGroup(Mib2IpGroup), Mib2IcmpGroup(Mib2IcmpGroup), Mib2TcpGroup(Mib2TcpGroup), Mib2UdpGroup(Mib2UdpGroup), JmxRuntime(JmxRuntime), JvmStatistics(JvmStatistics), HttpCounters(HttpCounters), AppOperations(AppOperations), AppResources(AppResources), MemcacheCounters(MemcacheCounters), AppWorkers(AppWorkers), OvsDpStats(OvsDpStats), Energy(Energy), Temperature(Temperature), Humidity(Humidity), Fans(Fans), BroadcomBstDeviceBuffers(BroadcomBstDeviceBuffers), BroadcomBstPortBuffers(BroadcomBstPortBuffers), BroadcomHwTables(BroadcomHwTables), NvidiaGpu(NvidiaGpu), XenVif(XenVif), Unknown { enterprise: u32, format: u32, data: Vec<u8>, },
}
Expand description

A counter record within a counter sample.

Counter records contain periodic interface and system statistics reported by the sFlow agent.

Variants§

§

GenericInterface(GenericInterface)

Generic interface counters (enterprise=0, format=1).

§

EthernetInterface(EthernetInterface)

Ethernet-specific interface counters (enterprise=0, format=2).

§

TokenRing(TokenRing)

Token Ring interface counters (enterprise=0, format=3).

§

VgCounters(VgCounters)

100VG-AnyLAN counters (enterprise=0, format=4).

§

Vlan(Vlan)

VLAN counters (enterprise=0, format=5).

§

Ieee80211Counters(Ieee80211Counters)

IEEE 802.11 counters (enterprise=0, format=6).

§

LagPortStats(LagPortStats)

LAG port statistics (enterprise=0, format=7).

§

SlowPathCounts(SlowPathCounts)

Slow path counts (enterprise=0, format=8).

§

IbCounters(IbCounters)

InfiniBand counters (enterprise=0, format=9).

§

Sfp(Sfp)

SFP/optical transceiver counters (enterprise=0, format=10).

§

Processor(Processor)

Processor/CPU counters (enterprise=0, format=1001).

§

RadioUtilization(RadioUtilization)

Radio utilization counters (enterprise=0, format=1002).

§

QueueLength(QueueLength)

Queue length histogram (enterprise=0, format=1003).

§

OfPort(OfPort)

OpenFlow port mapping (enterprise=0, format=1004).

§

PortName(PortName)

Port name (enterprise=0, format=1005).

§

HostDescr(HostDescr)

Host description (enterprise=0, format=2000).

§

HostAdapters(HostAdapters)

Host network adapters (enterprise=0, format=2001).

§

HostParent(HostParent)

Host parent (virtualization) (enterprise=0, format=2002).

§

HostCpu(HostCpu)

Host CPU counters (enterprise=0, format=2003).

§

HostMemory(HostMemory)

Host memory counters (enterprise=0, format=2004).

§

HostDiskIo(HostDiskIo)

Host disk I/O counters (enterprise=0, format=2005).

§

HostNetIo(HostNetIo)

Host network I/O counters (enterprise=0, format=2006).

§

VirtNode(VirtNode)

Virtual node statistics (enterprise=0, format=2100).

§

VirtCpu(VirtCpu)

Virtual CPU statistics (enterprise=0, format=2101).

§

VirtMemory(VirtMemory)

Virtual memory statistics (enterprise=0, format=2102).

§

VirtDiskIo(VirtDiskIo)

Virtual disk I/O statistics (enterprise=0, format=2103).

§

VirtNetIo(VirtNetIo)

Virtual network I/O statistics (enterprise=0, format=2104).

§

Mib2IpGroup(Mib2IpGroup)

MIB-II IP group counters (enterprise=0, format=2007).

§

Mib2IcmpGroup(Mib2IcmpGroup)

MIB-II ICMP group counters (enterprise=0, format=2008).

§

Mib2TcpGroup(Mib2TcpGroup)

MIB-II TCP group counters (enterprise=0, format=2009).

§

Mib2UdpGroup(Mib2UdpGroup)

MIB-II UDP group counters (enterprise=0, format=2010).

§

JmxRuntime(JmxRuntime)

JMX runtime information (enterprise=0, format=2105).

§

JvmStatistics(JvmStatistics)

JVM statistics counters (enterprise=0, format=2106).

§

HttpCounters(HttpCounters)

HTTP method and status counters (enterprise=0, format=2201).

§

AppOperations(AppOperations)

Application operations counters (enterprise=0, format=2202).

§

AppResources(AppResources)

Application resource counters (enterprise=0, format=2203).

§

MemcacheCounters(MemcacheCounters)

Memcache counters (enterprise=0, format=2204).

§

AppWorkers(AppWorkers)

Application worker counters (enterprise=0, format=2206).

§

OvsDpStats(OvsDpStats)

Open vSwitch datapath statistics (enterprise=0, format=2207).

§

Energy(Energy)

Energy consumption counters (enterprise=0, format=3000).

§

Temperature(Temperature)

Temperature sensor counters (enterprise=0, format=3001).

§

Humidity(Humidity)

Humidity sensor counters (enterprise=0, format=3002).

§

Fans(Fans)

Fan status counters (enterprise=0, format=3003).

§

BroadcomBstDeviceBuffers(BroadcomBstDeviceBuffers)

Broadcom BST device buffer utilization (enterprise=4413, format=1).

§

BroadcomBstPortBuffers(BroadcomBstPortBuffers)

Broadcom BST port buffer utilization (enterprise=4413, format=2).

§

BroadcomHwTables(BroadcomHwTables)

Broadcom ASIC hardware table utilization (enterprise=4413, format=3).

§

NvidiaGpu(NvidiaGpu)

NVIDIA GPU counters via NVML (enterprise=5703, format=1).

§

XenVif(XenVif)

XenServer virtual interface metadata (enterprise=4300, format=2).

§

Unknown

Unrecognized counter record type, preserved as raw bytes.

Fields

§enterprise: u32

Enterprise code from the record header.

§format: u32

Format code from the record header.

§data: Vec<u8>

Raw record data.

Trait Implementations§

Source§

impl Clone for CounterRecord

Source§

fn clone(&self) -> CounterRecord

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 CounterRecord

Source§

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

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

impl<'de> Deserialize<'de> for CounterRecord

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CounterRecord

Source§

fn eq(&self, other: &CounterRecord) -> 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 Serialize for CounterRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CounterRecord

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,