73 std::optional<std::string>
error,
75 std::chrono::microseconds
latency)
77 , id_{ std::move(
id) }
78 , local_{ std::move(
local) }
79 , remote_{ std::move(
remote) }
81 , error_{ std::move(
error) }
108 [[nodiscard]]
auto id() const -> std::
string
121 [[nodiscard]]
auto local() const -> std::
string
134 [[nodiscard]]
auto remote() const -> std::
string
160 [[nodiscard]]
auto error() const -> std::optional<std::
string>
186 [[nodiscard]]
auto latency() const -> std::chrono::microseconds
197 std::optional<std::string> error_{};
198 std::optional<std::string> namespace_{};
199 std::chrono::microseconds latency_{};
Definition endpoint_ping_report.hxx:56
auto local() const -> std::string
Returns the local socket address for this endpoint.
Definition endpoint_ping_report.hxx:121
auto endpoint_namespace() const -> std::optional< std::string >
Returns the namespace of this endpoint (likely the bucket name if present).
Definition endpoint_ping_report.hxx:173
endpoint_ping_report(service_type type, std::string id, std::string local, std::string remote, ping_state state, std::optional< std::string > error, std::optional< std::string > endpoint_namespace, std::chrono::microseconds latency)
Definition endpoint_ping_report.hxx:68
auto remote() const -> std::string
Returns the remote socket address for this endpoint.
Definition endpoint_ping_report.hxx:134
auto error() const -> std::optional< std::string >
Returns the reason this ping did not succeed, if applicable.
Definition endpoint_ping_report.hxx:160
auto id() const -> std::string
Returns the ID for this endpoint.
Definition endpoint_ping_report.hxx:108
auto state() const -> ping_state
Returns the state of this ping when assembling the report.
Definition endpoint_ping_report.hxx:147
endpoint_ping_report()=default
auto latency() const -> std::chrono::microseconds
Returns the latency of this ping.
Definition endpoint_ping_report.hxx:186
auto type() const -> service_type
Returns the service type for this endpoint.
Definition endpoint_ping_report.hxx:95
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
service_type
Definition service_type.hxx:22
ping_state
Definition endpoint_ping_report.hxx:29
@ ok
Indicates that the ping operation was successful.
@ error
Indicates that the ping operation failed.