Class: BreakerMachines::Stats

Inherits:
Data
  • Object
show all
Defined in:
lib/breaker_machines/types.rb

Overview

Represents statistical information about a circuit

Instance Attribute Summary collapse

Instance Attribute Details

#failure_countObject (readonly)

Returns the value of attribute failure_count

Returns:

  • (Object)

    the current value of failure_count



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def failure_count
  @failure_count
end

#half_open_attemptsObject (readonly)

Returns the value of attribute half_open_attempts

Returns:

  • (Object)

    the current value of half_open_attempts



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def half_open_attempts
  @half_open_attempts
end

#half_open_successesObject (readonly)

Returns the value of attribute half_open_successes

Returns:

  • (Object)

    the current value of half_open_successes



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def half_open_successes
  @half_open_successes
end

#last_failure_atObject (readonly)

Returns the value of attribute last_failure_at

Returns:

  • (Object)

    the current value of last_failure_at



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def last_failure_at
  @last_failure_at
end

#opened_atObject (readonly)

Returns the value of attribute opened_at

Returns:

  • (Object)

    the current value of opened_at



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def opened_at
  @opened_at
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def state
  @state
end

#success_countObject (readonly)

Returns the value of attribute success_count

Returns:

  • (Object)

    the current value of success_count



10
11
12
# File 'lib/breaker_machines/types.rb', line 10

def success_count
  @success_count
end