app/controllers/miq_policy_controller/alert_profiles.rb
# Get information for an alert profile
Get information for an alert profile
Get information for an alert profile
def alert_profile_get_info(alert_profile)
    @record = @alert_profile = alert_profile
    aa = @alert_profile.get_assigned_tos
    @alert_profile_tag = Classification.find(aa[:tags].first.first.parent_id) unless aa[:tags].empty?
    @alert_profile_alerts = @alert_profile.miq_alerts.sort_by { |a| a.description.downcase }
    @right_cell_text = _("%{model} \"%{name}\"") % {:model => ui_lookup(:model => "MiqAlertSet"), :name => alert_profile.description}
    @right_cell_div = "alert_profile_details"
  end
def alert_profile_get_info ( alert_profile ) @record = @alert_profile = alert_profile aa = @alert_profile . get_assigned_tos @alert_profile_tag = Classification . find ( aa [ :tags ] . first . first . parent_id ) unless aa [ :tags ] . empty? @alert_profile_alerts = @alert_profile . miq_alerts . sort_by { | a | a . description . downcase } @right_cell_text = _ ( "%{model} \"%{name}\"" ) % { :model => ui_lookup ( :model => "MiqAlertSet" ) , :name => alert_profile . description } @right_cell_div = "alert_profile_details" end
Get information for an alert profile
Get information for an alert profile
alert_profile
<not_specific>