Struct sc_proposer_metrics::Metrics
source · pub struct Metrics {
pub block_constructed: Histogram,
pub number_of_transactions: Gauge<U64>,
pub end_proposing_reason: CounterVec,
pub create_inherents_time: Histogram,
pub create_block_proposal_time: Histogram,
}
Expand description
Authorship metrics.
Fields§
§block_constructed: Histogram
§number_of_transactions: Gauge<U64>
§end_proposing_reason: CounterVec
§create_inherents_time: Histogram
§create_block_proposal_time: Histogram
Implementations§
source§impl Metrics
impl Metrics
pub fn register(registry: &Registry) -> Result<Self, PrometheusError>
sourcepub fn report_end_proposing_reason(&self, reason: EndProposingReason)
pub fn report_end_proposing_reason(&self, reason: EndProposingReason)
Report the reason why the proposing ended.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl !UnwindSafe for Metrics
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