Skip to main content

Metrics

Struct Metrics 

Source
pub struct Metrics {
Show 30 fields pub connected: bool, pub tip_ledger: u32, pub last_ledger: u32, pub last_close_time: u32, pub last_commit_ms: u64, pub ledgers: u64, pub transactions: u64, pub changes: u64, pub commit_seconds: f64, pub source_errors: u64, pub unknown_findings: u64, pub unknown_last_ledger: u32, pub unknown_amendments_enabled: u64, pub unknown_amendments_majority: u64, pub missing_retries: u64, pub pending_ledgers: u64, pub blocks_bytes: u64, pub state_bytes: u64, pub confirmed_ledger: u32, pub validations_connected: bool, pub validations: u64, pub validations_rejected: u64, pub manifests: u64, pub evidence_ledger: u32, pub quorum_signers: usize, pub quorum_needed: usize, pub unl_size: usize, pub unl_lists: Vec<UnlList>, pub coverage: Coverage, pub api: Api,
}

Fields§

§connected: bool

The last tip request to the node succeeded.

§tip_ledger: u32

Last validated ledger according to the node.

§last_ledger: u32

Last applied ledger.

§last_close_time: u32

Close time of the last applied ledger, seconds since the XRPL epoch.

§last_commit_ms: u64§ledgers: u64§transactions: u64§changes: u64§commit_seconds: f64

Total seconds spent writing ledgers.

§source_errors: u64§unknown_findings: u64

What the network uses that this build does not know (crate::unknown): findings in written ledgers, the last ledger with one, and amendments enabled or with a majority that are not in the table.

§unknown_last_ledger: u32§unknown_amendments_enabled: u64§unknown_amendments_majority: u64§missing_retries: u64

Retries because the node does not have the needed ledger.

§pending_ledgers: u64§blocks_bytes: u64§state_bytes: u64§confirmed_ledger: u32

Last ledger confirmed by a validator quorum.

§validations_connected: bool§validations: u64§validations_rejected: u64§manifests: u64§evidence_ledger: u32

Last ledger with stored anchor evidence.

§quorum_signers: usize

The quorum decision for the last confirmed ledger: validators that signed it, how many were needed, and the size of the UNL.

§quorum_needed: usize§unl_size: usize§unl_lists: Vec<UnlList>

Each configured publisher’s latest list.

§coverage: Coverage§api: Api

Implementations§

Source§

impl Metrics

Source

pub fn render(&self) -> String

Trait Implementations§

Source§

impl Debug for Metrics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Metrics

Source§

fn default() -> Metrics

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

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].
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more