Class: JmxAttributeMonitoring
- Inherits:
-
Object
- Object
- JmxAttributeMonitoring
- Defined in:
- lib/monitor/client/jmx/jmx_attr_monitoring.rb
Constant Summary collapse
- TESTOP =
["=", "!=", "<", ">"]
Instance Attribute Summary collapse
-
#attributeName ⇒ Object
Returns the value of attribute attributeName.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #get_attribute_name ⇒ Object
-
#initialize(attr, ind, val, sev) ⇒ JmxAttributeMonitoring
constructor
A new instance of JmxAttributeMonitoring.
- #raw_severity ⇒ Object
- #set_attribute_name(attr) ⇒ Object
- #set_operator(op) ⇒ Object
- #set_severity(sev) ⇒ Object
- #set_value(val) ⇒ Object
Constructor Details
#initialize(attr, ind, val, sev) ⇒ JmxAttributeMonitoring
Returns a new instance of JmxAttributeMonitoring.
5 6 7 8 9 10 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 5 def initialize (attr, ind, val, sev) @attributeName=attr @operator=ind @value=val @severity=sev end |
Instance Attribute Details
#attributeName ⇒ Object
Returns the value of attribute attributeName.
3 4 5 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3 def attributeName @attributeName end |
#operator ⇒ Object
Returns the value of attribute operator.
3 4 5 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3 def operator @operator end |
#severity ⇒ Object
Returns the value of attribute severity.
3 4 5 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3 def severity @severity end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3 def value @value end |
Instance Method Details
#get_attribute_name ⇒ Object
12 13 14 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 12 def get_attribute_name() return @attributeName end |
#raw_severity ⇒ Object
32 33 34 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 32 def raw_severity() return @severity.to_i end |
#set_attribute_name(attr) ⇒ Object
16 17 18 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 16 def set_attribute_name(attr) @attributeName=attr end |
#set_operator(op) ⇒ Object
20 21 22 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 20 def set_operator(op) @operator=op end |
#set_severity(sev) ⇒ Object
28 29 30 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 28 def set_severity(sev) @severity=sev end |
#set_value(val) ⇒ Object
24 25 26 |
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 24 def set_value(val) @value=val end |