File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import "ydb/public/api/protos/annotations/sensitive.proto";
7
7
import "ydb/public/api/protos/annotations/validation.proto" ;
8
8
9
9
import "google/protobuf/duration.proto" ;
10
- import "google/protobuf/empty.proto" ;
11
10
12
11
package Ydb.PersQueue.V1 ;
13
12
@@ -1186,11 +1185,8 @@ message TopicSettings {
1186
1185
// remote mirror rule for this topic.
1187
1186
RemoteMirrorRule remote_mirror_rule = 11 ;
1188
1187
1189
- // Setup or remove counters level settings.
1190
- oneof metrics_level {
1191
- uint32 set_metrics_level = 16 ;
1192
- google.protobuf.Empty reset_metrics_level = 17 ;
1193
- }
1188
+ // Set or reset metrics level.
1189
+ optional uint32 metrics_level = 16 ;
1194
1190
}
1195
1191
1196
1192
message AutoPartitioningSettings {
Original file line number Diff line number Diff line change @@ -904,9 +904,9 @@ namespace NKikimr::NGRpcProxy::V1 {
904
904
}
905
905
}
906
906
907
- if (settings.has_set_metrics_level ()) {
908
- pqTabletConfig->SetMetricsLevel (settings.set_metrics_level ());
909
- } else if (settings. has_reset_metrics_level ()) {
907
+ if (settings.has_metrics_level ()) {
908
+ pqTabletConfig->SetMetricsLevel (settings.metrics_level ());
909
+ } else {
910
910
pqTabletConfig->ClearMetricsLevel ();
911
911
}
912
912
You can’t perform that action at this time.
0 commit comments