Class: Groonga::GrntestLog::EnvironmentEvent
- Inherits:
-
Object
- Object
- Groonga::GrntestLog::EnvironmentEvent
- Defined in:
- lib/groonga/grntest-log.rb
Instance Method Summary collapse
-
#bit ⇒ Object
-
#core ⇒ Object
-
#cpu ⇒ Object
-
#date ⇒ Object
-
#disk_size ⇒ Object
-
#hdd ⇒ Object
-
#host ⇒ Object
-
#initialize(environment) ⇒ EnvironmentEvent
constructor
A new instance of EnvironmentEvent.
-
#locked_memory ⇒ Object
-
#mlocked ⇒ Object
-
#os ⇒ Object
-
#port ⇒ Object
-
#ram ⇒ Object
-
#script ⇒ Object
-
#total_memory ⇒ Object
-
#unevictable ⇒ Object
-
#unevictable_memory ⇒ Object
-
#user ⇒ Object
-
#version ⇒ Object
Constructor Details
#initialize(environment) ⇒ EnvironmentEvent
Returns a new instance of EnvironmentEvent.
26 27 28 |
# File 'lib/groonga/grntest-log.rb', line 26 def initialize(environment) @environment = environment end |
Instance Method Details
#bit ⇒ Object
46 47 48 |
# File 'lib/groonga/grntest-log.rb', line 46 def bit @environment["bit"] end |
#core ⇒ Object
50 51 52 |
# File 'lib/groonga/grntest-log.rb', line 50 def core @environment["core"] end |
#cpu ⇒ Object
42 43 44 |
# File 'lib/groonga/grntest-log.rb', line 42 def cpu @environment["cpu"] end |
#date ⇒ Object
38 39 40 |
# File 'lib/groonga/grntest-log.rb', line 38 def date Time.parse(@environment["date"]) end |
#disk_size ⇒ Object
82 83 84 |
# File 'lib/groonga/grntest-log.rb', line 82 def disk_size parse_size_with_unit(hdd) end |
#hdd ⇒ Object
78 79 80 |
# File 'lib/groonga/grntest-log.rb', line 78 def hdd @environment["HDD"] end |
#host ⇒ Object
90 91 92 |
# File 'lib/groonga/grntest-log.rb', line 90 def host @environment["HOST"] end |
#locked_memory ⇒ Object
74 75 76 |
# File 'lib/groonga/grntest-log.rb', line 74 def locked_memory parse_size_with_unit(mlocked) end |
#mlocked ⇒ Object
62 63 64 |
# File 'lib/groonga/grntest-log.rb', line 62 def mlocked @environment["Mlocked"] end |
#os ⇒ Object
86 87 88 |
# File 'lib/groonga/grntest-log.rb', line 86 def os @environment["OS"] end |
#port ⇒ Object
94 95 96 |
# File 'lib/groonga/grntest-log.rb', line 94 def port @environment["PORT"] end |
#ram ⇒ Object
54 55 56 |
# File 'lib/groonga/grntest-log.rb', line 54 def ram @environment["RAM"] end |
#script ⇒ Object
30 31 32 |
# File 'lib/groonga/grntest-log.rb', line 30 def script @environment["script"] end |
#total_memory ⇒ Object
66 67 68 |
# File 'lib/groonga/grntest-log.rb', line 66 def total_memory parse_size_with_unit(ram) end |
#unevictable ⇒ Object
58 59 60 |
# File 'lib/groonga/grntest-log.rb', line 58 def unevictable @environment["Unevictable"] end |
#unevictable_memory ⇒ Object
70 71 72 |
# File 'lib/groonga/grntest-log.rb', line 70 def unevictable_memory parse_size_with_unit(unevictable) end |
#user ⇒ Object
34 35 36 |
# File 'lib/groonga/grntest-log.rb', line 34 def user @environment["user"] end |
#version ⇒ Object
98 99 100 |
# File 'lib/groonga/grntest-log.rb', line 98 def version @environment["VERSION"] end |