libsbp  v2.4.7
network_usage_t Struct Reference

Bandwidth usage measurement for a single interface. More...

#include <piksi.h>

Data Fields

u64 duration
 Duration over which the measurement was collected [ms]. More...
 
u64 total_bytes
 Number of bytes handled in total within period. More...
 
u32 rx_bytes
 Number of bytes transmitted within period. More...
 
u32 tx_bytes
 Number of bytes received within period. More...
 
char interface_name [16]
 Interface Name. More...
 

Detailed Description

Bandwidth usage measurement for a single interface.

The bandwidth usage for each interface can be reported within this struct and utilize multiple fields to fully specify the type of traffic that is being tracked. As either the interval of collection or the collection time may vary, both a timestamp and period field is provided, though may not necessarily be populated with a value.

Definition at line 340 of file piksi.h.

Field Documentation

u64 duration

Duration over which the measurement was collected [ms].

Definition at line 341 of file piksi.h.

char interface_name[16]

Interface Name.

Definition at line 345 of file piksi.h.

u32 rx_bytes

Number of bytes transmitted within period.

Definition at line 343 of file piksi.h.

u64 total_bytes

Number of bytes handled in total within period.

Definition at line 342 of file piksi.h.

u32 tx_bytes

Number of bytes received within period.

Definition at line 344 of file piksi.h.


The documentation for this struct was generated from the following file: