@Sample(name="history",
description="reads performance measurements from the current time")
public class History
extends ConnectedVimServiceBase
History 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
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
History() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setCountername(java.lang.String countername) |
void |
setDuration(int duration) |
void |
setGroupname(java.lang.String groupname) |
void |
setHostname(java.lang.String hostname) |
void |
setInterval(java.lang.String interval) |
void |
setStarttime(int starttime) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="hostname",
description="name of the host")
public void setHostname(java.lang.String hostname)
@Option(name="interval",
description="sampling interval in seconds.")
public void setInterval(java.lang.String interval)
@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)
@Option(name="duration",
required=false,
description="Duration for which samples needs to be taken")
public void setDuration(int duration)
@Option(name="groupname",
description="[cpu|mem]")
public void setGroupname(java.lang.String groupname)
@Option(name="countername",
description="usage (for cpu and mem), overhead (for mem)")
public void setCountername(java.lang.String countername)
@Action
public void run()
throws java.lang.Exception
java.lang.Exception