public OvhConsumption serviceName_consumption_GET ( String serviceName , Long duration ) throws IOException { String qPath = "/metrics/{serviceName}/consumption" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "duration" , duration ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhConsumption . class ) ; }
Get consumption for your service