Consul::Agent
Inherits Consul::Transport / Reference / Object
Instance methods
deregister_check remove a check from the local agent. The agent will take care of deregistering the check from the catalog. If the check with the provided ID does not exist, no action is taken
deregister_service removes a service from the local agent. If the service does not exist, no action is taken
get_service_conf returns the full service definition for a single service instance registered on the local agent
get_local_service_health returns an aggregated state of service(s) on the local agent by name
register_check adds a new check to the local agent. Checks may be of script, HTTP, TCP, or TTL type. The agent is responsible for managing the status of the check and keeping the Catalog in sync
register_service adds a new service, with an optional health check, to the local agent TO-DO: implement kind, proxy, connect
set_serice_maintenence places a given service into "maintenance mode". During maintenance mode, the service will be marked as unavailable and will not be present in DNS or API queries
ttl_check_fail is used with a TTL type check to set the status of the check to critical and to reset the TTL clock
ttl_check_pass is used with a TTL type check to set the status of the check to passing and to reset the TTL clock
ttl_check_upate is used with a TTL type check to set the status of the check and to reset the TTL clock
ttl_check_warn is used with a TTL type check to set the status of the check to warning and to reset the TTL clock