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

Add rates to chargeback report #17142

Merged
merged 6 commits into from
Mar 20, 2018

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Mar 13, 2018

Based on recent research, I consider beneficial to expose amounts of rates in chargeback report for each metric. It will make clearer chargeback calculations in reports.
Such rate columns are offer-able as a normal column in available columns in report definition.

Form of displaying, for example:

CPU Used Cpu Used Rate CPU Used Cost
2.17 MHz 0.0/0.02 €32.23
Description: fixed hourly rate/variable hourly rate

screen shot.
screen shot 2018-03-13 at 09 24 35

Links

@miq-bot add_label chargeback, enhancement

@miq-bot assign @gtanzillo

@@ -22,6 +22,10 @@ class ChargebackContainerImage < Chargeback
:total_cost => :float,
)

def self.refresh_dynamic_metric_columns
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method should be put in the base model and removed from here and the container project model.

@lpichler lpichler force-pushed the add_rates_chargeback_report branch from a66d505 to b73e266 Compare March 16, 2018 14:22
@miq-bot
Copy link
Member

miq-bot commented Mar 16, 2018

Checked commits lpichler/manageiq@17d2348~...b73e266 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
5 files checked, 0 offenses detected
Everything looks fine. 🍪

@gtanzillo gtanzillo added this to the Sprint 82 Ending Mar 26, 2018 milestone Mar 20, 2018
@gtanzillo gtanzillo merged commit 90b2801 into ManageIQ:master Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants