Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COST-4744] Azure Data Transfer Generator #498

Merged
merged 8 commits into from
May 4, 2024

Conversation

cgoodfred
Copy link
Contributor

@cgoodfred cgoodfred commented Apr 29, 2024

Creates a data transfer generator for Azure (DTGenerator) that will create data transfer records and allow specifying a direction and usage/rate. The following input to a yaml will generate outbound data with a:

  • MeterName of Standard Data Processed - Egress
  • Quantity of 7.5
  • Effective Price of 0.01
  • CostInBillingCurrency of 0.075 per day
  - DTGenerator: 
      start_date: 2024-03-01
      meter_id: 55555555-4444-3333-2222-111111111128
      data_direction: "out"
      resource_location: "US East"
      instance_id: '/subscriptions/99999999-9999-9999-9999-999999999999/resourceGroups/koku-99hqd-rg/providers/Microsoft.Compute/virtualMachines/azure_compute1'
      usage_quantity: 7.5
      resource_rate: 0.01
      tags:
        version: Mars
        dashed-key-on-azure: dashed-value

This will create a row that contains 3 specific pieces of information:

  • a service/metercategory of Virtual Network
  • a consumed service of microsoft.compute
  • additional info will contain a datatransferdirection of datatrin or datatrout for inbound vs outbound data

@cgoodfred cgoodfred self-assigned this Apr 29, 2024
@cgoodfred cgoodfred marked this pull request as ready for review April 29, 2024 13:55
Copy link

codecov bot commented Apr 29, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 93.5%. Comparing base (47697e3) to head (9ad3ed5).

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #498     +/-   ##
=======================================
+ Coverage   93.5%   93.5%   +0.1%     
=======================================
  Files         60      61      +1     
  Lines       4638    4661     +23     
  Branches     666     668      +2     
=======================================
+ Hits        4335    4359     +24     
+ Misses       158     157      -1     
  Partials     145     145             

@cgoodfred cgoodfred merged commit db45c65 into main May 4, 2024
4 checks passed
@cgoodfred cgoodfred deleted the COST-4744-azure-data-transfer-generator branch May 4, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants