Class: One2Influx::Cluster
- Defined in:
- lib/one2influx/one_object/cluster.rb
Overview
Representation of ONE cluster
Instance Attribute Summary
Attributes inherited from OneObject
Instance Method Summary collapse
-
#initialize(xml, client, hosts_xml) ⇒ Cluster
constructor
A new instance of Cluster.
Methods inherited from OneObject
#method_missing, #serialize_as_points
Constructor Details
#initialize(xml, client, hosts_xml) ⇒ Cluster
Returns a new instance of Cluster.
9 10 11 12 13 14 15 16 17 |
# File 'lib/one2influx/one_object/cluster.rb', line 9 def initialize(xml, client, hosts_xml) # Load configuration @tag_names = $CFG.storage[:cluster][:tags] @metric_names = $CFG.storage[:cluster][:metrics] @custom_metric_names = $CFG.storage[:cluster][:cust_metrics] @hosts_xml = hosts_xml super(xml, client) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class One2Influx::OneObject