载入中...
搜索中...
未找到
NetworkTelemetry.h
浏览该文件的文档.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5#include <deque>
6#include <vector>
7#include "common/Export.h"
9namespace eve::network { class Network; }
10namespace eve::network_editing {
22public:
24 explicit NetworkTelemetryModel(std::size_t capacity=300);
28 const std::deque<NetworkTelemetrySample>& samples() const { return samples_; }
30 std::vector<EditorDiagnostic> diagnostics() const;
32 void clear();
33private:
34 std::size_t capacity_;
35 std::deque<NetworkTelemetrySample> samples_;
36};
43} // namespace eve::network_editing
#define EVENGINE_API_BACKENDS
Definition Export.h:108
std::uint32_t capacity
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
Move-only operation result carrying either a value or Status.
Definition Result.h:155
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing....
Definition Network.h:35
Optional bridge collecting a copied snapshot from the Network module.
Result< void > collect(network::Network *, double, NetworkTelemetryModel &) const
Collect.
UI-independent bounded history and network health diagnostics.
const std::deque< NetworkTelemetrySample > & samples() const
Samples.
eve::Severity DiagnosticSeverity
eve::Diagnostic Diagnostic
StrongId< RuleIdTag > RuleId
Definition EditingIds.h:60
eve::StatusCode Status
StatusCode
Stable outcome category for an operation.
Definition Status.h:27
Severity
Stable severity of a diagnostic, independent of its display text.
Definition Diagnostic.h:20
One copied network telemetry sample; safe after the runtime module changes.