pub struct AcmeMetrics {
pub not_after: IntGaugeVec,
pub state: IntGaugeVec,
pub renewals: IntCounterVec,
pub last_attempt: IntGaugeVec,
}Fields§
§not_after: IntGaugeVecfeatherbit_acme_cert_not_after_timestamp_seconds{cert_id} (0 for placeholders).
state: IntGaugeVecfeatherbit_acme_cert_state{cert_id,state} — 1 for the current state, 0 otherwise.
renewals: IntCounterVecfeatherbit_acme_renewals_total{cert_id,result="success"|"failure"}.
last_attempt: IntGaugeVecfeatherbit_acme_last_renewal_attempt_timestamp_seconds{cert_id}.
Implementations§
Source§impl AcmeMetrics
impl AcmeMetrics
Sourcepub fn register(registry: &Registry) -> Result<Arc<Self>, Error>
pub fn register(registry: &Registry) -> Result<Arc<Self>, Error>
Creates the collectors and registers them on registry.
Returns an error if any collector is already registered on this registry
(programming error; each registry must be used for at most one register call).
pub fn observe(&self, cert_id: &str, state: CertState, not_after: i64)
pub fn attempt(&self, cert_id: &str, success: bool, at: i64)
Auto Trait Implementations§
impl !RefUnwindSafe for AcmeMetrics
impl !UnwindSafe for AcmeMetrics
impl Freeze for AcmeMetrics
impl Send for AcmeMetrics
impl Sync for AcmeMetrics
impl Unpin for AcmeMetrics
impl UnsafeUnpin for AcmeMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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>
Converts
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>
Converts
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