Class: Riemann::Tools::Opensearch::Allocation

Inherits:
JsonMapper
  • Object
show all
Defined in:
lib/riemann/tools/opensearch.rb

Defined Under Namespace

Classes: Disk

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsonMapper

#normalize

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

#diskObject

Returns the value of attribute disk.



41
42
43
# File 'lib/riemann/tools/opensearch.rb', line 41

def disk
  @disk
end

#hostObject

Returns the value of attribute host.



41
42
43
# File 'lib/riemann/tools/opensearch.rb', line 41

def host
  @host
end

#ipObject

Returns the value of attribute ip.



41
42
43
# File 'lib/riemann/tools/opensearch.rb', line 41

def ip
  @ip
end

#nodeObject

Returns the value of attribute node.



41
42
43
# File 'lib/riemann/tools/opensearch.rb', line 41

def node
  @node
end

#shardsObject

Returns the value of attribute shards.



41
42
43
# File 'lib/riemann/tools/opensearch.rb', line 41

def shards
  @shards
end