@@ -12461,6 +12461,15 @@ pub struct GetPeerTelemetryRequest {
1246112461#[allow(clippy::derive_partial_eq_without_eq)]
1246212462#[derive(Clone, PartialEq, ::prost::Message)]
1246312463pub struct GetPeerTelemetryResponse {
12464+ #[prost(message, optional, tag = "1")]
12465+ pub result: ::core::option::Option<PeerTelemetry>,
12466+ #[prost(double, tag = "2")]
12467+ pub time: f64,
12468+ }
12469+ #[derive(serde::Serialize)]
12470+ #[allow(clippy::derive_partial_eq_without_eq)]
12471+ #[derive(Clone, PartialEq, ::prost::Message)]
12472+ pub struct PeerTelemetry {
1246412473 /// Mapping from collection name to its telemetry
1246512474 #[prost(map = "string, message", tag = "3")]
1246612475 pub collections: ::std::collections::HashMap<
@@ -12496,7 +12505,7 @@ pub struct ShardTransferTelemetry {
1249612505 #[prost(uint32, tag = "1")]
1249712506 pub shard_id: u32,
1249812507 /// Target shard ID if different than source shard ID.
12499- /// Used exclusively with `ReshardStreamRecords ` transfer method.
12508+ /// Used exclusively with `ReshardingStreamRecords ` transfer method.
1250012509 #[prost(uint32, optional, tag = "2")]
1250112510 pub to_shard_id: ::core::option::Option<u32>,
1250212511 /// From peer id
@@ -12510,8 +12519,8 @@ pub struct ShardTransferTelemetry {
1251012519 #[prost(bool, tag = "5")]
1251112520 pub sync: bool,
1251212521 /// Method of transferring points
12513- #[prost(enumeration = "ShardTransferMethod", tag = "6")]
12514- pub method: i32,
12522+ #[prost(enumeration = "ShardTransferMethod", optional, tag = "6")]
12523+ pub method: ::core::option::Option< i32> ,
1251512524 /// Freeform string. Typically reports progress
1251612525 #[prost(string, tag = "7")]
1251712526 pub comment: ::prost::alloc::string::String,
@@ -12593,6 +12602,8 @@ pub mod shard_clean_status_telemetry {
1259312602pub struct ClusterTelemetry {
1259412603 #[prost(message, optional, tag = "1")]
1259512604 pub status: ::core::option::Option<ClusterStatusTelemetry>,
12605+ #[prost(map = "uint64, message", tag = "3")]
12606+ pub peers: ::std::collections::HashMap<u64, PeerInfo>,
1259612607}
1259712608#[derive(serde::Serialize)]
1259812609#[allow(clippy::derive_partial_eq_without_eq)]
@@ -12606,12 +12617,12 @@ pub struct ClusterStatusTelemetry {
1260612617 pub commit: u64,
1260712618 #[prost(uint64, tag = "4")]
1260812619 pub pending_operations: u64,
12609- #[prost(enumeration = "StateRole", tag = "5")]
12610- pub role: i32,
12620+ #[prost(enumeration = "StateRole", optional, tag = "5")]
12621+ pub role: ::core::option::Option< i32> ,
1261112622 #[prost(bool, tag = "6")]
1261212623 pub is_voter: bool,
12613- #[prost(uint64, tag = "7")]
12614- pub peer_id: u64,
12624+ #[prost(uint64, optional, tag = "7")]
12625+ pub peer_id: ::core::option::Option< u64> ,
1261512626 #[prost(message, optional, tag = "8")]
1261612627 pub consensus_thread_status: ::core::option::Option<ConsensusThreadStatus>,
1261712628}
@@ -12657,6 +12668,13 @@ pub mod consensus_thread_status {
1265712668 }
1265812669}
1265912670#[derive(serde::Serialize)]
12671+ #[allow(clippy::derive_partial_eq_without_eq)]
12672+ #[derive(Clone, PartialEq, ::prost::Message)]
12673+ pub struct PeerInfo {
12674+ #[prost(string, tag = "1")]
12675+ pub uri: ::prost::alloc::string::String,
12676+ }
12677+ #[derive(serde::Serialize)]
1266012678#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1266112679#[repr(i32)]
1266212680pub enum ReshardingStage {
0 commit comments