Package com.vmware.performance
Class History
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.performance.History
-
@Sample(name="history", description="reads performance measurements from the current time") public class History extends ConnectedVimServiceBaseHistory This sample reads performance measurements from the current time. Parameters: url [required]: url of the web service. username [required]: username for the authentication Password [required]: password for the authentication hostname [required]: name of the host interval [required]: sampling interval in seconds. starttime: [optional]: In minutes, to specify what's start time from which samples needs to be collected duration [optional]: Duration for which samples needs to be taken groupname [required]: cpu, mem countername [required]: usage (for cpu and mem), overhead (for mem) Command Line: Display performance measurements of extra CPU usage run.bat com.vmware.performance.History --url [webserviceurl] --username [username] --password [password] --hostname [name of the history server] --groupname cpu --countername usage --interval 300 Display performance measurements from the past should be displayed as per the counter and the group specified. run.bat com.vmware.performance.History --url [webserviceurl] --username [username] --password [password]--hostname [name of the history server] --groupname mem --countername overhead --interval 300
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description History()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetCountername(java.lang.String countername)voidsetDuration(int duration)voidsetGroupname(java.lang.String groupname)voidsetHostname(java.lang.String hostname)voidsetInterval(java.lang.String interval)voidsetStarttime(int starttime)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHostname
@Option(name="hostname", description="name of the host") public void setHostname(java.lang.String hostname)
-
setInterval
@Option(name="interval", description="sampling interval in seconds.") public void setInterval(java.lang.String interval)
-
setStarttime
@Option(name="starttime", required=false, description="In minutes, to specify what\'s start time from which samples needs to be collected") public void setStarttime(int starttime)
-
setDuration
@Option(name="duration", required=false, description="Duration for which samples needs to be taken") public void setDuration(int duration)
-
setGroupname
@Option(name="groupname", description="[cpu|mem]") public void setGroupname(java.lang.String groupname)
-
setCountername
@Option(name="countername", description="usage (for cpu and mem), overhead (for mem)") public void setCountername(java.lang.String countername)
-
run
@Action public void run() throws java.lang.Exception- Throws:
java.lang.Exception
-
-