79 std::optional<std::string>
details)
81 , id_{ std::move(
id) }
83 , local_{ std::move(
local) }
84 , remote_{ std::move(
remote) }
87 , details_{ std::move(
details) }
113 [[nodiscard]]
auto id() const -> std::
string
126 [[nodiscard]]
auto last_activity() const -> std::optional<std::chrono::microseconds>
128 return last_activity_;
139 [[nodiscard]]
auto local() const -> std::
string
152 [[nodiscard]]
auto remote() const -> std::
string
191 [[nodiscard]]
auto details() const -> std::optional<std::
string>
199 std::optional<std::chrono::microseconds> last_activity_{};
200 std::string local_{};
201 std::string remote_{};
202 std::optional<std::string> namespace_{};
204 std::optional<std::string> details_{};
Definition endpoint_diagnostics.hxx:64
auto state() const -> endpoint_state
Returns the current state of the endpoint.
Definition endpoint_diagnostics.hxx:178
auto local() const -> std::string
Returns the local socket address for this endpoint.
Definition endpoint_diagnostics.hxx:139
auto endpoint_namespace() const -> std::optional< std::string >
Returns the namespace of this endpoint (likely the bucket name if present).
Definition endpoint_diagnostics.hxx:165
auto details() const -> std::optional< std::string >
Returns any additional details about the endpoint, if available.
Definition endpoint_diagnostics.hxx:191
endpoint_diagnostics(service_type type, std::string id, std::optional< std::chrono::microseconds > last_activity, std::string local, std::string remote, std::optional< std::string > endpoint_namespace, endpoint_state state, std::optional< std::string > details)
Definition endpoint_diagnostics.hxx:72
auto remote() const -> std::string
Returns the remote socket address for this endpoint.
Definition endpoint_diagnostics.hxx:152
auto id() const -> std::string
Returns the ID for this endpoint.
Definition endpoint_diagnostics.hxx:113
auto last_activity() const -> std::optional< std::chrono::microseconds >
Returns the time since the last activity, if there has been one.
Definition endpoint_diagnostics.hxx:126
endpoint_diagnostics()=default
auto type() const -> service_type
Returns the service type for this endpoint.
Definition endpoint_diagnostics.hxx:99
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
endpoint_state
Definition endpoint_diagnostics.hxx:29
@ connected
The endpoint is connected and ready.
@ disconnecting
The endpoint is currently disconnecting.
@ disconnected
The endpoint is disconnected (not reachable) and not trying to connect.
@ connecting
The endpoint is disconnected but trying to connect right now.