Class History


  • @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
     
    • Constructor Detail

      • History

        public History()
    • 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