Class CPUUtilization

    • Method Detail

      • user

        public final Double user()

        Percentage of time that the CPU has spent in the User state over the last 10 seconds.

        Returns:
        Percentage of time that the CPU has spent in the User state over the last 10 seconds.
      • nice

        public final Double nice()

        Available on Linux environments only.

        Percentage of time that the CPU has spent in the Nice state over the last 10 seconds.

        Returns:
        Available on Linux environments only.

        Percentage of time that the CPU has spent in the Nice state over the last 10 seconds.

      • system

        public final Double system()

        Available on Linux environments only.

        Percentage of time that the CPU has spent in the System state over the last 10 seconds.

        Returns:
        Available on Linux environments only.

        Percentage of time that the CPU has spent in the System state over the last 10 seconds.

      • idle

        public final Double idle()

        Percentage of time that the CPU has spent in the Idle state over the last 10 seconds.

        Returns:
        Percentage of time that the CPU has spent in the Idle state over the last 10 seconds.
      • ioWait

        public final Double ioWait()

        Available on Linux environments only.

        Percentage of time that the CPU has spent in the I/O Wait state over the last 10 seconds.

        Returns:
        Available on Linux environments only.

        Percentage of time that the CPU has spent in the I/O Wait state over the last 10 seconds.

      • irq

        public final Double irq()

        Available on Linux environments only.

        Percentage of time that the CPU has spent in the IRQ state over the last 10 seconds.

        Returns:
        Available on Linux environments only.

        Percentage of time that the CPU has spent in the IRQ state over the last 10 seconds.

      • softIRQ

        public final Double softIRQ()

        Available on Linux environments only.

        Percentage of time that the CPU has spent in the SoftIRQ state over the last 10 seconds.

        Returns:
        Available on Linux environments only.

        Percentage of time that the CPU has spent in the SoftIRQ state over the last 10 seconds.

      • privileged

        public final Double privileged()

        Available on Windows environments only.

        Percentage of time that the CPU has spent in the Privileged state over the last 10 seconds.

        Returns:
        Available on Windows environments only.

        Percentage of time that the CPU has spent in the Privileged state over the last 10 seconds.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)