Class: JayAPI::Elasticsearch::Stats::Node
- Inherits:
-
Object
- Object
- JayAPI::Elasticsearch::Stats::Node
- Defined in:
- lib/jay_api/elasticsearch/stats/node.rb,
lib/jay_api/elasticsearch/stats/node/storage.rb
Overview
Holds information about one of the nodes in the Elasticsearch cluster.
Defined Under Namespace
Classes: Storage
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, data) ⇒ Node
constructor
A new instance of Node.
-
#storage ⇒ JayAPI::Elasticsearch::Stats::Node::Storage
Storage information about the node.
Constructor Details
#initialize(name, data) ⇒ Node
Returns a new instance of Node.
15 16 17 18 |
# File 'lib/jay_api/elasticsearch/stats/node.rb', line 15 def initialize(name, data) @name = name @data = data end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/jay_api/elasticsearch/stats/node.rb', line 11 def name @name end |
Instance Method Details
#storage ⇒ JayAPI::Elasticsearch::Stats::Node::Storage
Returns Storage information about the node.
24 25 26 |
# File 'lib/jay_api/elasticsearch/stats/node.rb', line 24 def storage @storage ||= ::JayAPI::Elasticsearch::Stats::Node::Storage.new(fs_totals) end |