Skip to content

Struct SYN_Metric

ClassList > SYN_Metric

Metric descriptor and storage. More...

  • #include <syn_metrics.h>

Public Attributes

Type Name
const char * help
const char * name
struct SYN_Metric * next
bool registered
SYN_MetricType type
SYN_MetricVal val

Detailed Description

Metrics are typically declared statically and registered in the global registry. They are designed to be zero-heap and bare-metal friendly.

Public Attributes Documentation

variable help

const char* SYN_Metric::help;

Human-readable description


variable name

const char* SYN_Metric::name;

Unique name (e.g., "wg_tx_bytes")


variable next

struct SYN_Metric* SYN_Metric::next;

Next in global registry list


variable registered

bool SYN_Metric::registered;

True if in global registry


variable type

SYN_MetricType SYN_Metric::type;

Counter or Gauge


variable val

SYN_MetricVal SYN_Metric::val;

Current value



The documentation for this class was generated from the following file src/syntropic/util/syn_metrics.h