This adds/updates the necessary queries for APPUiO Managed OpenShift reporting.
I've realized that we can use the same vCPU query for both the new and the old billing, and distinguish between the two models based on the SLA - the old model uses a disjoint list of SLAs.
In a similar vein, the Cluster query - used for the cluster base fee from the old billing model - is set up to only return values for clusters with one of the old SLAs. In this way, new clusters won't get facts for the cluster count, and therefore won't be billed for that.
~Currently, the queries use a lookup key format of query:cloud:sla:tenant:cluster[:role] - this only works if we accept #147. Without #147, the tenant must be at the 3rd position in the lookup key. It could be made to work that way, it would just lead to "uglier" product keys.~
Queries use the source key format query:cloud:tenant:cluster:sla[:role]
Checklist
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
Summary
This adds/updates the necessary queries for APPUiO Managed OpenShift reporting.
I've realized that we can use the same vCPU query for both the new and the old billing, and distinguish between the two models based on the SLA - the old model uses a disjoint list of SLAs.
In a similar vein, the Cluster query - used for the cluster base fee from the old billing model - is set up to only return values for clusters with one of the old SLAs. In this way, new clusters won't get facts for the cluster count, and therefore won't be billed for that.
~Currently, the queries use a lookup key format of
query:cloud:sla:tenant:cluster[:role]
- this only works if we accept #147. Without #147, the tenant must be at the 3rd position in the lookup key. It could be made to work that way, it would just lead to "uglier" product keys.~Queries use the source key format
query:cloud:tenant:cluster:sla[:role]
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog