Class: Riemann::Tools::Opensearch::Allocation
- Inherits:
-
JsonMapper
- Object
- JsonMapper
- Riemann::Tools::Opensearch::Allocation
- Defined in:
- lib/riemann/tools/opensearch.rb
Defined Under Namespace
Classes: Disk
Instance Attribute Summary collapse
-
#disk ⇒ Object
Returns the value of attribute disk.
-
#host ⇒ Object
Returns the value of attribute host.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#node ⇒ Object
Returns the value of attribute node.
-
#shards ⇒ Object
Returns the value of attribute shards.
Instance Method Summary collapse
-
#initialize(values) ⇒ Allocation
constructor
A new instance of Allocation.
Methods inherited from JsonMapper
Constructor Details
#initialize(values) ⇒ Allocation
Returns a new instance of Allocation.
43 44 45 46 |
# File 'lib/riemann/tools/opensearch.rb', line 43 def initialize(values) @disk = Struct.new(:indices, :used, :avail, :total, :percent).new super end |
Instance Attribute Details
#disk ⇒ Object
Returns the value of attribute disk.
41 42 43 |
# File 'lib/riemann/tools/opensearch.rb', line 41 def disk @disk end |
#host ⇒ Object
Returns the value of attribute host.
41 42 43 |
# File 'lib/riemann/tools/opensearch.rb', line 41 def host @host end |
#ip ⇒ Object
Returns the value of attribute ip.
41 42 43 |
# File 'lib/riemann/tools/opensearch.rb', line 41 def ip @ip end |
#node ⇒ Object
Returns the value of attribute node.
41 42 43 |
# File 'lib/riemann/tools/opensearch.rb', line 41 def node @node end |
#shards ⇒ Object
Returns the value of attribute shards.
41 42 43 |
# File 'lib/riemann/tools/opensearch.rb', line 41 def shards @shards end |