pub struct PushgatewayExporter { /* private fields */ }Expand description
Implementations§
Source§impl PushgatewayExporter
impl PushgatewayExporter
Sourcepub fn new(config: PushgatewayConfig) -> Self
pub fn new(config: PushgatewayConfig) -> Self
创建新的 Pushgateway 导出器
Sourcepub fn push_from_registry(
&self,
registry: &MetricsRegistry,
) -> Result<(), String>
pub fn push_from_registry( &self, registry: &MetricsRegistry, ) -> Result<(), String>
从 MetricsRegistry 渲染并推送
Sourcepub fn snapshots(&self) -> Vec<PushSnapshot>
pub fn snapshots(&self) -> Vec<PushSnapshot>
获取推送历史快照
Sourcepub fn push_count(&self) -> usize
pub fn push_count(&self) -> usize
获取推送次数
Sourcepub fn config(&self) -> &PushgatewayConfig
pub fn config(&self) -> &PushgatewayConfig
获取配置引用
Auto Trait Implementations§
impl !Freeze for PushgatewayExporter
impl !RefUnwindSafe for PushgatewayExporter
impl Send for PushgatewayExporter
impl Sync for PushgatewayExporter
impl Unpin for PushgatewayExporter
impl UnsafeUnpin for PushgatewayExporter
impl UnwindSafe for PushgatewayExporter
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