@@ -69,25 +69,15 @@ struct TDqSolomonReadParams {
69
69
NSo::NProto::TDqSolomonSource Source;
70
70
};
71
71
72
- TString GetReadSolomonUrl (const TString& endpoint, bool useSsl, const TString& project, const ::NYql::NSo::NProto::ESolomonClusterType& type ) {
72
+ TString GetReadSolomonUrl (const TString& endpoint, bool useSsl, const TString& project) {
73
73
TUrlBuilder builder ((useSsl ? " https://" : " http://" ) + endpoint);
74
74
75
- switch (type) {
76
- case NSo::NProto::ESolomonClusterType::CT_SOLOMON: {
77
- builder.AddPathComponent (" api" );
78
- builder.AddPathComponent (" v2" );
79
- builder.AddPathComponent (" projects" );
80
- builder.AddPathComponent (project);
81
- builder.AddPathComponent (" sensors" );
82
- builder.AddPathComponent (" data" );
83
- break ;
84
- }
85
- case NSo::NProto::ESolomonClusterType::CT_MONITORING: {
86
- [[fallthrough]];
87
- }
88
- default :
89
- Y_ENSURE (false , " Invalid cluster type " << ToString<ui32>(type));
90
- }
75
+ builder.AddPathComponent (" api" );
76
+ builder.AddPathComponent (" v2" );
77
+ builder.AddPathComponent (" projects" );
78
+ builder.AddPathComponent (project);
79
+ builder.AddPathComponent (" sensors" );
80
+ builder.AddPathComponent (" data" );
91
81
92
82
return builder.Build ();
93
83
}
@@ -260,8 +250,7 @@ class TDqSolomonReadActor : public NActors::TActorBootstrapped<TDqSolomonReadAct
260
250
TString GetUrl () const {
261
251
return GetReadSolomonUrl (ReadParams.Source .GetEndpoint (),
262
252
ReadParams.Source .GetUseSsl (),
263
- ReadParams.Source .GetProject (),
264
- ReadParams.Source .GetClusterType ());
253
+ ReadParams.Source .GetProject ());
265
254
}
266
255
267
256
NHttp::THttpOutgoingRequestPtr BuildSolomonRequest (TStringBuf data) {
0 commit comments