Status event fired when an incoming sample is rejected due to a resource limit.
More...
#include <status_detail.h>
|
| Type | get_type () const override |
| | Returns kSampleRejected.
|
| std::string | get_string () const override |
| | Returns a human-readable summary of this status.
|
| template<typename T> |
| std::shared_ptr< T > | as () const |
| | Safely downcasts this status to a concrete type T.
|
Status event fired when an incoming sample is rejected due to a resource limit.
The Kind enum identifies which resource limit caused the rejection. last_reason and last_instance_handle describe the most recent rejection.
◆ Kind
Reason codes for sample rejection.
| Kind | Limit exceeded |
| kNotRejected | Sample was not rejected |
| kRejectedByInstancesLimit | Max instances limit reached |
| kRejectedBySamplesLimit | Max total samples limit reached |
| kRejectedBySamplesPerInstanceLimit | Max samples per instance reached |
| Enumerator |
|---|
| kNotRejected | No rejection.
|
| kRejectedByInstancesLimit | Max instances limit exceeded.
|
| kRejectedBySamplesLimit | Max total samples limit exceeded.
|
| kRejectedBySamplesPerInstanceLimit | Max samples per instance limit exceeded.
|
◆ get_string()
| std::string vlink::Status::SampleRejected::get_string |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Returns a human-readable summary of this status.
- Returns
- String describing rejection counts and last rejection reason.
Implements vlink::Status::Base.
◆ get_type()
| Type vlink::Status::SampleRejected::get_type |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ operator<<
Writes the status fields to ostream.
- Parameters
-
- Returns
- Reference to
ostream.
◆ last_instance_handle
| InstanceHandle vlink::Status::SampleRejected::last_instance_handle {nullptr} |
Handle of the instance that was most recently rejected.
◆ last_reason
Reason for the most recent rejection.
◆ total_count
| int32_t vlink::Status::SampleRejected::total_count {0} |
Total number of samples rejected.
◆ total_count_change
| int32_t vlink::Status::SampleRejected::total_count_change {0} |
Change in total_count since last callback.
The documentation for this struct was generated from the following file: