@@ -12449,18 +12449,18 @@ pub mod points_internal_server {
1244912449#[derive(serde::Serialize)]
1245012450#[allow(clippy::derive_partial_eq_without_eq)]
1245112451#[derive(Clone, PartialEq, ::prost::Message)]
12452- pub struct GetPeerTelemetryRequest {
12453- /// The peer id to ask for telemetry
12454- #[prost(uint64, tag = "1")]
12455- pub peer_id: u64,
12452+ pub struct GetTelemetryRequest {
1245612453 /// The level of detail needed
12457- #[prost(uint32, tag = "2 ")]
12454+ #[prost(uint32, tag = "1 ")]
1245812455 pub details_level: u32,
12456+ /// Timeout in secs for the request
12457+ #[prost(uint64, tag = "2")]
12458+ pub timeout: u64,
1245912459}
1246012460#[derive(serde::Serialize)]
1246112461#[allow(clippy::derive_partial_eq_without_eq)]
1246212462#[derive(Clone, PartialEq, ::prost::Message)]
12463- pub struct GetPeerTelemetryResponse {
12463+ pub struct GetTelemetryResponse {
1246412464 #[prost(message, optional, tag = "1")]
1246512465 pub result: ::core::option::Option<PeerTelemetry>,
1246612466 #[prost(double, tag = "2")]
@@ -12913,12 +12913,12 @@ pub mod qdrant_internal_client {
1291312913 );
1291412914 self.inner.unary(req, path, codec).await
1291512915 }
12916- /// Get telemetry from a peer
12917- pub async fn get_peer_telemetry (
12916+ /// Get telemetry
12917+ pub async fn get_telemetry (
1291812918 &mut self,
12919- request: impl tonic::IntoRequest<super::GetPeerTelemetryRequest >,
12919+ request: impl tonic::IntoRequest<super::GetTelemetryRequest >,
1292012920 ) -> std::result::Result<
12921- tonic::Response<super::GetPeerTelemetryResponse >,
12921+ tonic::Response<super::GetTelemetryResponse >,
1292212922 tonic::Status,
1292312923 > {
1292412924 self.inner
@@ -12932,11 +12932,11 @@ pub mod qdrant_internal_client {
1293212932 })?;
1293312933 let codec = tonic::codec::ProstCodec::default();
1293412934 let path = http::uri::PathAndQuery::from_static(
12935- "/qdrant.QdrantInternal/GetPeerTelemetry ",
12935+ "/qdrant.QdrantInternal/GetTelemetry ",
1293612936 );
1293712937 let mut req = request.into_request();
1293812938 req.extensions_mut()
12939- .insert(GrpcMethod::new("qdrant.QdrantInternal", "GetPeerTelemetry "));
12939+ .insert(GrpcMethod::new("qdrant.QdrantInternal", "GetTelemetry "));
1294012940 self.inner.unary(req, path, codec).await
1294112941 }
1294212942 }
@@ -12964,12 +12964,12 @@ pub mod qdrant_internal_server {
1296412964 tonic::Response<super::WaitOnConsensusCommitResponse>,
1296512965 tonic::Status,
1296612966 >;
12967- /// Get telemetry from a peer
12968- async fn get_peer_telemetry (
12967+ /// Get telemetry
12968+ async fn get_telemetry (
1296912969 &self,
12970- request: tonic::Request<super::GetPeerTelemetryRequest >,
12970+ request: tonic::Request<super::GetTelemetryRequest >,
1297112971 ) -> std::result::Result<
12972- tonic::Response<super::GetPeerTelemetryResponse >,
12972+ tonic::Response<super::GetTelemetryResponse >,
1297312973 tonic::Status,
1297412974 >;
1297512975 }
@@ -13149,26 +13149,25 @@ pub mod qdrant_internal_server {
1314913149 };
1315013150 Box::pin(fut)
1315113151 }
13152- "/qdrant.QdrantInternal/GetPeerTelemetry " => {
13152+ "/qdrant.QdrantInternal/GetTelemetry " => {
1315313153 #[allow(non_camel_case_types)]
13154- struct GetPeerTelemetrySvc <T: QdrantInternal>(pub Arc<T>);
13154+ struct GetTelemetrySvc <T: QdrantInternal>(pub Arc<T>);
1315513155 impl<
1315613156 T: QdrantInternal,
13157- > tonic::server::UnaryService<super::GetPeerTelemetryRequest >
13158- for GetPeerTelemetrySvc <T> {
13159- type Response = super::GetPeerTelemetryResponse ;
13157+ > tonic::server::UnaryService<super::GetTelemetryRequest >
13158+ for GetTelemetrySvc <T> {
13159+ type Response = super::GetTelemetryResponse ;
1316013160 type Future = BoxFuture<
1316113161 tonic::Response<Self::Response>,
1316213162 tonic::Status,
1316313163 >;
1316413164 fn call(
1316513165 &mut self,
13166- request: tonic::Request<super::GetPeerTelemetryRequest >,
13166+ request: tonic::Request<super::GetTelemetryRequest >,
1316713167 ) -> Self::Future {
1316813168 let inner = Arc::clone(&self.0);
1316913169 let fut = async move {
13170- <T as QdrantInternal>::get_peer_telemetry(&inner, request)
13171- .await
13170+ <T as QdrantInternal>::get_telemetry(&inner, request).await
1317213171 };
1317313172 Box::pin(fut)
1317413173 }
@@ -13180,7 +13179,7 @@ pub mod qdrant_internal_server {
1318013179 let inner = self.inner.clone();
1318113180 let fut = async move {
1318213181 let inner = inner.0;
13183- let method = GetPeerTelemetrySvc (inner);
13182+ let method = GetTelemetrySvc (inner);
1318413183 let codec = tonic::codec::ProstCodec::default();
1318513184 let mut grpc = tonic::server::Grpc::new(codec)
1318613185 .apply_compression_config(
0 commit comments