mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
adding new usage metric
This commit is contained in:
+1
-1
@@ -360,7 +360,7 @@ const METRIC_DEPLOYMENTS_STORAGE = 'deployments.storage';
|
||||
|
||||
**API**
|
||||
|
||||
In the database listener, add to an existing or create a new switch case. Add a call to the usage worker with your new metric const like so:
|
||||
On file app/controllers/shared/api.php in database listener, add to an existing or create a new switch case. Add a call to the usage worker with your new metric const like so:
|
||||
|
||||
```php
|
||||
case $document->getCollection() === 'teams':
|
||||
|
||||
Reference in New Issue
Block a user