Class: IControl::System::CPUUsage

Inherits:
Base::Struct
  • Object
show all
Defined in:
lib/icontrol/system.rb,
lib/icontrol/system.rb

Overview

This structure has been deprecated; use CPUUsageExtendedInformation and related structures instead. A struct that contains the CPU usage for each CPU.

Instance Attribute Summary collapse

Instance Attribute Details

#cpu_idNumeric

The numeric ID of the processor, i.e. 1, 2, 3, 4 .…

Returns:

  • (Numeric)

    the current value of cpu_id



99
100
101
# File 'lib/icontrol/system.rb', line 99

def cpu_id
  @cpu_id
end

#idleIControl::Common::ULong64

The time spent by the processor doing nothing.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def idle
  @idle
end

#iowaitIControl::Common::ULong64

The time spent by the processor waiting for external I/O to complete.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def iowait
  @iowait
end

#irqIControl::Common::ULong64

The time spent by the processor servicing hardware interrupts.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def irq
  @irq
end

#nicedIControl::Common::ULong64

The time spent by the processor running niced processes.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def niced
  @niced
end

#softirqIControl::Common::ULong64

The time spent by the processor servicing soft interrupts.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def softirq
  @softirq
end

#systemIControl::Common::ULong64

The time spent by the processor servicing system calls.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def system
  @system
end

#userIControl::Common::ULong64

The time spent by the processor in user context.

Returns:



99
100
101
# File 'lib/icontrol/system.rb', line 99

def user
  @user
end