Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Filter for health Passing #1

Open
jhmartin opened this issue Aug 5, 2014 · 0 comments
Open

Filter for health Passing #1

jhmartin opened this issue Aug 5, 2014 · 0 comments

Comments

@jhmartin
Copy link

jhmartin commented Aug 5, 2014

Please consider adding a option to request just 'passing' healthcheck nodes from the Health api. This is done by appending ?passing to the query. I can work around this by running

{% set nodes = ['%s:%s' % (r['Node']['Address'], r['Service']['Port']) for r in consul.health.service('httpd?passing')] %}

However, it would be much cleaner if the API allowed for something like

consul.health.service('httpd').passing
@jhmartin jhmartin changed the title Health 'passing' Filter for health Passing Aug 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant