Class: LogStash::Instrument::PeriodicPoller::Cgroup::CpuStats
- Inherits:
-
Object
- Object
- LogStash::Instrument::PeriodicPoller::Cgroup::CpuStats
- Defined in:
- lib/logstash/instrument/periodic_poller/cgroup.rb
Instance Attribute Summary collapse
-
#number_of_elapsed_periods ⇒ Object
readonly
Returns the value of attribute number_of_elapsed_periods.
-
#number_of_times_throttled ⇒ Object
readonly
Returns the value of attribute number_of_times_throttled.
-
#time_throttled_nanos ⇒ Object
readonly
Returns the value of attribute time_throttled_nanos.
Instance Method Summary collapse
-
#initialize(number_of_elapsed_periods, number_of_times_throttled, time_throttled_nanos) ⇒ CpuStats
constructor
A new instance of CpuStats.
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_periods ⇒ Object (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_throttled ⇒ Object (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_nanos ⇒ Object (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 |