ManageIQ/manageiq

View on GitHub
product/alerts/rss/vmpowerevent.yml

Summary

Maintainability
Test Coverage
# Feed metadata
roles: "change_managers operators"
feed_title: "VM Power events"
feed_description: "VMware Virtual machines that were powered on or off"
feed_link: "/alert/rss?feed=vmpowerevent"

# Item metadata
item_title: "#{rec.vm_name}"

# item_description: "#{rec.vm_name} was #{rec.event_type == "VmPoweredOnEvent" ? "powered on" : "powered off"} on #{rec.created_on}"
item_description: |-
    <script>
      if rec.event_type == "VmPoweredOnEvent"
        "A power on event for VM: #{rec.vm_name} was completed on #{rec.created_on}"
      else
        "VM: #{rec.vm_name} was powered off on #{rec.created_on}"
      end
    </script>
item_link: "/vm/show/#{rec.vm_or_template_id}"
item_class: EmsEvent

# Search criteria
#   search_method: find, nil or a custom method name
#   Custom method is called the following way:
#     <item_class>.method(<search_method>).<name>, <options>)
#   A nil value or a value of "find" use the default class find method
search_method:
search_conditions: "event_type = 'VmPoweredOffEvent' OR event_type = 'VmPoweredOnEvent'"
limit_to_time:
limit_to_count:
orderby:
  :created_on: :desc

# tags_include: any or all
tag_ns:
tags_include:
tags: