Class: Metering
Instance Method Summary collapse
- #billablecosts(token, serviceroot, servicegroupid) ⇒ Object
- #billableusage(token, serviceroot, instanceid) ⇒ Object
Instance Method Details
#billablecosts(token, serviceroot, servicegroupid) ⇒ Object
154 155 156 157 158 159 |
# File 'lib/modules/vca-be.rb', line 154 def billablecosts(token, serviceroot, servicegroupid) self.class.base_uri serviceroot self.class.[:headers] = { "Accept" => "application/json;version=5.7", "Authorization" => "Bearer " + token } billablecostsarray = self.class.get('/api/metering/service-group/' + servicegroupid + '/billable-costs') return billablecostsarray end |
#billableusage(token, serviceroot, instanceid) ⇒ Object
163 164 165 166 167 168 |
# File 'lib/modules/vca-be.rb', line 163 def billableusage(token, serviceroot, instanceid) self.class.base_uri serviceroot self.class.[:headers] = { "Accept" => "application/json;version=5.7", "Authorization" => "Bearer " + token } billableusagearray = self.class.get('/api/metering/service-instance/' + instanceid + '/billable-usage') return billableusagearray end |