Class: IceMX::Metrics
- Inherits:
-
Ice::Value
- Object
- Ice::Value
- IceMX::Metrics
- Defined in:
- lib/Ice/Metrics.rb
Direct Known Subclasses
ChildInvocationMetrics, ConnectionMetrics, DispatchMetrics, InvocationMetrics, SessionMetrics, SubscriberMetrics, ThreadMetrics, TopicMetrics
Instance Attribute Summary collapse
-
#current ⇒ Object
Returns the value of attribute current.
-
#failures ⇒ Object
Returns the value of attribute failures.
-
#id ⇒ Object
Returns the value of attribute id.
-
#total ⇒ Object
Returns the value of attribute total.
-
#totalLifetime ⇒ Object
Returns the value of attribute totalLifetime.
Attributes inherited from Ice::Value
Instance Method Summary collapse
-
#initialize(id = '', total = 0, current = 0, totalLifetime = 0, failures = 0) ⇒ Metrics
constructor
A new instance of Metrics.
Methods inherited from Ice::Value
#ice_getSlicedData, #ice_id, ice_staticId, #inspect
Constructor Details
#initialize(id = '', total = 0, current = 0, totalLifetime = 0, failures = 0) ⇒ Metrics
Returns a new instance of Metrics.
32 33 34 35 36 37 38 |
# File 'lib/Ice/Metrics.rb', line 32 def initialize(id='', total=0, current=0, totalLifetime=0, failures=0) @id = id @total = total @current = current @totalLifetime = totalLifetime @failures = failures end |
Instance Attribute Details
#current ⇒ Object
Returns the value of attribute current.
40 41 42 |
# File 'lib/Ice/Metrics.rb', line 40 def current @current end |
#failures ⇒ Object
Returns the value of attribute failures.
40 41 42 |
# File 'lib/Ice/Metrics.rb', line 40 def failures @failures end |
#id ⇒ Object
Returns the value of attribute id.
40 41 42 |
# File 'lib/Ice/Metrics.rb', line 40 def id @id end |
#total ⇒ Object
Returns the value of attribute total.
40 41 42 |
# File 'lib/Ice/Metrics.rb', line 40 def total @total end |
#totalLifetime ⇒ Object
Returns the value of attribute totalLifetime.
40 41 42 |
# File 'lib/Ice/Metrics.rb', line 40 def totalLifetime @totalLifetime end |