lib/protoboard/helpers/services_healthcheck_generator.rb in protoboard-0.1.3 vs lib/protoboard/helpers/services_healthcheck_generator.rb in protoboard-0.1.4

- old
+ new

@@ -8,17 +8,19 @@ ## # Verifies the list of +circuits+ added and returns a hash with the +circuits names+ and its states. # # ==== Examples - # 'services' => { - # 'my_service_name' => { - # 'circuits' => { - # 'my_service_name#some_method' => 'OK', - # 'my_custom_name' => 'NOT_OK' - # } - # } - # } + # { + # 'services' => { + # 'my_service_name' => { + # 'circuits' => { + # 'some_namespace/my_service_name/SomeClass#some_method' => 'OK', + # 'my_custom_name' => 'NOT_OK' + # } + # } + # } + # } # ==== # def call circuits_hash = Protoboard::CircuitBreaker.registered_circuits.map do |circuit| state = Protoboard.config.adapter.check_state(circuit.name)