Reader-side event raised when an inbound sample is dropped due to a resource limit.
More...
#include <status_detail.h>
|
| Type | get_type () const override |
| | Returns kSampleRejected. More...
|
| |
| std::string | get_string () const override |
| | Returns the literal "SampleRejected". More...
|
| |
| template<typename T > |
| std::shared_ptr< T > | as () const |
| | Safely narrows this event to a concrete Status subclass. More...
|
| |
Reader-side event raised when an inbound sample is dropped due to a resource limit.
◆ Kind
Reason codes describing which resource ceiling rejected the sample.
| Enumerator | Meaning |
kNotRejected | placeholder; sample was not rejected |
kRejectedByInstancesLimit | max_instances exhausted |
kRejectedBySamplesLimit | max_samples exhausted |
kRejectedBySamplesPerInstanceLimit | max_samples_per_instance exhausted |
| Enumerator |
|---|
| kNotRejected | Placeholder reason; no rejection occurred.
|
| kRejectedByInstancesLimit | Reader exhausted its instance budget.
|
| kRejectedBySamplesLimit | Reader exhausted its total-sample budget.
|
| kRejectedBySamplesPerInstanceLimit | Reader exhausted its per-instance budget.
|
◆ get_string()
| std::string vlink::Status::SampleRejected::get_string |
( |
| ) |
const |
|
overridevirtual |
Returns the literal "SampleRejected".
- Returns
- Event name string.
Implements vlink::Status::Base.
◆ get_type()
| Type vlink::Status::SampleRejected::get_type |
( |
| ) |
const |
|
overridevirtual |
◆ operator<<
Streams the counter and reason fields to ostream.
- Parameters
-
| ostream | Output stream. |
| status | Event to print. |
- Returns
- Reference to
ostream.
◆ last_instance_handle
| InstanceHandle vlink::Status::SampleRejected::last_instance_handle {nullptr} |
Opaque handle of the rejected instance.
◆ last_reason
Reason code for the most recent rejection.
◆ total_count
| int32_t vlink::Status::SampleRejected::total_count {0} |
Cumulative samples rejected.
◆ total_count_change
| int32_t vlink::Status::SampleRejected::total_count_change {0} |
Delta in total_count since the last notification.
The documentation for this struct was generated from the following file: