|
VLink
2.1.0
A high-performance communication middleware
|
Recorder-wide configuration; passed once to the constructor and read-only afterwards. 更多...
#include <trigger_recorder.h>
Public 成员函数 | |
| Config () | |
Public 属性 | |
| std::string | dump_dir |
| Output directory; empty => {tmp}/vlink-trigger. 更多... | |
| FileType | file_type {kVdb} |
| Bag container format. 更多... | |
| int64_t | default_pre_ms {15'000} |
| Default pre-trigger window in ms. 更多... | |
| int64_t | default_post_ms {0} |
| Default post-trigger window in ms. 更多... | |
| int64_t | default_max_packet_size {4LL * 1024 * 1024} |
| Default per-packet byte limit in bytes (0 = unlimited). 更多... | |
| int64_t | default_max_size {0} |
| Default per-URL ring byte cap (0 = unlimited). 更多... | |
| int64_t | max_cache_size {2LL * 1024 * 1024 * 1024} |
| Global ring byte cap across all URLs. 更多... | |
| int64_t | retention_guard_ms {500} |
| Extra retention margin to absorb dump-timer jitter. 更多... | |
| int | max_dump_file_count {10} |
| Rotation cap; only auto-named dumps trigger dump_dir rotation. 更多... | |
| bool | enable_compress {false} |
| Compress the dumped bag. 更多... | |
| bool | busy_skip_data {false} |
| Drop incoming data while a bag is being written. 更多... | |
| bool | destroy_on_offline {false} |
| Destroy offline subscribers; an in-flight dump keeps their data. 更多... | |
| OverflowPolicy | overflow {kDropNewest} |
| Byte-cap overflow policy. 更多... | |
| int64_t | sleep_interval {4LL * 1024 * 1024} |
| Dump input throttle: sleep after this many bytes submitted. 更多... | |
| int64_t | sleep_time_ms {0} |
| Dump input-throttle sleep duration in ms (0 disables). 更多... | |
| DiscoveryViewer::FilterType | discovery_filter {DiscoveryViewer::kFilterAvailable} |
| Discovery filter. 更多... | |
| std::vector< std::string > | whitelist |
| If non-empty, only these exact URLs are recorded. 更多... | |
| std::vector< std::string > | blacklist |
| These exact URLs are never recorded. 更多... | |
| std::unordered_map< std::string, UrlConfig > | url_overrides |
| Per-URL window / limit overrides. 更多... | |
Recorder-wide configuration; passed once to the constructor and read-only afterwards.
|
inline |
| std::vector<std::string> vlink::TriggerRecorder::Config::blacklist |
These exact URLs are never recorded.
| bool vlink::TriggerRecorder::Config::busy_skip_data {false} |
Drop incoming data while a bag is being written.
| int64_t vlink::TriggerRecorder::Config::default_max_packet_size {4LL * 1024 * 1024} |
Default per-packet byte limit in bytes (0 = unlimited).
| int64_t vlink::TriggerRecorder::Config::default_max_size {0} |
Default per-URL ring byte cap (0 = unlimited).
| int64_t vlink::TriggerRecorder::Config::default_post_ms {0} |
Default post-trigger window in ms.
| int64_t vlink::TriggerRecorder::Config::default_pre_ms {15'000} |
Default pre-trigger window in ms.
| bool vlink::TriggerRecorder::Config::destroy_on_offline {false} |
Destroy offline subscribers; an in-flight dump keeps their data.
| DiscoveryViewer::FilterType vlink::TriggerRecorder::Config::discovery_filter {DiscoveryViewer::kFilterAvailable} |
Discovery filter.
| std::string vlink::TriggerRecorder::Config::dump_dir |
Output directory; empty => {tmp}/vlink-trigger.
| bool vlink::TriggerRecorder::Config::enable_compress {false} |
Compress the dumped bag.
| int64_t vlink::TriggerRecorder::Config::max_cache_size {2LL * 1024 * 1024 * 1024} |
Global ring byte cap across all URLs.
| int vlink::TriggerRecorder::Config::max_dump_file_count {10} |
Rotation cap; only auto-named dumps trigger dump_dir rotation.
| OverflowPolicy vlink::TriggerRecorder::Config::overflow {kDropNewest} |
Byte-cap overflow policy.
| int64_t vlink::TriggerRecorder::Config::retention_guard_ms {500} |
Extra retention margin to absorb dump-timer jitter.
| int64_t vlink::TriggerRecorder::Config::sleep_interval {4LL * 1024 * 1024} |
Dump input throttle: sleep after this many bytes submitted.
| int64_t vlink::TriggerRecorder::Config::sleep_time_ms {0} |
Dump input-throttle sleep duration in ms (0 disables).
| std::unordered_map<std::string, UrlConfig> vlink::TriggerRecorder::Config::url_overrides |
Per-URL window / limit overrides.
| std::vector<std::string> vlink::TriggerRecorder::Config::whitelist |
If non-empty, only these exact URLs are recorded.