Class: BreakerMachines::Stats
- Inherits:
-
Data
- Object
- Data
- BreakerMachines::Stats
- Defined in:
- lib/breaker_machines/types.rb
Overview
Represents statistical information about a circuit
Instance Attribute Summary collapse
-
#failure_count ⇒ Object
readonly
Returns the value of attribute failure_count.
-
#half_open_attempts ⇒ Object
readonly
Returns the value of attribute half_open_attempts.
-
#half_open_successes ⇒ Object
readonly
Returns the value of attribute half_open_successes.
-
#last_failure_at ⇒ Object
readonly
Returns the value of attribute last_failure_at.
-
#opened_at ⇒ Object
readonly
Returns the value of attribute opened_at.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#success_count ⇒ Object
readonly
Returns the value of attribute success_count.
Instance Attribute Details
#failure_count ⇒ Object (readonly)
Returns the value of attribute failure_count
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def failure_count @failure_count end |
#half_open_attempts ⇒ Object (readonly)
Returns the value of attribute half_open_attempts
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def half_open_attempts @half_open_attempts end |
#half_open_successes ⇒ Object (readonly)
Returns the value of attribute half_open_successes
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def half_open_successes @half_open_successes end |
#last_failure_at ⇒ Object (readonly)
Returns the value of attribute last_failure_at
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def last_failure_at @last_failure_at end |
#opened_at ⇒ Object (readonly)
Returns the value of attribute opened_at
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def opened_at @opened_at end |
#state ⇒ Object (readonly)
Returns the value of attribute state
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def state @state end |
#success_count ⇒ Object (readonly)
Returns the value of attribute success_count
10 11 12 |
# File 'lib/breaker_machines/types.rb', line 10 def success_count @success_count end |