update usage response model for storage

This commit is contained in:
Damodar Lohani 2022-08-11 02:18:34 +00:00
parent c5993ba8b9
commit 651dc651f5

View file

@ -16,16 +16,9 @@ class UsageStorage extends Model
'default' => '',
'example' => '30d',
])
->addRule('filesStorage', [
->addRule('storage', [
'type' => Response::MODEL_METRIC_LIST,
'description' => 'Aggregated stats for the occupied storage size by files (in bytes).',
'default' => [],
'example' => new \stdClass(),
'array' => true
])
->addRule('tagsStorage', [
'type' => Response::MODEL_METRIC_LIST,
'description' => 'Aggregated stats for the occupied storage size by tags (in bytes).',
'description' => 'Aggregated stats for the occupied storage size (in bytes).',
'default' => [],
'example' => new \stdClass(),
'array' => true