pub struct MetricsService { /* private fields */ }
Expand description
Metrics service which is responsible for recording and exposing metrics.
Implementations§
Source§impl MetricsService
impl MetricsService
Sourcepub fn get_certificate_detail_total_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_certificate_detail_total_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_detail_cardano_immutable_files_full_total_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_detail_cardano_immutable_files_full_total_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_cardano_immutable_files_full_total_restoration_since_startup(
&self,
) -> &MetricCounter
pub fn get_cardano_immutable_files_full_total_restoration_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_cardano_database_immutable_files_restored_since_startup(
&self,
) -> &MetricCounter
pub fn get_cardano_database_immutable_files_restored_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_cardano_database_ancillary_files_restored_since_startup(
&self,
) -> &MetricCounter
pub fn get_cardano_database_ancillary_files_restored_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_cardano_database_complete_restoration_since_startup(
&self,
) -> &MetricCounter
pub fn get_cardano_database_complete_restoration_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_cardano_database_partial_restoration_since_startup(
&self,
) -> &MetricCounter
pub fn get_cardano_database_partial_restoration_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_detail_cardano_database_total_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_detail_cardano_database_total_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_detail_mithril_stake_distribution_total_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_detail_mithril_stake_distribution_total_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_detail_cardano_stake_distribution_total_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_detail_cardano_stake_distribution_total_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_detail_cardano_transaction_total_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_detail_cardano_transaction_total_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_proof_cardano_transaction_total_proofs_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_proof_cardano_transaction_total_proofs_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_proof_cardano_transaction_total_transactions_served_since_startup(
&self,
) -> &MetricCounter
pub fn get_proof_cardano_transaction_total_transactions_served_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_signer_registration_total_received_since_startup(
&self,
) -> &MetricCounter
pub fn get_signer_registration_total_received_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_signature_registration_total_received_since_startup(
&self,
) -> &MetricCounter
pub fn get_signature_registration_total_received_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_certificate_total_produced_since_startup(&self) -> &MetricCounter
pub fn get_certificate_total_produced_since_startup(&self) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_cardano_immutable_files_full_total_produced_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_cardano_immutable_files_full_total_produced_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_cardano_database_total_produced_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_cardano_database_total_produced_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_mithril_stake_distribution_total_produced_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_mithril_stake_distribution_total_produced_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_cardano_stake_distribution_total_produced_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_cardano_stake_distribution_total_produced_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_artifact_cardano_transaction_total_produced_since_startup(
&self,
) -> &MetricCounter
pub fn get_artifact_cardano_transaction_total_produced_since_startup( &self, ) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_runtime_cycle_success_since_startup(&self) -> &MetricCounter
pub fn get_runtime_cycle_success_since_startup(&self) -> &MetricCounter
Get the $metric_attribute
counter.
Sourcepub fn get_runtime_cycle_total_since_startup(&self) -> &MetricCounter
pub fn get_runtime_cycle_total_since_startup(&self) -> &MetricCounter
Get the $metric_attribute
counter.
Source§impl MetricsService
impl MetricsService
Sourcepub fn export_metrics_map(&self) -> HashMap<String, u32>
pub fn export_metrics_map(&self) -> HashMap<String, u32>
Export metrics in map.
Trait Implementations§
Source§impl MetricsServiceExporter for MetricsService
impl MetricsServiceExporter for MetricsService
Source§fn export_metrics(&self) -> StdResult<String>
fn export_metrics(&self) -> StdResult<String>
Auto Trait Implementations§
impl Freeze for MetricsService
impl !RefUnwindSafe for MetricsService
impl Send for MetricsService
impl Sync for MetricsService
impl Unpin for MetricsService
impl !UnwindSafe for MetricsService
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more