for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import requests
from lib.base import OpscenterAction
class GetStorageCapacity(OpscenterAction):
def run(self, cluster_id=None):
if not cluster_id:
cluster_id = self.cluster_id
url = self._get_full_url([cluster_id, 'storage-capacity'])
return requests.get(url).json()