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 4a7aca3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ydb/core/viewer/json_tenantinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,21 @@ 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);
// TODO(andrew-rykov)
auto& hddUsage = *tenant.AddStorageUsage();
hddUsage.SetType(NKikimrViewer::TStorageUsage::HDD);

auto& ssdQuotaUsage = *tenant.AddQuotaUsage();
hddQuotaUsage.SetType(NKikimrViewer::TStorageUsage::SSD);
ssdQuotaUsage.SetSize(tenant.GetMetrics().GetStorage());
ssdQuotaUsage.SetLimit(tenant.databasequotas().data_size_hard_quota());
auto& hddQuotaUsage = *tenant.AddQuotaUsage();
hddQuotaUsage.SetType(NKikimrViewer::TStorageUsage::HDD);
}
}

Expand Down

0 comments on commit 4a7aca3

Please sign in to comment.