Browse Source

Return clusters list with qt info
commit_hash:104242457a1231fa33f053bb4da88f33886ddd9e

mpereskokova 3 weeks ago
parent
commit
25b4109205

+ 1 - 0
yt/yt/client/api/query_tracker_client.h

@@ -157,6 +157,7 @@ struct TGetQueryTrackerInfoResult
     TString ClusterName;
     NYson::TYsonString SupportedFeatures;
     std::vector<TString> AccessControlObjects;
+    std::vector<TString> Clusters;
 };
 
 ////////////////////////////////////////////////////////////////////////////////

+ 1 - 0
yt/yt/client/api/rpc_proxy/client_impl.cpp

@@ -2518,6 +2518,7 @@ TFuture<TGetQueryTrackerInfoResult> TClient::GetQueryTrackerInfo(
             .ClusterName = FromProto<TString>(rsp->cluster_name()),
             .SupportedFeatures = TYsonString(rsp->supported_features()),
             .AccessControlObjects = FromProto<std::vector<TString>>(rsp->access_control_objects()),
+            .Clusters = FromProto<std::vector<TString>>(rsp->clusters())
         };
     }));
 }

+ 1 - 0
yt/yt/client/driver/query_commands.cpp

@@ -391,6 +391,7 @@ void TGetQueryTrackerInfoCommand::DoExecute(ICommandContextPtr context)
             .Item("cluster_name").Value(result.ClusterName)
             .Item("supported_features").Value(result.SupportedFeatures)
             .Item("access_control_objects").Value(result.AccessControlObjects)
+            .Item("clusters").Value(result.Clusters)
         .EndMap());
 }
 

+ 1 - 0
yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto

@@ -3449,6 +3449,7 @@ message TRspGetQueryTrackerInfo
     required bytes supported_features = 2; // YSON
     repeated string access_control_objects = 3;
     optional string query_tracker_stage = 4;
+    repeated string clusters = 5;
 }
 
 ////////////////////////////////////////////////////////////////////////////////