diff --git a/ydb/core/viewer/json_tenantinfo.h b/ydb/core/viewer/json_tenantinfo.h index 08bc6a330e54..1bf9d724dcf9 100644 --- a/ydb/core/viewer/json_tenantinfo.h +++ b/ydb/core/viewer/json_tenantinfo.h @@ -628,6 +628,7 @@ class TJsonTenantInfo : public TViewerPipeClient { tenant.SetStorageAllocatedLimit(storageAllocatedLimit); tenant.SetStorageMinAvailableSize(storageMinAvailableSize); tenant.SetStorageGroups(storageGroups); + auto& ssdUsage = *tenant.AddStorageUsage(); ssdUsage.SetType(NKikimrViewer::TStorageUsage::SSD); ssdUsage.SetSize(storageAllocatedSize); @@ -635,6 +636,15 @@ class TJsonTenantInfo : public TViewerPipeClient { // TODO(andrew-rykov) auto& hddUsage = *tenant.AddStorageUsage(); hddUsage.SetType(NKikimrViewer::TStorageUsage::HDD); + + if (tenant.databasequotas().data_size_hard_quota()) { + auto& ssdQuotaUsage = *tenant.AddQuotaUsage(); + ssdQuotaUsage.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); + } } } diff --git a/ydb/core/viewer/protos/viewer.proto b/ydb/core/viewer/protos/viewer.proto index cf0f9bf897c3..322ac416e768 100644 --- a/ydb/core/viewer/protos/viewer.proto +++ b/ydb/core/viewer/protos/viewer.proto @@ -375,6 +375,7 @@ message TTenant { uint64 StorageAllocatedLimit = 41; Ydb.Cms.DatabaseQuotas DatabaseQuotas = 42; repeated TStorageUsage StorageUsage = 43; + repeated TStorageUsage QuotaUsage = 44; } message TTenants {