mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
update usage response model for storage
This commit is contained in:
parent
c5993ba8b9
commit
651dc651f5
1 changed files with 2 additions and 9 deletions
|
|
@ -16,16 +16,9 @@ class UsageStorage extends Model
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => '30d',
|
'example' => '30d',
|
||||||
])
|
])
|
||||||
->addRule('filesStorage', [
|
->addRule('storage', [
|
||||||
'type' => Response::MODEL_METRIC_LIST,
|
'type' => Response::MODEL_METRIC_LIST,
|
||||||
'description' => 'Aggregated stats for the occupied storage size by files (in bytes).',
|
'description' => 'Aggregated stats for the occupied storage size (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).',
|
|
||||||
'default' => [],
|
'default' => [],
|
||||||
'example' => new \stdClass(),
|
'example' => new \stdClass(),
|
||||||
'array' => true
|
'array' => true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue