BeechCMS / @beechcms/core / SystemStatsRepository
Interface: SystemStatsRepository
SystemStatsRepository - Interface for managing global system metrics.
Methods
decrementStorage()
decrementStorage(
bytes):Promise<void>
Decrements the total storage counter.
Parameters
bytes
number
Returns
Promise<void>
getStorageUsage()
getStorageUsage():
Promise<number>
Gets the current total storage usage in bytes.
Returns
Promise<number>
incrementStorage()
incrementStorage(
bytes):Promise<void>
Increments the total storage counter.
Parameters
bytes
number
Returns
Promise<void>
setStorage()
setStorage(
bytes):Promise<void>
Sets a specific value for a storage stat (e.g. after a full sync).
Parameters
bytes
number
Returns
Promise<void>