ManageIQ/manageiq

View on GitHub
app/models/container_performance.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
80%
class ContainerPerformance < MetricRollup
  default_scope { where(:resource_type => 'Container').where.not(:resource_id => nil) }

  belongs_to :container_node, :foreign_key => :resource_id, :class_name => "Container"

  def self.display_name(number = 1)
    n_('Performance - Container', 'Performance - Containers', number)
  end
end