Class VMEventHistoryCollectorMonitor


  • @Sample(name="vmevent-history-collector-monitor",
            description="This sample is responsible for creating EventHistoryCollector filtered for a single VM and monitoring Events using the latestPage attribute of the EventHistoryCollector.")
    public class VMEventHistoryCollectorMonitor
    extends ConnectedVimServiceBase
     VMEventHistoryCollectorMonitor
    
     This sample is responsible for creating EventHistoryCollector
     filtered for a single VM and monitoring Events using the
     latestPage attribute of the EventHistoryCollector.
    
     Parameters:
     url        [required] : url of the web service
     username   [required] : username for the authentication
     password   [required] : password for the authentication
     vmname     [required] : virtual machine name
    
     Command Line:
     run.bat com.vmware.events.VMEventHistoryCollectorMonitor --url [webserviceurl]
     --username [username] --password  [password] --vmname  [vm name]
     
    • Constructor Detail

      • VMEventHistoryCollectorMonitor

        public VMEventHistoryCollectorMonitor()
    • Method Detail

      • setVmName

        @Option(name="vmname",
                description="virtual machine name")
        public void setVmName​(java.lang.String name)
      • run

        @Action
        public void run()
                 throws com.vmware.vim25.RuntimeFaultFaultMsg,
                        com.vmware.vim25.InvalidPropertyFaultMsg,
                        com.vmware.vim25.InvalidStateFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg
        com.vmware.vim25.InvalidStateFaultMsg