@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]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
VMEventHistoryCollectorMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setVmName(java.lang.String name) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmname",
description="virtual machine name")
public void setVmName(java.lang.String name)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.InvalidStateFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.InvalidStateFaultMsg