-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[viewer api] return storage consumption and limit separated by storage type #3430
Comments
endpoint: We need following data:
Currently, we have following data structure from backend: {
DatabaseQuotas: {
"data_size_hard_quota": "53687091200" // Limit for tablet storage
},
Metrics: {
"Storage": "3885878" // Tablet storage
},
StorageAllocatedSize: "12345", // Blob storage
StorageAllocatedLimit: "12345", // Blob storage limit
StorageUsage: [
{
"Type": "SSD",
"Size": "12345", // SSD Blob storage
"Limit": "12345", // SSD Blob storage limit
},
{
"Type": "HDD"
}
]
} In the UI we check values, which are present and use them. It will be better to have simplified structure, which could be used by UI without additional calculations: {
"TabletStorage": [
{
"Type": "SSD",
"Size": "12345", // SSD Tablet storage
"Limit": "12345", // SSD Tablet storage limit (data_size_hard_quota)
},
{
"Type": "HDD",
"Size": "12345", // HDD Tablet storage
"Limit": "12345", // HDD Tablet storage limit
},
],
"BlobStorage" : [
{
"Type": "SSD",
"Size": "12345", // SSD Blob storage
"Limit": "12345", // SSD Blob storage limit
},
{
"Type": "HDD",
"Size": "12345", // HDD Blob storage
"Limit": "12345", // HDD Blob storage limit
}
]
} |
the final result looks like
so, I've decided keep StorageUsage like before (there is no any change here) |
Thanks, look great |
No description provided.
The text was updated successfully, but these errors were encountered: