ManageIQ/manageiq

View on GitHub
app/models/container_group_performance.rb

Summary

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

  belongs_to :container_group, :foreign_key => :resource_id, :class_name => "ContainerGroup"

  def self.display_name(number = 1)
    n_('Pod Performance', 'Pod Performances', number)
  end
end