![]() |
Edge AI Add-on API 2.2.0
|
Observability metric operation table and list node. More...
#include <nrf_edgeai_obsv_metrics.h>
Data Fields | |
| void(* | init )(const void *p_cfg, void *priv) |
| Initializes metric internal state. | |
| void(* | update )(const float *p_data, uint16_t n, void *priv) |
| Consumes one data vector from the metric's source stream. | |
| void(* | clear )(void *priv) |
| Resets accumulated counters without touching configuration. | |
| void(* | finalize )(void *priv) |
| Finalizes metric state before a snapshot is taken. | |
| void(* | snapshot )(nrf_edgeai_obsv_metric_snapshot_t *out, void *priv) |
| Populates a read-only view over the metric's counters. | |
| enum nrf_edgeai_obsv_source | source |
| Data stream this metric consumes (nrf_edgeai_obsv_source). | |
| void * | priv |
| Opaque per-instance storage; set by the define macro. | |
| struct nrf_edgeai_obsv_metric_s * | p_next |
| Pointer to next metric in context list. | |
Observability metric operation table and list node.
Each metric implementation provides an instance of this structure containing callbacks, a priv pointer to its own storage, and a list link pointer. Metrics are registered into the observability context as a singly linked list.
Use nrf_edgeai_obsv_metric_tm_create / nrf_edgeai_obsv_metric_pd_create to initialize a metric descriptor with caller-provided storage.