Implement deploymentsStorage metric for projects API

This commit is contained in:
Bradley Schofield
2024-06-11 14:14:38 +09:00
parent 3c123d372a
commit 83d093805f
2 changed files with 34 additions and 2 deletions
@@ -40,6 +40,12 @@ class UsageProject extends Model
'default' => 0,
'example' => 0,
])
->addRule('deploymentsStorageTotal', [
'type' => self::TYPE_INTEGER,
'description' => 'Total aggregated sum of deployments storage size (in bytes).',
'default' => 0,
'example' => 0,
])
->addRule('bucketsTotal', [
'type' => self::TYPE_INTEGER,
'description' => 'Total aggregated number of buckets.',
@@ -88,6 +94,13 @@ class UsageProject extends Model
'example' => [],
'array' => true
])
->addRule('deploymentsStorageBreakdown', [
'type' => Response::MODEL_METRIC_BREAKDOWN,
'description' => 'Aggregated breakdown in totals of storage used by deployments.',
'default' => [],
'example' => [],
'array' => true
])
;
}