pub struct Api {Show 19 fields
pub requests: BTreeMap<(&'static str, String, String), u64>,
pub latency: BTreeMap<String, ([u64; 9], u64, f64)>,
pub ws_sessions: u64,
pub ws_sessions_total: u64,
pub forwarded: BTreeMap<String, u64>,
pub response_bytes: BTreeMap<String, u64>,
pub proofs: BTreeMap<(String, String), u64>,
pub proof_cache_hits: u64,
pub inflight: u64,
pub inflight_proofs: u64,
pub inflight_forwards: u64,
pub public_inflight: u64,
pub public_inflight_proofs: u64,
pub public_inflight_forwards: u64,
pub public_sessions: u64,
pub subscribers: BTreeMap<&'static str, u64>,
pub subscribed_accounts: u64,
pub ws_dropped: u64,
pub rejected: BTreeMap<(&'static str, &'static str), u64>,
}Expand description
Requests to the Clio-compatible API. Methods and statuses come from a
bounded set (the server folds unknown ones into other), so the series
stay few.
Fields§
§requests: BTreeMap<(&'static str, String, String), u64>Requests by (transport, method, status), status being success or the
error name.
latency: BTreeMap<String, ([u64; 9], u64, f64)>Latency by method: requests per bucket (not cumulative), count, sum.
ws_sessions: u64Open WebSocket sessions.
ws_sessions_total: u64§forwarded: BTreeMap<String, u64>Requests answered by the node, by method.
response_bytes: BTreeMap<String, u64>Response bytes by method.
proofs: BTreeMap<(String, String), u64>Proof bundles built, by (method, how the target was confirmed).
proof_cache_hits: u64§inflight: u64Requests being served now, regular and proofs.
inflight_proofs: u64§inflight_forwards: u64§public_inflight: u64The same on the public listeners, and their open sessions.
public_inflight_proofs: u64§public_inflight_forwards: u64§public_sessions: u64§subscribers: BTreeMap<&'static str, u64>Sessions subscribed to each stream, and accounts subscribed in all.
subscribed_accounts: u64§ws_dropped: u64Sessions disconnected for not reading their messages.
rejected: BTreeMap<(&'static str, &'static str), u64>Requests refused to protect the server, by (door, reason).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnsafeUnpin for Api
impl UnwindSafe for Api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].