Skip to content

Commit

Permalink
[COST-5575] convert uom to metric-id (#5335)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Oct 7, 2024
1 parent e2207ad commit 70a48ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion koku/subs/subs_data_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def build_base_subs_dict(
"instance_id": instance_id,
"timestamp": tstamp,
"expiration": expiration,
"measurements": [{"value": cpu_count, "uom": "vCPUs"}],
"measurements": [{"value": cpu_count, "metric_id": "vCPUs"}],
"cloud_provider": self.provider_type,
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down
12 changes: 6 additions & 6 deletions koku/subs/test/test_subs_data_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_build_base_subs_dict(self):
"instance_id": lineitem_resourceid,
"timestamp": lineitem_usagestartdate,
"expiration": lineitem_usageenddate,
"measurements": [{"value": product_vcpu, "uom": "vCPUs"}],
"measurements": [{"value": product_vcpu, "metric_id": "vCPUs"}],
"cloud_provider": "AWS",
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down Expand Up @@ -135,7 +135,7 @@ def test_build_aws_subs_dict(self):
"instance_id": lineitem_resourceid,
"timestamp": lineitem_usagestartdate,
"expiration": lineitem_usageenddate,
"measurements": [{"value": product_vcpu, "uom": "vCPUs"}],
"measurements": [{"value": product_vcpu, "metric_id": "vCPUs"}],
"cloud_provider": "AWS",
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down Expand Up @@ -189,7 +189,7 @@ def test_build_base_subs_dict_sap_role(self):
"instance_id": lineitem_resourceid,
"timestamp": lineitem_usagestartdate,
"expiration": lineitem_usageenddate,
"measurements": [{"value": product_vcpu, "uom": "vCPUs"}],
"measurements": [{"value": product_vcpu, "metric_id": "vCPUs"}],
"cloud_provider": "AWS",
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down Expand Up @@ -240,7 +240,7 @@ def test_build_base_subs_dict_addon_els(self):
"instance_id": lineitem_resourceid,
"timestamp": lineitem_usagestartdate,
"expiration": lineitem_usageenddate,
"measurements": [{"value": product_vcpu, "uom": "vCPUs"}],
"measurements": [{"value": product_vcpu, "metric_id": "vCPUs"}],
"cloud_provider": "AWS",
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down Expand Up @@ -294,7 +294,7 @@ def test_build_azure_subs_dict(self):
"instance_id": lineitem_resourceid,
"timestamp": lineitem_usagestartdate,
"expiration": lineitem_usageenddate,
"measurements": [{"value": product_vcpu, "uom": "vCPUs"}],
"measurements": [{"value": product_vcpu, "metric_id": "vCPUs"}],
"cloud_provider": "AWS",
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down Expand Up @@ -355,7 +355,7 @@ def test_build_azure_subs_dict_sap_role(self):
"instance_id": lineitem_resourceid,
"timestamp": lineitem_usagestartdate,
"expiration": lineitem_usageenddate,
"measurements": [{"value": product_vcpu, "uom": "vCPUs"}],
"measurements": [{"value": product_vcpu, "metric_id": "vCPUs"}],
"cloud_provider": "AWS",
"hardware_type": "Cloud",
"product_ids": product_ids,
Expand Down

0 comments on commit 70a48ce

Please sign in to comment.