npr::rf::NprInterfaceStatsProvider class final

NPR implementation of the generic interface-stats provider adapter.

The provider translates NPR runtime snapshots into the flat CBOR maps used by the control interface under /interface/<iface>/status, /counters, and /neighbors. It intentionally belongs to the control/integration layer, because it is a presentation adapter over observability state.

Constructors, destructors, conversion operators

NprInterfaceStatsProvider(INprStatsSource& source, std::string iface_name)

Public functions

auto append_target_wire_values(std::string_view target, prf::control::ResponseWriter* out) const -> bool
auto connected() const -> bool
auto iface_name() const -> const char*
auto module_name() const -> const char*
auto target_field_count(std::string_view target) const -> size_t
auto targets() const -> std::span<const char*const>