Skip to content

Get current state of all billable applications and services available in CF

In order to measure usage, the service must be able to determine the state of applications, services, and any aspects of services that are billed in credits. In scope for this ticket:

  • Get a list of all applications running in the platform, including their parent organization, instances, and memory per instance
  • Get a list of all services provisioned through CAPI that cost credits to run. Include the service ID, organization. For these, if the service is present, it's billed.

"Metered services" will require a different implementation and are not in scope for this ticket.

The readings should be placed in a dedicated database table or tables, separate from the credit calculations, so we preserve the original data.


Security considerations

Requires interconnection with CAPI. To start, use user-local CLI credentials. Full auth will be handled in product#3308.

Edited by Zach Rollyson