ManageIQ/manageiq-automation_engine

View on GitHub
lib/miq_automation_engine/service_models/miq_ae_service_event_stream.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
90%
module MiqAeMethodService
  class MiqAeServiceEventStream < MiqAeServiceModelBase
    expose :ems,                   :association => true, :method => :ext_management_system
    expose :src_vm,                :association => true, :method => :src_vm_or_template
    expose :vm,                    :association => true, :method => :src_vm_or_template
    expose :src_host,              :association => true
    expose :host,                  :association => true, :method => :src_host
    expose :dest_vm,               :association => true, :method => :dest_vm_or_template

    def event_namespace
      object_class.name
    end
  end
end