Class: Riemann::Tools::Opensearch::Health

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

Defined Under Namespace

Classes: Node

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsonMapper

#normalize

Constructor Details

#initialize(values) ⇒ Health

Returns a new instance of Health.



56
57
58
59
# File 'lib/riemann/tools/opensearch.rb', line 56

def initialize(values)
  @node = Node.new
  super
end

Instance Attribute Details

#active_shards_percentObject

Returns the value of attribute active_shards_percent.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def active_shards_percent
  @active_shards_percent
end

#clusterObject

Returns the value of attribute cluster.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def cluster
  @cluster
end

#discovered_cluster_managerObject

Returns the value of attribute discovered_cluster_manager.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def discovered_cluster_manager
  @discovered_cluster_manager
end

#epochObject

Returns the value of attribute epoch.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def epoch
  @epoch
end

#initObject

Returns the value of attribute init.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def init
  @init
end

#max_task_wait_timeObject

Returns the value of attribute max_task_wait_time.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def max_task_wait_time
  @max_task_wait_time
end

#nodeObject

Returns the value of attribute node.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def node
  @node
end

#pending_tasksObject

Returns the value of attribute pending_tasks.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def pending_tasks
  @pending_tasks
end

#priObject

Returns the value of attribute pri.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def pri
  @pri
end

#reloObject

Returns the value of attribute relo.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def relo
  @relo
end

#shardsObject

Returns the value of attribute shards.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def shards
  @shards
end

#statusObject

Returns the value of attribute status.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def status
  @status
end

#timestampObject

Returns the value of attribute timestamp.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def timestamp
  @timestamp
end

#unassignObject

Returns the value of attribute unassign.



54
55
56
# File 'lib/riemann/tools/opensearch.rb', line 54

def unassign
  @unassign
end