Exclusive reader attachment for every telemetry sidecar in one channel set. More...
#include <value_channel_telemetry.hpp>
Public Member Functions | |
| ValueChannelTelemetryAttachment () | |
| ~ValueChannelTelemetryAttachment () | |
| ValueChannelTelemetryAttachment (ValueChannelTelemetryAttachment &&) noexcept | |
| ValueChannelTelemetryAttachment & | operator= (ValueChannelTelemetryAttachment &&) noexcept |
| ValueChannelTelemetryAttachment (const ValueChannelTelemetryAttachment &)=delete | |
| ValueChannelTelemetryAttachment & | operator= (const ValueChannelTelemetryAttachment &)=delete |
| bool | valid () const noexcept |
| std::span< const ValueChannelTelemetryDescriptor > | channels () const noexcept |
| bool | read_continuous (std::size_t index, ValueChannelTelemetrySnapshot &snapshot) noexcept |
| Read the latest UI-consumed snapshot. | |
| bool | try_pop_events (std::size_t index, ValueChannelTelemetryEventBatch &batch) noexcept |
| Pop the next producer event batch. | |
| ValueChannelTelemetryEventStats | event_stats (std::size_t index) const noexcept |
| bool | source_alive (std::size_t index) const noexcept |
Friends | |
| class | ValueChannelSet |
Exclusive reader attachment for every telemetry sidecar in one channel set.
Only one attachment may exist at a time. Its continuous reads are the sole reader of the sidecar buffers, and its event pops are the sole reader of the producer SPSC taps. All read and pop calls on an attachment must therefore be serialized on one broker thread.
| pulp::dataplane::ValueChannelTelemetryAttachment::ValueChannelTelemetryAttachment | ( | ) |
| pulp::dataplane::ValueChannelTelemetryAttachment::~ValueChannelTelemetryAttachment | ( | ) |
|
noexcept |
|
delete |
|
noexcept |
|
noexcept |
|
delete |
|
noexcept |
|
noexcept |
Read the latest UI-consumed snapshot.
Returns false for event channels or an invalid index. A valid continuous channel can return available=false until its UI path has performed a read.
|
noexcept |
|
noexcept |
Pop the next producer event batch.
Returns false for continuous channels, an invalid index, or an empty tap.
|
noexcept |
|
friend |