Class: JmxAttributeMonitoring

Inherits:
Object
  • Object
show all
Defined in:
lib/monitor/client/jmx/jmx_attr_monitoring.rb

Constant Summary collapse

TESTOP =
["=", "!=", "<", ">"]

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributeNameObject

Returns the value of attribute attributeName.



3
4
5
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3

def attributeName
  @attributeName
end

#operatorObject

Returns the value of attribute operator.



3
4
5
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3

def operator
  @operator
end

#severityObject

Returns the value of attribute severity.



3
4
5
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 3

def severity
  @severity
end

#valueObject

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_nameObject



12
13
14
# File 'lib/monitor/client/jmx/jmx_attr_monitoring.rb', line 12

def get_attribute_name()
	return @attributeName
end

#raw_severityObject



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