Skip to content

Commit

Permalink
nodes-added-pdiskid-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
StekPerepolnen committed Apr 5, 2024
1 parent 77c6779 commit 72bcc1e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ydb/core/viewer/json_tenantinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,16 @@ class TJsonTenantInfo : public TViewerPipeClient<TJsonTenantInfo> {
tenant.SetStorageAllocatedLimit(storageAllocatedLimit);
tenant.SetStorageMinAvailableSize(storageMinAvailableSize);
tenant.SetStorageGroups(storageGroups);

auto& ssdUsage = *tenant.AddStorageUsage();
ssdUsage.SetType(NKikimrViewer::TStorageUsage::SSD);
ssdUsage.SetSize(storageAllocatedSize);
ssdUsage.SetLimit(storageAllocatedLimit);
if (tenant.databasequotas().data_size_hard_quota() && tenant.GetMetrics().GetStorage()) {
ssdUsage.SetSize(tenant.GetMetrics().GetStorage());
ssdUsage.SetLimit(tenant.databasequotas().data_size_hard_quota());
} else {
ssdUsage.SetSize(storageAllocatedSize);
ssdUsage.SetLimit(storageAllocatedLimit);
}
// TODO(andrew-rykov)
auto& hddUsage = *tenant.AddStorageUsage();
hddUsage.SetType(NKikimrViewer::TStorageUsage::HDD);
Expand Down

0 comments on commit 72bcc1e

Please sign in to comment.