Skip to content

Commit

Permalink
Merge pull request #15261 from isimluk/do-not-offer-useless-metrics
Browse files Browse the repository at this point in the history
Do not offer report columns that are useless
  • Loading branch information
gtanzillo authored Jun 6, 2017
2 parents d2f04e9 + 22570ac commit d07a5ef
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/models/chargeback_vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class ChargebackVm < Chargeback
:cpu_used_cost => :float,
:cpu_used_metric => :float,
:cpu_cost => :float,
:cpu_metric => :float,
:disk_io_used_cost => :float,
:disk_io_used_metric => :float,
:fixed_compute_1_cost => :float,
Expand All @@ -24,15 +23,13 @@ class ChargebackVm < Chargeback
:memory_used_cost => :float,
:memory_used_metric => :float,
:memory_cost => :float,
:memory_metric => :float,
:net_io_used_cost => :float,
:net_io_used_metric => :float,
:storage_allocated_cost => :float,
:storage_allocated_metric => :float,
:storage_used_cost => :float,
:storage_used_metric => :float,
:storage_cost => :float,
:storage_metric => :float,
:total_cost => :float,
)

Expand Down Expand Up @@ -76,7 +73,6 @@ def self.report_col_options
"cpu_allocated_cost" => {:grouping => [:total]},
"cpu_allocated_metric" => {:grouping => [:total]},
"cpu_cost" => {:grouping => [:total]},
"cpu_metric" => {:grouping => [:total]},
"cpu_used_cost" => {:grouping => [:total]},
"cpu_used_metric" => {:grouping => [:total]},
"disk_io_used_cost" => {:grouping => [:total]},
Expand All @@ -90,15 +86,13 @@ def self.report_col_options
"memory_allocated_cost" => {:grouping => [:total]},
"memory_allocated_metric" => {:grouping => [:total]},
"memory_cost" => {:grouping => [:total]},
"memory_metric" => {:grouping => [:total]},
"memory_used_cost" => {:grouping => [:total]},
"memory_used_metric" => {:grouping => [:total]},
"net_io_used_cost" => {:grouping => [:total]},
"net_io_used_metric" => {:grouping => [:total]},
"storage_allocated_cost" => {:grouping => [:total]},
"storage_allocated_metric" => {:grouping => [:total]},
"storage_cost" => {:grouping => [:total]},
"storage_metric" => {:grouping => [:total]},
"storage_used_cost" => {:grouping => [:total]},
"storage_used_metric" => {:grouping => [:total]},
"total_cost" => {:grouping => [:total]}
Expand Down

0 comments on commit d07a5ef

Please sign in to comment.