/// The constructor creates a `ClientActorMetrics` instance.
The constructor creates a `ClientActorMetrics` instance.
The constructor creates a ` ClientActorMetrics ` instance .
fn new(metrics_registry: MetricsRegistry, client: String) -> Self {
        let processing_time = metrics_registry.register(
            Histogram::with_opts(histogram_opts!(
                "artifact_manager_client_processing_time_seconds",
                "Artifact manager client processing time, in seconds",
                vec![
                    0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.2, 1.5, 2.0, 2.2, 2.5, 5.0, 8.0,
                    10.0, 15.0, 20.0, 50.0,
                ],
                labels! {"client".to_string() => client.clone()}
            ))
            .unwrap(),
        );
        let processing_interval = metrics_registry.register(
            Histogram::with_opts(histogram_opts!(
                "artifact_manager_client_processing_interval_seconds",
                "Duration between Artifact manager client processing, in seconds",
                vec![
                    0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.2, 1.5, 2.0, 2.2, 2.5, 5.0, 8.0,
                    10.0, 15.0, 20.0, 50.0,
                ],
                labels! {"client".to_string() => client}
            ))
            .unwrap(),
        );
        Self {
            processing_time,
            processing_interval,
            last_update: std::time::Instant::now(),
        }
    }
fn new ( metrics_registry : MetricsRegistry , client : String ) -> Self { let processing_time = metrics_registry . register ( Histogram :: with_opts ( histogram_opts ! ( " " " " vec [ 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.8 1.0 1.2 1.5 2.0 2.2 2.5 5.0 8.0 10.0 15.0 20.0 50.0 ] labels { " " to_string ( ) client clone ( ) } ) ) . unwrap ( ) , ) ; let processing_interval = metrics_registry . register ( Histogram :: with_opts ( histogram_opts ! ( " " " " vec [ 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.8 1.0 1.2 1.5 2.0 2.2 2.5 5.0 8.0 10.0 15.0 20.0 50.0 ] labels { " " to_string ( ) client } ) ) . unwrap ( ) , ) ; Self { processing_time , processing_interval , last_update : std :: time :: Instant :: now ( ) , } }
The constructor creates a `ClientActorMetrics` instance.
The constructor creates a ` ClientActorMetrics ` instance .
metrics_registry
MetricsRegistry
client
String