-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
True
-
BIZ-634 - Hourly Metering of the RHEL product family for SaaS metering
-
-
Since product name support will be removed as a result we won't be able to get the value populated in product name during the subscription or offering sync.
At the moment, in the swatch code we check for product names a few places later, such as when we report usage information to AWS. However, since the product tag will be predetermined during the ingestion process after these two cards(SWATCH-1956, SWATCH-1928) are done, we should rely on the product_tag.
Done:
Remove the use of product name instead use product tag when we send the Billable usage to AWS.
String productId = usageKey.getProductId(); Set<String> productNames = Variant.getProductNamesForTag(productId); if (productNames.isEmpty()) { log.warn("No product names configured for tag: {}", productId); return Collections.emptyList(); }
This is testable using: /api/swatch-producer-aws/internal/aws/billable_usage (there should be no change in the results).
- blocks
-
SWATCH-1922 Product config to support SAP and HPC paygo usage
- Closed
- is blocked by
-
SWATCH-1956 UMB Offering ingestion should write the metered y/n flag in Offering table
- Closed
-
SWATCH-2056 UMB Offering ingestion should write product tag in the Offering table
- Closed
-
SWATCH-2270 Investigate missing product tags after sku offering sync
- Closed