Class: LogStash::Instrument::PeriodicPoller::Cgroup::CpuStats

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/instrument/periodic_poller/cgroup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number_of_elapsed_periods, number_of_times_throttled, time_throttled_nanos) ⇒ CpuStats

Returns a new instance of CpuStats.



70
71
72
73
74
# File 'lib/logstash/instrument/periodic_poller/cgroup.rb', line 70

def initialize(number_of_elapsed_periods, number_of_times_throttled, time_throttled_nanos)
  @number_of_elapsed_periods = number_of_elapsed_periods
  @number_of_times_throttled = number_of_times_throttled
  @time_throttled_nanos = time_throttled_nanos
end

Instance Attribute Details

#number_of_elapsed_periodsObject (readonly)

Returns the value of attribute number_of_elapsed_periods.



68
69
70
# File 'lib/logstash/instrument/periodic_poller/cgroup.rb', line 68

def number_of_elapsed_periods
  @number_of_elapsed_periods
end

#number_of_times_throttledObject (readonly)

Returns the value of attribute number_of_times_throttled.



68
69
70
# File 'lib/logstash/instrument/periodic_poller/cgroup.rb', line 68

def number_of_times_throttled
  @number_of_times_throttled
end

#time_throttled_nanosObject (readonly)

Returns the value of attribute time_throttled_nanos.



68
69
70
# File 'lib/logstash/instrument/periodic_poller/cgroup.rb', line 68

def time_throttled_nanos
  @time_throttled_nanos
end