new dataUsageService()
The dataUsageService allows for faster loading of data grabbed from the cluster interface. The service is called periodically, allowing for non-constant loading of statistics.
A Promise with the data is returned, which is rendered within the controller.
- Source:
Methods
(static) getDataUsage(clusterInterface, force) → {Promise}
Gets storage usage from cluster
- Source:
Parameters:
Name | Type | Description |
---|---|---|
clusterInterface |
GenericClusterInterface
|
Interface to grab the data from |
force |
boolean
|
Flag denoting if the user wants to force update the graphs |
Returns:
- Type:
-
Promise
Promise object to be resolved in the controller