Skip to content

Commit

Permalink
Introduce supports feature: metrics: Capacity&Utilization data
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Jun 6, 2017
1 parent 8e7f063 commit ec19fba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/metric/ci_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ module Metric::CiMixin
Metric::LongTermAverages::AVG_METHODS_WITHOUT_OVERHEAD.each do |vcol|
virtual_column vcol, :type => :float, :uses => :vim_performance_operating_ranges
end

supports :capture do
unless self.class.parent::MetricsCapture.instance_methods.include?(:perf_collect_metrics)
unsupported_reason_add(:metrics, _('This provider does not support metrics collection'))
end
end
end

def has_perf_data?
Expand Down
1 change: 1 addition & 0 deletions app/models/mixins/supports_feature_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module SupportsFeatureMixin
:launch_cockpit => 'Launch Cockpit UI',
:live_migrate => 'Live Migration',
:migrate => 'Migration',
:capture => 'Capture of Capacity & Utilization Metrics',
:provisioning => 'Provisioning',
:publish => 'Publishing',
:quick_stats => 'Quick Stats',
Expand Down

0 comments on commit ec19fba

Please sign in to comment.