Skip to content

Commit

Permalink
[COST-4740] Model updates for OCP on Cloud project daily summary tabl…
Browse files Browse the repository at this point in the history
…es (#5087)
  • Loading branch information
cgoodfred authored May 9, 2024
1 parent ccbd7b6 commit 89445a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions koku/reporting/provider/aws/openshift/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,9 @@ class Meta:
cost_entry_bill = models.ForeignKey("AWSCostEntryBill", on_delete=models.CASCADE, null=True)
product_code = models.TextField(null=False)
product_family = models.CharField(max_length=150, null=True)
infrastructure_data_in_gigabytes = models.DecimalField(max_digits=33, decimal_places=15, null=True)
infrastructure_data_out_gigabytes = models.DecimalField(max_digits=33, decimal_places=15, null=True)
data_transfer_direction = models.TextField(null=True)
instance_type = models.CharField(max_length=50, null=True)
usage_account_id = models.CharField(max_length=50, null=False)
account_alias = models.ForeignKey("AWSAccountAlias", on_delete=models.SET_NULL, null=True)
Expand Down
3 changes: 3 additions & 0 deletions koku/reporting/provider/azure/openshift/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ class Meta:
subscription_name = models.TextField(null=True)
instance_type = models.TextField(null=True)
service_name = models.TextField(null=True)
infrastructure_data_in_gigabytes = models.DecimalField(max_digits=33, decimal_places=15, null=True)
infrastructure_data_out_gigabytes = models.DecimalField(max_digits=33, decimal_places=15, null=True)
data_transfer_direction = models.TextField(null=True)
resource_location = models.TextField(null=True)
usage_quantity = models.DecimalField(max_digits=24, decimal_places=9, null=True)
unit_of_measure = models.TextField(null=True)
Expand Down
3 changes: 3 additions & 0 deletions koku/reporting/provider/gcp/openshift/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class Meta:
instance_type = models.CharField(max_length=50, null=True)
service_id = models.CharField(max_length=256, null=True)
service_alias = models.CharField(max_length=256, null=True, blank=True)
infrastructure_data_in_gigabytes = models.DecimalField(max_digits=33, decimal_places=15, null=True)
infrastructure_data_out_gigabytes = models.DecimalField(max_digits=33, decimal_places=15, null=True)
data_transfer_direction = models.TextField(null=True)
sku_id = models.CharField(max_length=256, null=True)
sku_alias = models.CharField(max_length=256, null=True)
region = models.TextField(null=True)
Expand Down

0 comments on commit 89445a3

Please sign in to comment.